aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-3.10/0162-bcm2708-select-NEED_MACH_GPIO_H.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2014-02-28 20:30:08 +0000
committerFlorian Fainelli <florian@openwrt.org>2014-02-28 20:30:08 +0000
commit800930b924c19a56b3a6e94ad351cd0715fb410d (patch)
tree70158d97f68604d69da8da779507469cf930bf07 /target/linux/brcm2708/patches-3.10/0162-bcm2708-select-NEED_MACH_GPIO_H.patch
parent68c939ba0b0a0dda84e7a2ae370155be9a5593bc (diff)
downloadmaster-187ad058-800930b924c19a56b3a6e94ad351cd0715fb410d.tar.gz
master-187ad058-800930b924c19a56b3a6e94ad351cd0715fb410d.tar.bz2
master-187ad058-800930b924c19a56b3a6e94ad351cd0715fb410d.zip
brcm2708: update against latest rpi-3.10.y branch
Update our copies of the brcm2708 patches to the latest rpi-3.10-y rebased against linux-3.10.y stable (3.10.32). This should hopefully make it easier for us in the future to leverage the raspberry/rpi-* branches. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39770 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm2708/patches-3.10/0162-bcm2708-select-NEED_MACH_GPIO_H.patch')
-rw-r--r--target/linux/brcm2708/patches-3.10/0162-bcm2708-select-NEED_MACH_GPIO_H.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-3.10/0162-bcm2708-select-NEED_MACH_GPIO_H.patch b/target/linux/brcm2708/patches-3.10/0162-bcm2708-select-NEED_MACH_GPIO_H.patch
new file mode 100644
index 0000000000..cbc262fa6d
--- /dev/null
+++ b/target/linux/brcm2708/patches-3.10/0162-bcm2708-select-NEED_MACH_GPIO_H.patch
@@ -0,0 +1,30 @@
+From d1df97f2d10654ace3d14a77a2de866ce4cd8d4b Mon Sep 17 00:00:00 2001
+From: Joerg Faschingbauer <jf@faschingbauer.co.at>
+Date: Sat, 18 Jan 2014 23:15:07 +0100
+Subject: [PATCH 162/174] bcm2708: select NEED_MACH_GPIO_H
+
+makers out there use to use gpio_to_irq() in board setup code. it is
+necessary that gpio_to_irq() be defined as a macro for this to work.
+
+https://github.com/raspberrypi/linux/commit/01464226ac6089bd6a33f9899cc792c2355ebf39,
+on its way towards devicetree, introduces a switch NEED_MACH_GPIO_H
+that platforms have to set to get the macro definition of
+gpio_to_irq() - otherwise, the gpiolib incarnation of gpio_to_irq() is
+found instead which does not work from board code.
+
+define NEED_MACH_GPIO_H to make things work again without any pain for
+makers (though this clearly is in the way of devicetree).
+---
+ arch/arm/Kconfig | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/arch/arm/Kconfig
++++ b/arch/arm/Kconfig
+@@ -367,6 +367,7 @@ config ARCH_BCM2708
+ select ARM_AMBA
+ select HAVE_CLK
+ select HAVE_SCHED_CLOCK
++ select NEED_MACH_GPIO_H
+ select NEED_MACH_MEMORY_H
+ select CLKDEV_LOOKUP
+ select ARCH_HAS_CPUFREQ