pxa/magician: fix MAGICIAN_EGPIO_BASE, align with NR_BUILTIN_GPIO
Subsystems (3)
PATCH 1/1 pxa/magician: fix MAGICIAN_EGPIO_BASE, align with NR_BUILTIN_GPIO
Commit a0a4dcbca73a418477f439e812193e2591b46751
"ARM: pxa: align NR_BUILTIN_GPIO with GPIO interrupt number" increased NR_BUILTIN_GPIO from 128 to PXA_GPIO_IRQ_NUM (192). Adjust the previously hardcoded MAGICIAN_EGPIO_BASE accordingly.
--- arch/arm/mach-pxa/include/mach/magician.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/mach-pxa/include/mach/magician.h +2 -1
@@ -12,6 +12,7 @@#ifndef _MAGICIAN_H_#define _MAGICIAN_H_ +#include <mach/gpio.h> #include <mach/irqs.h> /*
@@ -77,7 +78,7 @@* CPLD EGPIOs */ -#define MAGICIAN_EGPIO_BASE 0x80/* GPIO_BOARD_START */ +#define MAGICIAN_EGPIO_BASE NR_BUILTIN_GPIO#define MAGICIAN_EGPIO (reg,bit) \ (MAGICIAN_EGPIO_BASE + 8*reg + bit)
Signature · 1 line
1.7.4.4
Eric Miao
AppliedPATCH 1/1 pxa/magician: fix MAGICIAN_EGPIO_BASE, align with NR_BUILTIN_GPIO
Quoted 6 lines · Philipp Zabel
Commit
a0a4dcbca73a418477f439e812193e2591b46751
"ARM: pxa: alignNR_BUILTIN_GPIOwith GPIO interrupt number" increasedNR_BUILTIN_GPIOfrom 128 toPXA_GPIO_IRQ_NUM(192). Adjust the previously hardcodedMAGICIAN_EGPIO_BASEaccordingly.Signed-off-by Philipp Zabel <[email protected]>
Applied.
Quoted 30 lines
---
?arch/arm/mach-pxa/include/mach/magician.h | ? ?3 ++- ?1 files changed, 2 insertions(+), 1 deletions(-)arch/arm/mach-pxa/include/mach/magician.h +0
-0@@ -12,6 +12,7 @@?#ifndef _MAGICIAN_H_
?#define _MAGICIAN_H_+#include <
mach/gpio.h>
?#include <mach/irqs.h>?/*
arch/arm/mach-pxa/include/mach/magician.h +0
-0@@ -77,7 +78,7 @@?* CPLD EGPIOs
?*/arch/arm/mach-pxa/include/mach/magician.h +1
-1-#define MAGICIAN_EGPIO_BASE ? ? ? ? ? ? ? ? ? ?0x80/* GPIO_BOARD_START */ +#define MAGICIAN_EGPIO_BASE ? ? ? ? ? ? ? ? ? ?NR_BUILTIN_GPIO?#define
MAGICIAN_EGPIO(reg,bit)\
? ? ? ?(MAGICIAN_EGPIO_BASE + 8*reg + bit)--
1.7.4.4
PATCH 1/1 pxa/magician: fix MAGICIAN_EGPIO_BASE, align with NR_BUILTIN_GPIO
Quoted 22 lines · Eric Miao
Quoted 6 lines · Philipp Zabel
Commit
a0a4dcbca73a418477f439e812193e2591b46751
"ARM: pxa: alignNR_BUILTIN_GPIOwith GPIO interrupt number" increasedNR_BUILTIN_GPIOfrom 128 toPXA_GPIO_IRQ_NUM(192). Adjust the previously hardcodedMAGICIAN_EGPIO_BASEaccordingly.Signed-off-by Philipp Zabel <[email protected]>Applied.
Quoted 12 lines
---
?arch/arm/mach-pxa/include/mach/magician.h | ? ?3 ++- ?1 files changed, 2 insertions(+), 1 deletions(-)arch/arm/mach-pxa/include/mach/magician.h +0
-0@@ -12,6 +12,7 @@?#ifndef _MAGICIAN_H_
?#define _MAGICIAN_H_
Quoted 1 line
Quoted 1 line
+#include <
mach/gpio.h>
Note that there's yet another mach/gpio.h here.
PATCH 1/1 pxa/magician: fix MAGICIAN_EGPIO_BASE, align with NR_BUILTIN_GPIO
Quoted 23 lines · Russell King - ARM Linux
Quoted 22 lines · Eric Miao
Quoted 6 lines · Philipp Zabel
Commit
a0a4dcbca73a418477f439e812193e2591b46751
"ARM: pxa: alignNR_BUILTIN_GPIOwith GPIO interrupt number" increasedNR_BUILTIN_GPIOfrom 128 toPXA_GPIO_IRQ_NUM(192). Adjust the previously hardcodedMAGICIAN_EGPIO_BASEaccordingly.Signed-off-by Philipp Zabel <[email protected]>Applied.
Quoted 12 lines
---
?arch/arm/mach-pxa/include/mach/magician.h | ? ?3 ++- ?1 files changed, 2 insertions(+), 1 deletions(-)arch/arm/mach-pxa/include/mach/magician.h +0
-0@@ -12,6 +12,7 @@?#ifndef _MAGICIAN_H_
?#define _MAGICIAN_H_
Quoted 4 lines
Quoted 1 line
Quoted 1 line
+#include <
mach/gpio.h>Note that there's yet another
mach/gpio.hhere.
Fixed.