diff options
author | Greg Ungerer <gerg@uclinux.org> | 2012-07-15 08:01:08 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2012-09-27 09:33:48 -0400 |
commit | 660b73e356a63d67231aab49d23e83b1a5a9ec87 (patch) | |
tree | f829ff36a22a50939125f9ae7b99170cca9079a6 /arch/m68k/include/asm/m5307sim.h | |
parent | e1e362dc074c2981e7f78d26bf38a4f14be52ecd (diff) |
m68knommu: make ColdFire watchdog register definitions absolute addresses
Make all definitions of the ColdFire Software watchdog 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>
Diffstat (limited to 'arch/m68k/include/asm/m5307sim.h')
-rw-r--r-- | arch/m68k/include/asm/m5307sim.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/include/asm/m5307sim.h b/arch/m68k/include/asm/m5307sim.h index 5709de5b8289..a328e1806feb 100644 --- a/arch/m68k/include/asm/m5307sim.h +++ b/arch/m68k/include/asm/m5307sim.h | |||
@@ -25,8 +25,8 @@ | |||
25 | */ | 25 | */ |
26 | #define MCFSIM_RSR (MCF_MBAR + 0x00) /* Reset Status reg */ | 26 | #define MCFSIM_RSR (MCF_MBAR + 0x00) /* Reset Status reg */ |
27 | #define MCFSIM_SYPCR (MCF_MBAR + 0x01) /* System Protection */ | 27 | #define MCFSIM_SYPCR (MCF_MBAR + 0x01) /* System Protection */ |
28 | #define MCFSIM_SWIVR 0x02 /* SW Watchdog intr reg (r/w) */ | 28 | #define MCFSIM_SWIVR (MCF_MBAR + 0x02) /* SW Watchdog intr */ |
29 | #define MCFSIM_SWSR 0x03 /* SW Watchdog service (r/w) */ | 29 | #define MCFSIM_SWSR (MCF_MBAR + 0x03) /* SW Watchdog service*/ |
30 | #define MCFSIM_PAR 0x04 /* Pin Assignment reg (r/w) */ | 30 | #define MCFSIM_PAR 0x04 /* Pin Assignment reg (r/w) */ |
31 | #define MCFSIM_IRQPAR 0x06 /* Interrupt Assignment reg (r/w) */ | 31 | #define MCFSIM_IRQPAR 0x06 /* Interrupt Assignment reg (r/w) */ |
32 | #define MCFSIM_PLLCR 0x08 /* PLL Control Reg*/ | 32 | #define MCFSIM_PLLCR 0x08 /* PLL Control Reg*/ |