summary refs log tree commit diff
path: root/arch/m68k/include/asm/m54xxsim.h
diff options
context:
space:
mode:
authorSteven King <sfking@fdwdc.com>2014-05-21 16:00:33 -0700
committerGreg Ungerer <gerg@uclinux.org>2014-05-26 13:28:38 +1000
commit83c6bdb827c9422fe6e02130d9546800143304c1 (patch)
treeddd7d58034bc1f14d11e6dc4233301c37feab34b /arch/m68k/include/asm/m54xxsim.h
parentec9f8483547fa354a5747d8954cd0b91225a0b2d (diff)
downloadlinux-83c6bdb827c9422fe6e02130d9546800143304c1.tar.gz
m68knommu: Implement gpio support for m54xx.
Singed-off-by: Steven King <sfking@fdwdc.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/include/asm/m54xxsim.h')
-rw-r--r--arch/m68k/include/asm/m54xxsim.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/m68k/include/asm/m54xxsim.h b/arch/m68k/include/asm/m54xxsim.h
index d3bd83887429..a5fbd17ab0a5 100644
--- a/arch/m68k/include/asm/m54xxsim.h
+++ b/arch/m68k/include/asm/m54xxsim.h
@@ -55,9 +55,15 @@
 /*
  *	Generic GPIO support
  */
-#define MCFGPIO_PIN_MAX		0	/* I am too lazy to count */
-#define MCFGPIO_IRQ_MAX		-1
-#define MCFGPIO_IRQ_VECBASE	-1
+#define MCFGPIO_PODR		(MCF_MBAR + 0xA00)
+#define MCFGPIO_PDDR		(MCF_MBAR + 0xA10)
+#define MCFGPIO_PPDR		(MCF_MBAR + 0xA20)
+#define MCFGPIO_SETR		(MCF_MBAR + 0xA20)
+#define MCFGPIO_CLRR		(MCF_MBAR + 0xA30)
+
+#define MCFGPIO_PIN_MAX		136	/* 128 gpio + 8 eport */
+#define MCFGPIO_IRQ_MAX		8
+#define MCFGPIO_IRQ_VECBASE	MCFINT_VECBASE
 
 /*
  *	EDGE Port support.