summaryrefslogtreecommitdiff
path: root/target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch')
-rw-r--r--target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch b/target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch
new file mode 100644
index 0000000000..3216969a7d
--- /dev/null
+++ b/target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch
@@ -0,0 +1,37 @@
+Index: linux-2.6.37.6/arch/arm/mach-at91/board-flexibity.c
+===================================================================
+--- linux-2.6.37.6.orig/arch/arm/mach-at91/board-flexibity.c 2011-05-07 10:07:03.112684983 +0100
++++ linux-2.6.37.6/arch/arm/mach-at91/board-flexibity.c 2011-05-07 10:07:33.480684982 +0100
+@@ -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
+ *
+@@ -65,6 +65,13 @@
+ .pullup_pin = 0, /* 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 */
+@@ -143,6 +150,9 @@
+ 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));