aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/at91/patches
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2011-07-03 18:51:59 +0000
committerJohn Crispin <john@openwrt.org>2011-07-03 18:51:59 +0000
commit349e97f87939460050352725ff6c6be6962aa2ab (patch)
tree7556f537aea717db2b0d9087fff776210c500869 /target/linux/at91/patches
parent2975f0aaf17e1d38f6f9eab57260c23ffba0545c (diff)
downloadupstream-349e97f87939460050352725ff6c6be6962aa2ab.tar.gz
upstream-349e97f87939460050352725ff6c6be6962aa2ab.tar.bz2
upstream-349e97f87939460050352725ff6c6be6962aa2ab.zip
AT91: Add flexibity board support
The patch below adds AT91 Flexibity Connect board support. Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com> SVN-Revision: 27412
Diffstat (limited to 'target/linux/at91/patches')
-rw-r--r--target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch37
-rw-r--r--target/linux/at91/patches/901-AT91-flexibity-default-leds-to-heartbeat.patch62
2 files changed, 99 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));
diff --git a/target/linux/at91/patches/901-AT91-flexibity-default-leds-to-heartbeat.patch b/target/linux/at91/patches/901-AT91-flexibity-default-leds-to-heartbeat.patch
new file mode 100644
index 0000000000..de7a8dca3d
--- /dev/null
+++ b/target/linux/at91/patches/901-AT91-flexibity-default-leds-to-heartbeat.patch
@@ -0,0 +1,62 @@
+Index: linux-2.6.39/arch/arm/mach-at91/board-flexibity.c
+===================================================================
+--- linux-2.6.39.orig/arch/arm/mach-at91/board-flexibity.c 2011-06-17 11:02:11.335016002 +0100
++++ linux-2.6.39/arch/arm/mach-at91/board-flexibity.c 2011-06-17 11:02:20.395016002 +0100
+@@ -96,49 +96,49 @@
+ .name = "usb1:green",
+ .gpio = AT91_PIN_PA12,
+ .active_low = 1,
+- .default_trigger = "default-on",
++ .default_trigger = "heartbeat",
+ },
+ {
+ .name = "usb1:red",
+ .gpio = AT91_PIN_PA13,
+ .active_low = 1,
+- .default_trigger = "default-on",
++ .default_trigger = "heartbeat",
+ },
+ {
+ .name = "usb2:green",
+ .gpio = AT91_PIN_PB26,
+ .active_low = 1,
+- .default_trigger = "default-on",
++ .default_trigger = "heartbeat",
+ },
+ {
+ .name = "usb2:red",
+ .gpio = AT91_PIN_PB27,
+ .active_low = 1,
+- .default_trigger = "default-on",
++ .default_trigger = "heartbeat",
+ },
+ {
+ .name = "usb3:green",
+ .gpio = AT91_PIN_PC8,
+ .active_low = 1,
+- .default_trigger = "default-on",
++ .default_trigger = "heartbeat",
+ },
+ {
+ .name = "usb3:red",
+ .gpio = AT91_PIN_PC6,
+ .active_low = 1,
+- .default_trigger = "default-on",
++ .default_trigger = "heartbeat",
+ },
+ {
+ .name = "usb4:green",
+ .gpio = AT91_PIN_PB4,
+ .active_low = 1,
+- .default_trigger = "default-on",
++ .default_trigger = "heartbeat",
+ },
+ {
+ .name = "usb4:red",
+ .gpio = AT91_PIN_PB5,
+ .active_low = 1,
+- .default_trigger = "default-on",
++ .default_trigger = "heartbeat",
+ }
+ };
+