diff options
Diffstat (limited to 'arch/m68k/include/asm/m5407sim.h')
-rw-r--r-- | arch/m68k/include/asm/m5407sim.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/arch/m68k/include/asm/m5407sim.h b/arch/m68k/include/asm/m5407sim.h index cc22c4a53005..c399abbf953c 100644 --- a/arch/m68k/include/asm/m5407sim.h +++ b/arch/m68k/include/asm/m5407sim.h | |||
@@ -73,9 +73,15 @@ | |||
73 | #define MCFSIM_DACR1 0x110 /* DRAM 1 Addr and Ctrl (r/w) */ | 73 | #define MCFSIM_DACR1 0x110 /* DRAM 1 Addr and Ctrl (r/w) */ |
74 | #define MCFSIM_DMR1 0x114 /* DRAM 1 Mask reg (r/w) */ | 74 | #define MCFSIM_DMR1 0x114 /* DRAM 1 Mask reg (r/w) */ |
75 | 75 | ||
76 | #define MCFSIM_PADDR 0x244 /* Parallel Direction (r/w) */ | 76 | #define MCFSIM_PADDR (MCF_MBAR + 0x244) |
77 | #define MCFSIM_PADAT 0x248 /* Parallel Data (r/w) */ | 77 | #define MCFSIM_PADAT (MCF_MBAR + 0x248) |
78 | 78 | ||
79 | /* | ||
80 | * Generic GPIO support | ||
81 | */ | ||
82 | #define MCFGPIO_PIN_MAX 16 | ||
83 | #define MCFGPIO_IRQ_MAX -1 | ||
84 | #define MCFGPIO_IRQ_VECBASE -1 | ||
79 | 85 | ||
80 | /* | 86 | /* |
81 | * Some symbol defines for the above... | 87 | * Some symbol defines for the above... |
@@ -91,19 +97,6 @@ | |||
91 | #define MCFSIM_DMA3ICR MCFSIM_ICR9 /* DMA 3 ICR */ | 97 | #define MCFSIM_DMA3ICR MCFSIM_ICR9 /* DMA 3 ICR */ |
92 | 98 | ||
93 | /* | 99 | /* |
94 | * Macro to set IMR register. It is 32 bits on the 5407. | ||
95 | */ | ||
96 | #define mcf_getimr() \ | ||
97 | *((volatile unsigned long *) (MCF_MBAR + MCFSIM_IMR)) | ||
98 | |||
99 | #define mcf_setimr(imr) \ | ||
100 | *((volatile unsigned long *) (MCF_MBAR + MCFSIM_IMR)) = (imr); | ||
101 | |||
102 | #define mcf_getipr() \ | ||
103 | *((volatile unsigned long *) (MCF_MBAR + MCFSIM_IPR)) | ||
104 | |||
105 | |||
106 | /* | ||
107 | * Some symbol defines for the Parallel Port Pin Assignment Register | 100 | * Some symbol defines for the Parallel Port Pin Assignment Register |
108 | */ | 101 | */ |
109 | #define MCFSIM_PAR_DREQ0 0x40 /* Set to select DREQ0 input */ | 102 | #define MCFSIM_PAR_DREQ0 0x40 /* Set to select DREQ0 input */ |
@@ -118,6 +111,11 @@ | |||
118 | #define IRQ3_LEVEL6 0x40 | 111 | #define IRQ3_LEVEL6 0x40 |
119 | #define IRQ1_LEVEL2 0x20 | 112 | #define IRQ1_LEVEL2 0x20 |
120 | 113 | ||
114 | /* | ||
115 | * Define system peripheral IRQ usage. | ||
116 | */ | ||
117 | #define MCF_IRQ_TIMER 30 /* Timer0, Level 6 */ | ||
118 | #define MCF_IRQ_PROFILER 31 /* Timer1, Level 7 */ | ||
121 | 119 | ||
122 | /* | 120 | /* |
123 | * Define the Cache register flags. | 121 | * Define the Cache register flags. |