Skip to contentSkip to conversation

Coldfire generic GPIO (m68knommu)

RFC In review Steven King 1 participant 1 message Mar 11, 2009 m68k architecture

lore
Share & tools
lore
#0 lore raw

RFC 3/14 Coldfire generic GPIO (m68knommu)

arch/m68k/include/asm/m5206sim.h +8 -2
index 7e3594d..7be8a2d 100644
@@ -85,10 +85,16 @@
 #define	MCFSIM_PAR		0xcb		/* Pin Assignment reg (r/w) */
 #endif
 
-#define	MCFSIM_PADDR		0x1c5		/* Parallel Direction (r/w) */
-#define	MCFSIM_PADAT		0x1c9		/* Parallel Port Value (r/w) */
+#define	MCFSIM_PADDR		(MCF_MBAR + 0x1c5)	/* Parallel Direction (r/w) */
+#define	MCFSIM_PADAT		(MCF_MBAR + 0x1c9)	/* Parallel Port Value (r/w) */
 
 /*
+ * Generic GPIO
+ */
+#define MCFGPIO_PIN_MAX		8
+#define MCFGPIO_IRQ_VECBASE	-1
+#define MCFGPIO_IRQ_MAX		-1
+/*
  *	Some symbol defines for the Parallel Port Pin Assignment Register
  */
 #ifdef CONFIG_M5206e