diff options
author | Dmitry Lavnikevich <d.lavnikevich@sam-solutions.net> | 2013-05-16 10:33:14 +0300 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2013-11-07 12:19:31 -0500 |
commit | 3badc0537c218f66d20f19c8169689bce7d3bbd2 (patch) | |
tree | 59dd9d7e4590fc788c1aff203327cc380b796ba1 | |
parent | b6b0a0682e4503a3c4dded8bd835024ece15ff28 (diff) |
Implemented support for m24c04 eeprom on video capture board (VM-008).
Added support for at24c04 eeprom with 512 bytes (page write up to 16
bytes per cycle). Accessible at i2c address 0x52.
Signed-off-by: Uladzimir Bely <u.bely@sam-solutions.net>
Signed-off-by: Christian Hemp <c.hemp@phytec.de>
-rw-r--r-- | arch/arm/mach-mx6/board-mx6q_phyflex.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_phyflex.c b/arch/arm/mach-mx6/board-mx6q_phyflex.c index 43d7973c7891..9438ee707e3a 100644 --- a/arch/arm/mach-mx6/board-mx6q_phyflex.c +++ b/arch/arm/mach-mx6/board-mx6q_phyflex.c @@ -34,6 +34,7 @@ #include <linux/i2c.h> #include <linux/i2c/at24.h> #include <linux/i2c/pca953x.h> +#include <linux/i2c/at24.h> #include <linux/leds-pca9532.h> #include <linux/ata.h> #include <linux/mtd/mtd.h> @@ -333,6 +334,12 @@ static struct at24_platform_data at24c32 = { .flags = AT24_FLAG_ADDR16, }; +static struct at24_platform_data at24c04 = { + .byte_len = SZ_4K / 8, + .page_size = 16, + .flags = 0, +}; + static struct max7301_platform_data max7301_i2c_data = { .base = -1, }; @@ -426,7 +433,10 @@ static struct i2c_board_info mxc_i2c2_board_info[] __initdata = { }, { I2C_BOARD_INFO("pca9538", 0x70), .platform_data = &pca9538_platdata, - } + }, { + I2C_BOARD_INFO("24c04", 0x52), + .platform_data = &at24c04, + }, }; |