From 9347de30ecfaee598d15ff350bbd921dc862d16c Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Wed, 3 Sep 2014 03:10:18 +0000 Subject: at91: add 3.14 support Add support for Linux 3.14 for the Atmel's AT91 platform. Signed-off-by: Florian Fainelli git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42414 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../100-ARM-at91-build-dtb-for-LMU5000.patch | 10 ++++ .../at91/patches-3.14/700-tqma9263-support.patch | 29 +++++++++++ .../patches-3.14/805-free_some_portc_pins.patch | 11 ++++ ...-AT91-flexibity-default-leds-to-heartbeat.patch | 60 ++++++++++++++++++++++ 4 files changed, 110 insertions(+) create mode 100644 target/linux/at91/patches-3.14/100-ARM-at91-build-dtb-for-LMU5000.patch create mode 100644 target/linux/at91/patches-3.14/700-tqma9263-support.patch create mode 100644 target/linux/at91/patches-3.14/805-free_some_portc_pins.patch create mode 100644 target/linux/at91/patches-3.14/901-AT91-flexibity-default-leds-to-heartbeat.patch (limited to 'target/linux/at91/patches-3.14') diff --git a/target/linux/at91/patches-3.14/100-ARM-at91-build-dtb-for-LMU5000.patch b/target/linux/at91/patches-3.14/100-ARM-at91-build-dtb-for-LMU5000.patch new file mode 100644 index 0000000000..c631f8d588 --- /dev/null +++ b/target/linux/at91/patches-3.14/100-ARM-at91-build-dtb-for-LMU5000.patch @@ -0,0 +1,10 @@ +--- a/arch/arm/boot/dts/Makefile ++++ b/arch/arm/boot/dts/Makefile +@@ -23,6 +23,7 @@ dtb-$(CONFIG_ARCH_AT91) += tny_a9g20.dtb + dtb-$(CONFIG_ARCH_AT91) += usb_a9g20.dtb + # sam9g45 + dtb-$(CONFIG_ARCH_AT91) += at91sam9m10g45ek.dtb ++dtb-$(CONFIG_ARCH_AT91) += lmu5000.dtb + dtb-$(CONFIG_ARCH_AT91) += pm9g45.dtb + # sam9n12 + dtb-$(CONFIG_ARCH_AT91) += at91sam9n12ek.dtb diff --git a/target/linux/at91/patches-3.14/700-tqma9263-support.patch b/target/linux/at91/patches-3.14/700-tqma9263-support.patch new file mode 100644 index 0000000000..fac71b43d6 --- /dev/null +++ b/target/linux/at91/patches-3.14/700-tqma9263-support.patch @@ -0,0 +1,29 @@ +Index: linux-3.14.16/arch/arm/mach-at91/Kconfig.non_dt +=================================================================== +--- linux-3.14.16.orig/arch/arm/mach-at91/Kconfig.non_dt 2014-08-31 13:36:59.849640477 -0700 ++++ linux-3.14.16/arch/arm/mach-at91/Kconfig.non_dt 2014-08-31 13:36:59.845640477 -0700 +@@ -281,6 +281,12 @@ + Select this if you are using Atmel's AT91SAM9G10-EK Evaluation Kit. + + ++config MACH_TQMA9263 ++ bool "TQ Components TQMa9263 board" ++ help ++ Select this if you are using the an TQ Components TQMa9263 board. ++ ++ + endif + + # ---------------------------------------------------------- +Index: linux-3.14.16/arch/arm/mach-at91/Makefile +=================================================================== +--- linux-3.14.16.orig/arch/arm/mach-at91/Makefile 2014-08-31 13:36:59.849640477 -0700 ++++ linux-3.14.16/arch/arm/mach-at91/Makefile 2014-08-31 13:37:27.125639720 -0700 +@@ -62,6 +62,7 @@ + + # AT91SAM9263 board-specific support + obj-$(CONFIG_MACH_AT91SAM9263EK) += board-sam9263ek.o ++obj-$(CONFIG_MACH_TQMA9263) += board-tqma9263.o + + # AT91SAM9RL board-specific support + obj-$(CONFIG_MACH_AT91SAM9RLEK) += board-sam9rlek.o diff --git a/target/linux/at91/patches-3.14/805-free_some_portc_pins.patch b/target/linux/at91/patches-3.14/805-free_some_portc_pins.patch new file mode 100644 index 0000000000..a9694d1f01 --- /dev/null +++ b/target/linux/at91/patches-3.14/805-free_some_portc_pins.patch @@ -0,0 +1,11 @@ +--- a/arch/arm/mach-at91/at91sam9260_devices.c ++++ b/arch/arm/mach-at91/at91sam9260_devices.c +@@ -507,7 +507,7 @@ static struct platform_device at91sam926 + .num_resources = ARRAY_SIZE(spi1_resources), + }; + +-static const unsigned spi1_standard_cs[4] = { AT91_PIN_PB3, AT91_PIN_PC5, AT91_PIN_PC4, AT91_PIN_PC3 }; ++static const unsigned spi1_standard_cs[2] = { AT91_PIN_PB3, AT91_PIN_PC5 }; + + void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) + { diff --git a/target/linux/at91/patches-3.14/901-AT91-flexibity-default-leds-to-heartbeat.patch b/target/linux/at91/patches-3.14/901-AT91-flexibity-default-leds-to-heartbeat.patch new file mode 100644 index 0000000000..a97850ac91 --- /dev/null +++ b/target/linux/at91/patches-3.14/901-AT91-flexibity-default-leds-to-heartbeat.patch @@ -0,0 +1,60 @@ +--- a/arch/arm/mach-at91/board-flexibity.c ++++ b/arch/arm/mach-at91/board-flexibity.c +@@ -89,49 +89,49 @@ static struct gpio_led flexibity_leds[] + .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", + } + }; + -- cgit v1.2.3