summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/board-flexibity.c
diff options
context:
space:
mode:
authorMaxim Osipov <maxim.osipov@gmail.com>2011-05-07 13:47:00 +0200
committerNicolas Ferre <nicolas.ferre@atmel.com>2012-02-03 13:45:17 +0100
commit948ce6a6a667485e221e92af4a564839af3ba6c5 (patch)
tree4fe9fb3d4410085ed4fc0203da9db25d026844a1 /arch/arm/mach-at91/board-flexibity.c
parentARM: at91: add Atmel ISI and ov2640 support on sam9m10g45 board (diff)
downloadlinux-948ce6a6a667485e221e92af4a564839af3ba6c5.tar.xz
linux-948ce6a6a667485e221e92af4a564839af3ba6c5.zip
ARM: at91: Add external RTC for Flexibity board
This patch enables external RTC support on AT91 Flexibity board. Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com> Acked-by: Andrew Victor <linux@maxim.org.za> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/board-flexibity.c')
-rw-r--r--arch/arm/mach-at91/board-flexibity.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/board-flexibity.c b/arch/arm/mach-at91/board-flexibity.c
index eec02cd57ced..1815152001f7 100644
--- a/arch/arm/mach-at91/board-flexibity.c
+++ b/arch/arm/mach-at91/board-flexibity.c
@@ -1,7 +1,7 @@
/*
* linux/arch/arm/mach-at91/board-flexibity.c
*
- * Copyright (C) 2010 Flexibity
+ * Copyright (C) 2010-2011 Flexibity
* Copyright (C) 2005 SAN People
* Copyright (C) 2006 Atmel
*
@@ -62,6 +62,13 @@ static struct at91_udc_data __initdata flexibity_udc_data = {
.pullup_pin = -EINVAL, /* pull-up driven by UDC */
};
+/* I2C devices */
+static struct i2c_board_info __initdata flexibity_i2c_devices[] = {
+ {
+ I2C_BOARD_INFO("ds1307", 0x68),
+ },
+};
+
/* SPI devices */
static struct spi_board_info flexibity_spi_devices[] = {
{ /* DataFlash chip */
@@ -141,6 +148,9 @@ static void __init flexibity_board_init(void)
at91_add_device_usbh(&flexibity_usbh_data);
/* USB Device */
at91_add_device_udc(&flexibity_udc_data);
+ /* I2C */
+ at91_add_device_i2c(flexibity_i2c_devices,
+ ARRAY_SIZE(flexibity_i2c_devices));
/* SPI */
at91_add_device_spi(flexibity_spi_devices,
ARRAY_SIZE(flexibity_spi_devices));