diff options
Diffstat (limited to 'arch/m68k/include/asm/m5206sim.h')
-rw-r--r-- | arch/m68k/include/asm/m5206sim.h | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/arch/m68k/include/asm/m5206sim.h b/arch/m68k/include/asm/m5206sim.h index 7e3594dea88b..9c384e294af9 100644 --- a/arch/m68k/include/asm/m5206sim.h +++ b/arch/m68k/include/asm/m5206sim.h | |||
@@ -85,8 +85,21 @@ | |||
85 | #define MCFSIM_PAR 0xcb /* Pin Assignment reg (r/w) */ | 85 | #define MCFSIM_PAR 0xcb /* Pin Assignment reg (r/w) */ |
86 | #endif | 86 | #endif |
87 | 87 | ||
88 | #define MCFSIM_PADDR 0x1c5 /* Parallel Direction (r/w) */ | 88 | #define MCFSIM_PADDR (MCF_MBAR + 0x1c5) /* Parallel Direction (r/w) */ |
89 | #define MCFSIM_PADAT 0x1c9 /* Parallel Port Value (r/w) */ | 89 | #define MCFSIM_PADAT (MCF_MBAR + 0x1c9) /* Parallel Port Value (r/w) */ |
90 | |||
91 | /* | ||
92 | * Define system peripheral IRQ usage. | ||
93 | */ | ||
94 | #define MCF_IRQ_TIMER 30 /* Timer0, Level 6 */ | ||
95 | #define MCF_IRQ_PROFILER 31 /* Timer1, Level 7 */ | ||
96 | |||
97 | /* | ||
98 | * Generic GPIO | ||
99 | */ | ||
100 | #define MCFGPIO_PIN_MAX 8 | ||
101 | #define MCFGPIO_IRQ_VECBASE -1 | ||
102 | #define MCFGPIO_IRQ_MAX -1 | ||
90 | 103 | ||
91 | /* | 104 | /* |
92 | * Some symbol defines for the Parallel Port Pin Assignment Register | 105 | * Some symbol defines for the Parallel Port Pin Assignment Register |
@@ -111,21 +124,5 @@ | |||
111 | #define MCFSIM_DMA2ICR MCFSIM_ICR15 /* DMA 2 ICR */ | 124 | #define MCFSIM_DMA2ICR MCFSIM_ICR15 /* DMA 2 ICR */ |
112 | #endif | 125 | #endif |
113 | 126 | ||
114 | #if defined(CONFIG_M5206e) | ||
115 | #define MCFSIM_IMR_MASKALL 0xfffe /* All SIM intr sources */ | ||
116 | #endif | ||
117 | |||
118 | /* | ||
119 | * Macro to get and set IMR register. It is 16 bits on the 5206. | ||
120 | */ | ||
121 | #define mcf_getimr() \ | ||
122 | *((volatile unsigned short *) (MCF_MBAR + MCFSIM_IMR)) | ||
123 | |||
124 | #define mcf_setimr(imr) \ | ||
125 | *((volatile unsigned short *) (MCF_MBAR + MCFSIM_IMR)) = (imr) | ||
126 | |||
127 | #define mcf_getipr() \ | ||
128 | *((volatile unsigned short *) (MCF_MBAR + MCFSIM_IPR)) | ||
129 | |||
130 | /****************************************************************************/ | 127 | /****************************************************************************/ |
131 | #endif /* m5206sim_h */ | 128 | #endif /* m5206sim_h */ |