aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/asm/m527xsim.h
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2011-03-06 08:01:46 -0500
committerGreg Ungerer <gerg@uclinux.org>2011-03-15 07:01:55 -0400
commit6a92e1982d5c538d1cfafbe4b0cb16d49306854f (patch)
tree700847577d3cd3385125fe46822e8759a76607da /arch/m68k/include/asm/m527xsim.h
parent58f0ac98f386d2b335e5852e8feec828c43a0e13 (diff)
m68knommu: clean up use of MBAR for DRAM registers on ColdFire start
In some of the RAM size autodetection code on ColdFire CPU startup we reference DRAM registers relative to the MBAR register. Not all of the supported ColdFire CPUs have an MBAR, and currently this works because we fake an MBAR address on those registers. In an effort to clean this up, and eventually remove the fake MBAR setting make the DRAM register address definitions actually contain the MBAR (or IPSBAR as appropriate) value as required. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/include/asm/m527xsim.h')
-rw-r--r--arch/m68k/include/asm/m527xsim.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/m68k/include/asm/m527xsim.h b/arch/m68k/include/asm/m527xsim.h
index 04b8c103095d..838fb2b1e88b 100644
--- a/arch/m68k/include/asm/m527xsim.h
+++ b/arch/m68k/include/asm/m527xsim.h
@@ -43,21 +43,21 @@
43 * SDRAM configuration registers. 43 * SDRAM configuration registers.
44 */ 44 */
45#ifdef CONFIG_M5271 45#ifdef CONFIG_M5271
46#define MCFSIM_DCR 0x40 /* SDRAM control */ 46#define MCFSIM_DCR (MCF_IPSBAR + 0x40) /* Control */
47#define MCFSIM_DACR0 0x48 /* SDRAM base address 0 */ 47#define MCFSIM_DACR0 (MCF_IPSBAR + 0x48) /* Base address 0 */
48#define MCFSIM_DMR0 0x4c /* SDRAM address mask 0 */ 48#define MCFSIM_DMR0 (MCF_IPSBAR + 0x4c) /* Address mask 0 */
49#define MCFSIM_DACR1 0x50 /* SDRAM base address 1 */ 49#define MCFSIM_DACR1 (MCF_IPSBAR + 0x50) /* Base address 1 */
50#define MCFSIM_DMR1 0x54 /* SDRAM address mask 1 */ 50#define MCFSIM_DMR1 (MCF_IPSBAR + 0x54) /* Address mask 1 */
51#endif 51#endif
52#ifdef CONFIG_M5275 52#ifdef CONFIG_M5275
53#define MCFSIM_DMR 0x40 /* SDRAM mode */ 53#define MCFSIM_DMR (MCF_IPSBAR + 0x40) /* Mode */
54#define MCFSIM_DCR 0x44 /* SDRAM control */ 54#define MCFSIM_DCR (MCF_IPSBAR + 0x44) /* Control */
55#define MCFSIM_DCFG1 0x48 /* SDRAM configuration 1 */ 55#define MCFSIM_DCFG1 (MCF_IPSBAR + 0x48) /* Configuration 1 */
56#define MCFSIM_DCFG2 0x4c /* SDRAM configuration 2 */ 56#define MCFSIM_DCFG2 (MCF_IPSBAR + 0x4c) /* Configuration 2 */
57#define MCFSIM_DBAR0 0x50 /* SDRAM base address 0 */ 57#define MCFSIM_DBAR0 (MCF_IPSBAR + 0x50) /* Base address 0 */
58#define MCFSIM_DMR0 0x54 /* SDRAM address mask 0 */ 58#define MCFSIM_DMR0 (MCF_IPSBAR + 0x54) /* Address mask 0 */
59#define MCFSIM_DBAR1 0x58 /* SDRAM base address 1 */ 59#define MCFSIM_DBAR1 (MCF_IPSBAR + 0x58) /* Base address 1 */
60#define MCFSIM_DMR1 0x5c /* SDRAM address mask 1 */ 60#define MCFSIM_DMR1 (MCF_IPSBAR + 0x5c) /* Address mask 1 */
61#endif 61#endif
62 62
63/* 63/*