aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/at91/patches
diff options
context:
space:
mode:
authorClaudio Mignanti <c.mignanti@gmail.com>2010-06-18 22:12:33 +0000
committerClaudio Mignanti <c.mignanti@gmail.com>2010-06-18 22:12:33 +0000
commitf51df41a3aba2bf2d93c12fbbae9c9241c400fd2 (patch)
tree76cb293761a2d53938d2f6462e6ce010bdf2691a /target/linux/at91/patches
parenta069981ab9d28e823d427627297dcd7e79940b5b (diff)
downloadupstream-f51df41a3aba2bf2d93c12fbbae9c9241c400fd2.tar.gz
upstream-f51df41a3aba2bf2d93c12fbbae9c9241c400fd2.tar.bz2
upstream-f51df41a3aba2bf2d93c12fbbae9c9241c400fd2.zip
[at91] revamp target: add support for netusg20 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21838 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/at91/patches')
-rwxr-xr-xtarget/linux/at91/patches/800-netus-support.patch54
-rwxr-xr-xtarget/linux/at91/patches/805-free_some_portc_pins.patch11
2 files changed, 65 insertions, 0 deletions
diff --git a/target/linux/at91/patches/800-netus-support.patch b/target/linux/at91/patches/800-netus-support.patch
new file mode 100755
index 0000000000..8294c8f30a
--- /dev/null
+++ b/target/linux/at91/patches/800-netus-support.patch
@@ -0,0 +1,54 @@
+--- a/arch/arm/mach-at91/Kconfig
++++ b/arch/arm/mach-at91/Kconfig
+@@ -354,6 +354,13 @@ config MACH_CPU9G20
+ Select this if you are using a Eukrea Electromatique's
+ CPU9G20 Board <http://www.eukrea.com/>
+
++config MACH_NETUS_FOXBOARD
++ bool "Acmesystems NetusG20 board"
++ depends on ARCH_AT91SAM9G20
++ help
++ Select this if you are using a Acmesystems NetusG20
++ board <http://netus.acmesystems.it/>
++
+ endif
+
+ # ----------------------------------------------------------
+@@ -444,6 +451,26 @@
+ On AT91SAM926x boards both types of NAND flash can be present
+ (8 and 16 bit data bus width).
+
++config NETUS_HEARTBEAT_LED
++ bool "Use heartbeat trigger for led"
++ depends on MACH_NETUS_FOXBOARD
++ help
++ Select this option to enable default trigger heartbeart for
++ FoxBoardG20 red led.
++
++config NETUS_SERIALS
++ bool "Enable serials"
++ depends on MACH_NETUS_FOXBOARD
++ help
++ Select this option to enable serials interface /dev/ttyS1,
++ /dev/ttyS2 and /dev/ttyS5 (for oLed interface)
++
++config NETUS_USE_DATAFLASH
++ bool "Enable the dataflash"
++ depends on MACH_NETUS_FOXBOARD
++ help
++ Select this option to use the dataflash.
++
+ # ----------------------------------------------------------
+
+ comment "AT91 Feature Selections"
+--- a/arch/arm/mach-at91/Makefile
++++ b/arch/arm/mach-at91/Makefile
+@@ -62,6 +62,7 @@ obj-$(CONFIG_MACH_AT91SAM9RLEK) += board
+ obj-$(CONFIG_MACH_AT91SAM9G20EK) += board-sam9g20ek.o
+ obj-$(CONFIG_MACH_AT91SAM9G20EK_2MMC) += board-sam9g20ek-2slot-mmc.o
+ obj-$(CONFIG_MACH_CPU9G20) += board-cpu9krea.o
++obj-$(CONFIG_MACH_NETUS_FOXBOARD) += board-netus-foxboard.o
+
+ # AT91SAM9G45 board-specific support
+ obj-$(CONFIG_MACH_AT91SAM9G45EKES) += board-sam9m10g45ek.o
+
diff --git a/target/linux/at91/patches/805-free_some_portc_pins.patch b/target/linux/at91/patches/805-free_some_portc_pins.patch
new file mode 100755
index 0000000000..e3d6ffd5a3
--- /dev/null
+++ b/target/linux/at91/patches/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
+@@ -571,7 +571,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)
+ {