]> Pileus Git - ~andy/linux/blobdiff - arch/m68k/include/asm/m5407sim.h
generic GPIO support for the Freescale Coldfire 5407.
[~andy/linux] / arch / m68k / include / asm / m5407sim.h
index cc22c4a53005cc9a9e714889fd2869f3919a84e9..25194756b432de0bea8f816fe89419221d230fa5 100644 (file)
 #define MCFSIM_DACR1           0x110           /* DRAM 1 Addr and Ctrl (r/w) */
 #define MCFSIM_DMR1            0x114           /* DRAM 1 Mask reg (r/w) */
 
-#define        MCFSIM_PADDR            0x244           /* Parallel Direction (r/w) */
-#define        MCFSIM_PADAT            0x248           /* Parallel Data (r/w) */
+#define        MCFSIM_PADDR            (MCF_MBAR + 0x244)
+#define        MCFSIM_PADAT            (MCF_MBAR + 0x248)
 
+/*
+ * Generic GPIO support
+ */
+#define MCFGPIO_PIN_MAX                        16
+#define MCFGPIO_IRQ_MAX                        -1
+#define MCFGPIO_IRQ_VECBASE            -1
 
 /*
  *     Some symbol defines for the above...