aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2009-05-25 08:02:35 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-05-29 20:17:39 +0100
commit6953e47e11ea85c8c91ac49a5c779e0a4a143e47 (patch)
treeb6baac3dd0338931600e23db2890a2901505a523 /arch/arm/mach-at91
parent34e559eabf57d07c55a57e9455c1df2e6a208d57 (diff)
downloadkernel_samsung_crespo-6953e47e11ea85c8c91ac49a5c779e0a4a143e47.zip
kernel_samsung_crespo-6953e47e11ea85c8c91ac49a5c779e0a4a143e47.tar.gz
kernel_samsung_crespo-6953e47e11ea85c8c91ac49a5c779e0a4a143e47.tar.bz2
[ARM] 5524/1: at91sam9g20ek: add i2c eeprom info
Add board information about on-board I2C eeprom AT24C512N at 0x50. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> 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')
-rw-r--r--arch/arm/mach-at91/board-sam9g20ek.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/board-sam9g20ek.c b/arch/arm/mach-at91/board-sam9g20ek.c
index 438efbb..cc270be 100644
--- a/arch/arm/mach-at91/board-sam9g20ek.c
+++ b/arch/arm/mach-at91/board-sam9g20ek.c
@@ -218,6 +218,13 @@ static struct gpio_led ek_leds[] = {
}
};
+static struct i2c_board_info __initdata ek_i2c_devices[] = {
+ {
+ I2C_BOARD_INFO("24c512", 0x50),
+ },
+};
+
+
static void __init ek_board_init(void)
{
/* Serial */
@@ -235,7 +242,7 @@ static void __init ek_board_init(void)
/* MMC */
at91_add_device_mmc(0, &ek_mmc_data);
/* I2C */
- at91_add_device_i2c(NULL, 0);
+ at91_add_device_i2c(ek_i2c_devices, ARRAY_SIZE(ek_i2c_devices));
/* LEDs */
at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds));
/* PCK0 provides MCLK to the WM8731 */