diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-09-04 19:34:50 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-09-18 18:11:56 -0400 |
commit | a745a622434d9c3ff6505125b37fd6828ecadb87 (patch) | |
tree | 39d1c755f30a290240d58e9d3671913e5526fdf8 /arch/arm/mach-at91/board-sam9263ek.c | |
parent | fbd03a1cbc04833a952b0d603df96e4800445979 (diff) |
[ARM] 5240/1: AT91: eeproms on sam9260ek, sam9263ek
The at91sam9260 and at91sam9263 EK boards have 64 KiB I2C EEPROMs.
This patch declares them in the board init code so the new at24
driver will use them.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/board-sam9263ek.c')
-rw-r--r-- | arch/arm/mach-at91/board-sam9263ek.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/board-sam9263ek.c b/arch/arm/mach-at91/board-sam9263ek.c index b1d11960a735..c51f2eb3874b 100644 --- a/arch/arm/mach-at91/board-sam9263ek.c +++ b/arch/arm/mach-at91/board-sam9263ek.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
27 | #include <linux/spi/spi.h> | 27 | #include <linux/spi/spi.h> |
28 | #include <linux/spi/ads7846.h> | 28 | #include <linux/spi/ads7846.h> |
29 | #include <linux/i2c/at24.h> | ||
29 | #include <linux/fb.h> | 30 | #include <linux/fb.h> |
30 | #include <linux/gpio_keys.h> | 31 | #include <linux/gpio_keys.h> |
31 | #include <linux/input.h> | 32 | #include <linux/input.h> |
@@ -203,6 +204,24 @@ static struct atmel_nand_data __initdata ek_nand_data = { | |||
203 | 204 | ||
204 | 205 | ||
205 | /* | 206 | /* |
207 | * I2C devices | ||
208 | */ | ||
209 | static struct at24_platform_data at24c512 = { | ||
210 | .byte_len = SZ_512K / 8, | ||
211 | .page_size = 128, | ||
212 | .flags = AT24_FLAG_ADDR16, | ||
213 | }; | ||
214 | |||
215 | |||
216 | static struct i2c_board_info __initdata ek_i2c_devices[] = { | ||
217 | { | ||
218 | I2C_BOARD_INFO("24c512", 0x50), | ||
219 | .platform_data = &at24c512, | ||
220 | }, | ||
221 | /* more devices can be added using expansion connectors */ | ||
222 | }; | ||
223 | |||
224 | /* | ||
206 | * LCD Controller | 225 | * LCD Controller |
207 | */ | 226 | */ |
208 | #if defined(CONFIG_FB_ATMEL) || defined(CONFIG_FB_ATMEL_MODULE) | 227 | #if defined(CONFIG_FB_ATMEL) || defined(CONFIG_FB_ATMEL_MODULE) |
@@ -360,7 +379,7 @@ static void __init ek_board_init(void) | |||
360 | /* NAND */ | 379 | /* NAND */ |
361 | at91_add_device_nand(&ek_nand_data); | 380 | at91_add_device_nand(&ek_nand_data); |
362 | /* I2C */ | 381 | /* I2C */ |
363 | at91_add_device_i2c(NULL, 0); | 382 | at91_add_device_i2c(ek_i2c_devices, ARRAY_SIZE(ek_i2c_devices)); |
364 | /* LCD Controller */ | 383 | /* LCD Controller */ |
365 | at91_add_device_lcdc(&ek_lcdc_data); | 384 | at91_add_device_lcdc(&ek_lcdc_data); |
366 | /* Push Buttons */ | 385 | /* Push Buttons */ |