]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
board-h4: list those eeproms
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 29 Oct 2008 07:11:22 +0000 (00:11 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 29 Oct 2008 17:39:40 +0000 (10:39 -0700)
Declare the two 1Kbit EEPROMs included in the H4 board stack.
One is on the CPU card; the other is on the mainboard.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-h4.c

index 4082982739b3524f90d85246ad8e795ef3fa7df4..baa378fed2148c83429eee6de240edd6ebaae0ce 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/err.h>
 #include <linux/clk.h>
 #include <linux/i2c.h>
+#include <linux/i2c/at24.h>
 #include <linux/i2c/menelaus.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/tsc210x.h>
@@ -627,6 +628,11 @@ static struct ov9640_platform_data h4_ov9640_platform_data = {
 };
 #endif
 
+static struct at24_platform_data m24c01 = {
+       .byte_len       = SZ_1K / 8,
+       .page_size      = 16,
+};
+
 static struct i2c_board_info __initdata h4_i2c_board_info[] = {
        {
                I2C_BOARD_INFO("rv5c387a", 0x32),
@@ -646,6 +652,14 @@ static struct i2c_board_info __initdata h4_i2c_board_info[] = {
                .platform_data = &h4_ov9640_platform_data,
        },
 #endif
+       {       /* EEPROM on mainboard */
+               I2C_BOARD_INFO("24c01", 0x52),
+               .platform_data  = &m24c01,
+       },
+       {       /* EEPROM on cpu card */
+               I2C_BOARD_INFO("24c01", 0x57),
+               .platform_data  = &m24c01,
+       },
 };
 
 static void __init omap_h4_init(void)