diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-05-01 09:38:13 +0200 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2017-05-02 22:35:00 -0500 |
commit | 726bd223105c04f7bf5eacdc2540819c301061f7 (patch) | |
tree | 1df7f57b9804aeeaa2a9d4fb89a131c9a23b6cfb /arch/powerpc/include/asm/cpm1.h | |
parent | e21c7316d8ddcf1fd679591d1427e937999a7cf5 (diff) | |
download | linux-726bd223105c04f7bf5eacdc2540819c301061f7.tar.bz2 |
powerpc/8xx: Adding support of IRQ in MPC8xx GPIO
This patch allows the use of IRQ to notify the change of GPIO status
on MPC8xx CPM IO ports. This then allows to associate IRQs to GPIOs
in the Device Tree.
Ex:
CPM1_PIO_C: gpio-controller@960 {
#gpio-cells = <2>;
compatible = "fsl,cpm1-pario-bank-c";
reg = <0x960 0x10>;
fsl,cpm1-gpio-irq-mask = <0x0fff>;
interrupts = <1 2 6 9 10 11 14 15 23 24 26 31>;
interrupt-parent = <&CPM_PIC>;
gpio-controller;
};
The property 'fsl,cpm1-gpio-irq-mask' defines which of the 16 GPIOs
have the associated interrupts defined in the 'interrupts' property.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'arch/powerpc/include/asm/cpm1.h')
-rw-r--r-- | arch/powerpc/include/asm/cpm1.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/cpm1.h b/arch/powerpc/include/asm/cpm1.h index 8ee4211ca0c6..14ad37865000 100644 --- a/arch/powerpc/include/asm/cpm1.h +++ b/arch/powerpc/include/asm/cpm1.h @@ -560,6 +560,8 @@ typedef struct risc_timer_pram { #define CPM_PIN_SECONDARY 2 #define CPM_PIN_GPIO 4 #define CPM_PIN_OPENDRAIN 8 +#define CPM_PIN_FALLEDGE 16 +#define CPM_PIN_ANYEDGE 0 enum cpm_port { CPM_PORTA, |