summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/crt0.S
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-02 17:43:32 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-02 17:43:32 +0000
commit5d849a963e562d1996c20cd72228835276288141 (patch)
tree8c96a2524f6c1b6d714506a8d012a9c7ded24918 /firmware/target/coldfire/crt0.S
parent35bcdef1441519bb66a77b675013309ef39e9eec (diff)
downloadrockbox-5d849a963e562d1996c20cd72228835276288141.tar.gz
rockbox-5d849a963e562d1996c20cd72228835276288141.zip
Clean up multiple definitions of RAM size. Remove -DMEM (make) and MEM (code), use the already defined MEMORYSIZE instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29189 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/crt0.S')
-rw-r--r--firmware/target/coldfire/crt0.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/coldfire/crt0.S b/firmware/target/coldfire/crt0.S
index 7734970ff0..e6717710b1 100644
--- a/firmware/target/coldfire/crt0.S
+++ b/firmware/target/coldfire/crt0.S
@@ -138,7 +138,7 @@ start:
138 138
139 /* Set up the DRAM controller. The refresh is based on the 11.2896MHz 139 /* Set up the DRAM controller. The refresh is based on the 11.2896MHz
140 clock (5.6448MHz bus frequency). We haven't yet started the PLL */ 140 clock (5.6448MHz bus frequency). We haven't yet started the PLL */
141#if MEM < 32 141#if MEMORYSIZE < 32
142 move.w #0x8004,%d0 /* DCR - Synchronous, 80 cycle refresh */ 142 move.w #0x8004,%d0 /* DCR - Synchronous, 80 cycle refresh */
143#else 143#else
144 move.w #0x8001,%d0 /* DCR - Synchronous, 32 cycle refresh */ 144 move.w #0x8001,%d0 /* DCR - Synchronous, 32 cycle refresh */
@@ -153,7 +153,7 @@ start:
153 In our case this means that we set the base address 16M ahead and 153 In our case this means that we set the base address 16M ahead and
154 use a 64M mask. 154 use a 64M mask.
155 */ 155 */
156#if MEM < 32 156#if MEMORYSIZE < 32
157 move.l #0x31002324,%d0 /* DACR0 - Base 0x31000000, Banks on 21 and up, 157 move.l #0x31002324,%d0 /* DACR0 - Base 0x31000000, Banks on 21 and up,
158 CAS latency 2, Page mode, No refresh yet */ 158 CAS latency 2, Page mode, No refresh yet */
159 move.l %d0,(0x108,%a0) 159 move.l %d0,(0x108,%a0)