aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/include
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2011-03-05 10:01:31 -0500
committerGreg Ungerer <gerg@uclinux.org>2011-03-15 07:01:55 -0400
commitb195c47924ba3ff7434ab49412e5b2dab0a973fa (patch)
tree0bf9a22aa52bc0db58821e593fa26197ca25ea36 /arch/m68k/include
parent6a92e1982d5c538d1cfafbe4b0cb16d49306854f (diff)
m68knommu: clean up definitions of ColdFire peripheral base registers
Different ColdFire CPUs have different ways of defining where their internal peripheral registers sit in their address space. Some use an MBAR register, some use and IPSBAR register, some have a fixed mapping. Now that most of the peripheral address definitions have been cleaned up we can clean up the setting of the MBAR and IPSBAR defines to limit them to just where they are needed (and where they actually exist). Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/include')
-rw-r--r--arch/m68k/include/asm/coldfire.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/arch/m68k/include/asm/coldfire.h b/arch/m68k/include/asm/coldfire.h
index c7dce7e55686..f06a0a439129 100644
--- a/arch/m68k/include/asm/coldfire.h
+++ b/arch/m68k/include/asm/coldfire.h
@@ -27,15 +27,20 @@
27#endif 27#endif
28 28
29/* 29/*
30 * Define the processor support peripherals base address. 30 * Define the processor internal peripherals base address.
31 *
32 * The majority of ColdFire parts use an MBAR register to set
33 * the base address. Some have an IPSBAR register instead, and it
34 * has slightly different rules on its size and alignment. Some
35 * parts have fixed addresses and the internal peripherals cannot
36 * be relocated in the address space.
37 *
31 * This is generally setup by the boards start up code. 38 * This is generally setup by the boards start up code.
32 */ 39 */
33#define MCF_MBAR 0x10000000
34#define MCF_IPSBAR 0x40000000
35
36#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) 40#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x)
37#undef MCF_MBAR 41#define MCF_IPSBAR 0x40000000
38#define MCF_MBAR MCF_IPSBAR 42#else
43#define MCF_MBAR 0x10000000
39#endif 44#endif
40 45
41/****************************************************************************/ 46/****************************************************************************/