m68knommu: make ColdFire IMR and IPR register definitions absolute addresses
Make all definitions of the ColdFire Interrupt Mask and Pending registers absolute addresses. Currently some are relative to the MBAR peripheral region. The various ColdFire parts use different methods to address the internal registers, some are absolute, some are relative to peripheral regions which can be mapped at different address ranges (such as the MBAR and IPSBAR registers). We don't want to deal with this in the code when we are accessing these registers, so make all register definitions the absolute address - factoring out whether it is an offset into a peripheral region. This makes them all consistently defined, and reduces the occasional bugs caused by inconsistent definition of the register addresses. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
This commit is contained in:
@@ -40,8 +40,8 @@
|
||||
#define MCFSIM_ICR15 0x22 /* Intr Ctrl reg 15 (r/w) */
|
||||
#endif
|
||||
|
||||
#define MCFSIM_IMR 0x36 /* Interrupt Mask reg (r/w) */
|
||||
#define MCFSIM_IPR 0x3a /* Interrupt Pend reg (r/w) */
|
||||
#define MCFSIM_IMR (MCF_MBAR + 0x36) /* Interrupt Mask */
|
||||
#define MCFSIM_IPR (MCF_MBAR + 0x3a) /* Interrupt Pending */
|
||||
|
||||
#define MCFSIM_RSR 0x40 /* Reset Status reg (r/w) */
|
||||
#define MCFSIM_SYPCR 0x41 /* System Protection reg (r/w)*/
|
||||
|
Reference in New Issue
Block a user