diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-06-12 06:11:17 +0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-13 09:42:42 +0400 |
commit | ed17be92c00fde00b2431b31828736f8572d7ba7 (patch) | |
tree | 11288eb186bbf7b3df50b61682c3495cc0cda0b2 /arch/arm/mach-shmobile | |
parent | 9aa3853a6f6652901f7ae42ed6bfd85a11bdc795 (diff) | |
download | linux-ed17be92c00fde00b2431b31828736f8572d7ba7.tar.xz |
ARM: shmobile: bockw: add I2C device support
This patch enables rx8581 on I2C0
Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/board-bockw.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index bfe8f6769cf9..a4251cc2a405 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -77,6 +77,13 @@ static struct sh_eth_plat_data ether_platform_data __initdata = { .no_ether_link = 1, }; +/* I2C */ +static struct i2c_board_info i2c0_devices[] = { + { + I2C_BOARD_INFO("rx8581", 0x51), + }, +}; + static const struct pinctrl_map bockw_pinctrl_map[] = { /* Ether */ PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778", @@ -103,7 +110,10 @@ static void __init bockw_init(void) r8a7778_init_irq_extpin(1); r8a7778_add_standard_devices(); r8a7778_add_ether_device(ðer_platform_data); + r8a7778_add_i2c_device(0); + i2c_register_board_info(0, i2c0_devices, + ARRAY_SIZE(i2c0_devices)); pinctrl_register_mappings(bockw_pinctrl_map, ARRAY_SIZE(bockw_pinctrl_map)); r8a7778_pinmux_init(); |