]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: menelaus chip info for H4 board.
authorTrilok Soni <soni.trilok@gmail.com>
Sat, 26 May 2007 13:49:19 +0000 (19:19 +0530)
committerTony Lindgren <tony@atomide.com>
Wed, 13 Jun 2007 13:25:36 +0000 (06:25 -0700)
- Add menelaus i2c chip info for H4 board.

Signed-off-by: Trilok Soni <soni.trilok@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-h4.c

index f476c5736d5a54cd93ac44e2ae0346e8cef70da0..386f59d44a8e9527695699a2b438370b793e881d 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/input.h>
 #include <linux/err.h>
 #include <linux/clk.h>
+#include <linux/i2c.h>
 
 #include <asm/hardware.h>
 #include <asm/mach-types.h>
@@ -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);