2014-09-27 19:10:51 +00:00
|
|
|
From 89fe6af687fcbbae28b05e10debe0de60b6ee5a3 Mon Sep 17 00:00:00 2001
|
2014-02-28 20:30:08 +00:00
|
|
|
From: Joerg Faschingbauer <jf@faschingbauer.co.at>
|
|
|
|
Date: Sat, 18 Jan 2014 23:15:07 +0100
|
2014-09-27 19:10:51 +00:00
|
|
|
Subject: [PATCH 162/196] bcm2708: select NEED_MACH_GPIO_H
|
2014-02-28 20:30:08 +00:00
|
|
|
|
|
|
|
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(+)
|
|
|
|
|
2014-09-27 19:10:51 +00:00
|
|
|
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
|
|
|
|
index 4e36ccd..7707c27 100644
|
2014-02-28 20:30:08 +00:00
|
|
|
--- 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
|
2014-09-27 19:10:51 +00:00
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|