summaryrefslogtreecommitdiff
path: root/target/avr32
diff options
context:
space:
mode:
authorMario Haustein <mario.haustein@hrz.tu-chemnitz.de>2016-09-21 18:48:47 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-22 17:31:15 +0200
commit74ed5fab6a9b6330055e98dbd419f8fe84c84633 (patch)
treeb389887452406c9094b6a2ea7d9257a54e60f67d /target/avr32
parent64f096935947315ce6fd800aeae527f51048fa91 (diff)
refactor SD card support for AVR32 Grasshopper board
- SD card support can now be enabled in the menu - SD card access LED support added
Diffstat (limited to 'target/avr32')
-rw-r--r--target/avr32/grasshopper/patches/4.7.3/0003-grasshopper-mmc.patch50
1 files changed, 46 insertions, 4 deletions
diff --git a/target/avr32/grasshopper/patches/4.7.3/0003-grasshopper-mmc.patch b/target/avr32/grasshopper/patches/4.7.3/0003-grasshopper-mmc.patch
index 88bf498b7..f87d4731b 100644
--- a/target/avr32/grasshopper/patches/4.7.3/0003-grasshopper-mmc.patch
+++ b/target/avr32/grasshopper/patches/4.7.3/0003-grasshopper-mmc.patch
@@ -1,11 +1,53 @@
+diff -Naur linux-4.7.3/arch/avr32/boards/grasshopper/Kconfig linux-4.7.3.grasshopper/arch/avr32/boards/grasshopper/Kconfig
+--- linux-4.7.3/arch/avr32/boards/grasshopper/Kconfig 2016-09-20 11:22:36.665693605 +0200
++++ linux-4.7.3.grasshopper/arch/avr32/boards/grasshopper/Kconfig 2016-09-20 11:22:45.803816861 +0200
+@@ -34,4 +34,14 @@
+ help
+ Enabling PWM channel 3 will exclude the power LED from LED API.
+
++config BOARD_GRASSHOPPER_MMC
++ bool "Enable MMC slot"
++ depends on MMC_ATMELMCI
++ default n
++
++config BOARD_GRASSHOPPER_MMCLED
++ bool "Show MMC acces on LED8"
++ depends on BOARD_GRASSHOPPER_MMC
++ default n
++
+ endif # BOARD_GRASSHOPPER
+diff -Naur linux-4.7.3/arch/avr32/boards/grasshopper/led.c linux-4.7.3.grasshopper/arch/avr32/boards/grasshopper/led.c
+--- linux-4.7.3/arch/avr32/boards/grasshopper/led.c 2016-09-20 11:17:36.448644161 +0200
++++ linux-4.7.3.grasshopper/arch/avr32/boards/grasshopper/led.c 2016-09-20 11:25:30.690040822 +0200
+@@ -62,6 +62,9 @@
+ {
+ .name = "led8:green",
+ .gpio = GPIO_PIN_PA(30),
++#ifdef CONFIG_BOARD_GRASSHOPPER_MMCLED
++ .default_trigger = "mmc0",
++#endif
+ },
+ };
+
diff -Naur linux-4.7.3/arch/avr32/boards/grasshopper/setup.c linux-4.7.3.grasshopper/arch/avr32/boards/grasshopper/setup.c
---- linux-4.7.3/arch/avr32/boards/grasshopper/setup.c 2016-09-14 10:48:53.403638569 +0200
-+++ linux-4.7.3.grasshopper/arch/avr32/boards/grasshopper/setup.c 2016-09-14 11:26:49.572343447 +0200
-@@ -169,7 +169,7 @@
+--- linux-4.7.3/arch/avr32/boards/grasshopper/setup.c 2016-09-20 10:32:24.571984951 +0200
++++ linux-4.7.3.grasshopper/arch/avr32/boards/grasshopper/setup.c 2016-09-20 11:23:52.197712372 +0200
+@@ -130,7 +130,7 @@
+ #endif
+
+ /* MCI */
+-#ifdef CONFIG_MMC_ATMELMCI
++#ifdef CONFIG_BOARD_GRASSHOPPER_MMC
+ static struct mci_platform_data __initdata mci0_data = {
+ .slot[0] = {
+ .bus_width = 4,
+@@ -168,8 +168,8 @@
+ ATMEL_LCDC_PRI_CONTROL | ATMEL_LCDC_PRI_24BIT);
#endif
- #ifdef CONFIG_MMC_ATMELMCI
+-#ifdef CONFIG_MMC_ATMELMCI
-// at32_add_device_mci(0, &mci0_data); /* MMC/SD */
++#ifdef CONFIG_BOARD_GRASSHOPPER_MMC
+ at32_add_device_mci(0, &mci0_data); /* MMC/SD */
#endif