From: Trilok Soni Date: Sat, 26 May 2007 13:49:19 +0000 (+0530) Subject: ARM: OMAP: menelaus chip info for H4 board. X-Git-Tag: v2.6.22-omap1~41 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=96947e23d6a65b4285a8da51aebd1b9d83fc82a2;p=linux-2.6-omap-h63xx.git ARM: OMAP: menelaus chip info for H4 board. - Add menelaus i2c chip info for H4 board. Signed-off-by: Trilok Soni Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index f476c5736d5..386f59d44a8 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -491,6 +492,15 @@ static void __init tusb_evm_setup(void) #endif +static struct i2c_board_info __initdata h4_i2c_board_info[] = { +#ifdef CONFIG_MENELAUS + { + I2C_BOARD_INFO("menelaus", 0x72), + .irq = INT_24XX_SYS_NIRQ, + }, +#endif +}; + static void __init omap_h4_init(void) { /* @@ -519,6 +529,9 @@ static void __init omap_h4_init(void) omap_cfg_reg(V19_24XX_USB1_RCV); #endif + i2c_register_board_info(1, h4_i2c_board_info, + ARRAY_SIZE(h4_i2c_board_info)); + platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices)); omap_board_config = h4_config; omap_board_config_size = ARRAY_SIZE(h4_config);