brcm2708: update 3.10 patches with raspberrypi/rpi-3.10.y of 27 Apr. 2014
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-3.10 / 0162-bcm2708-select-NEED_MACH_GPIO_H.patch
1 From 89fe6af687fcbbae28b05e10debe0de60b6ee5a3 Mon Sep 17 00:00:00 2001
2 From: Joerg Faschingbauer <jf@faschingbauer.co.at>
3 Date: Sat, 18 Jan 2014 23:15:07 +0100
4 Subject: [PATCH 162/196] bcm2708: select NEED_MACH_GPIO_H
5
6 makers out there use to use gpio_to_irq() in board setup code. it is
7 necessary that gpio_to_irq() be defined as a macro for this to work.
8
9 https://github.com/raspberrypi/linux/commit/01464226ac6089bd6a33f9899cc792c2355ebf39,
10 on its way towards devicetree, introduces a switch NEED_MACH_GPIO_H
11 that platforms have to set to get the macro definition of
12 gpio_to_irq() - otherwise, the gpiolib incarnation of gpio_to_irq() is
13 found instead which does not work from board code.
14
15 define NEED_MACH_GPIO_H to make things work again without any pain for
16 makers (though this clearly is in the way of devicetree).
17 ---
18 arch/arm/Kconfig | 1 +
19 1 file changed, 1 insertion(+)
20
21 diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
22 index 4e36ccd..7707c27 100644
23 --- a/arch/arm/Kconfig
24 +++ b/arch/arm/Kconfig
25 @@ -367,6 +367,7 @@ config ARCH_BCM2708
26 select ARM_AMBA
27 select HAVE_CLK
28 select HAVE_SCHED_CLOCK
29 + select NEED_MACH_GPIO_H
30 select NEED_MACH_MEMORY_H
31 select CLKDEV_LOOKUP
32 select ARCH_HAS_CPUFREQ
33 --
34 1.9.1
35