aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf561/head.S
diff options
context:
space:
mode:
authorMike Frysinger <michael.frysinger@analog.com>2007-07-24 22:11:42 -0400
committerBryan Wu <bryan.wu@analog.com>2007-07-24 22:11:42 -0400
commite208f83a7aa4ebf6c0a68e814903e8aa33f9439a (patch)
treea45d34fa199c8e5d75878d8a2f15e944eadce852 /arch/blackfin/mach-bf561/head.S
parent36a1548f99e54520f049a703e1b91bae95e72481 (diff)
Blackfin arch: use HI/LO macros rather than masking the bit ranges ourselves
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/mach-bf561/head.S')
-rw-r--r--arch/blackfin/mach-bf561/head.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/blackfin/mach-bf561/head.S b/arch/blackfin/mach-bf561/head.S
index b1d0e54a97a9..173893429b04 100644
--- a/arch/blackfin/mach-bf561/head.S
+++ b/arch/blackfin/mach-bf561/head.S
@@ -100,8 +100,8 @@ ENTRY(__start)
100 R0 = R1; 100 R0 = R1;
101 101
102 /* Turn off the icache */ 102 /* Turn off the icache */
103 p0.l = (IMEM_CONTROL & 0xFFFF); 103 p0.l = LO(IMEM_CONTROL);
104 p0.h = (IMEM_CONTROL >> 16); 104 p0.h = HI(IMEM_CONTROL);
105 R1 = [p0]; 105 R1 = [p0];
106 R0 = ~ENICPLB; 106 R0 = ~ENICPLB;
107 R0 = R0 & R1; 107 R0 = R0 & R1;
@@ -117,8 +117,8 @@ ENTRY(__start)
117#endif 117#endif
118 118
119 /* Turn off the dcache */ 119 /* Turn off the dcache */
120 p0.l = (DMEM_CONTROL & 0xFFFF); 120 p0.l = LO(DMEM_CONTROL);
121 p0.h = (DMEM_CONTROL >> 16); 121 p0.h = HI(DMEM_CONTROL);
122 R1 = [p0]; 122 R1 = [p0];
123 R0 = ~ENDCPLB; 123 R0 = ~ENDCPLB;
124 R0 = R0 & R1; 124 R0 = R0 & R1;
@@ -371,8 +371,8 @@ ENTRY(_start_dma_code)
371 w[p0] = r0.l; 371 w[p0] = r0.l;
372 ssync; 372 ssync;
373 373
374 p0.l = (EBIU_SDBCTL & 0xFFFF); 374 p0.l = LO(EBIU_SDBCTL);
375 p0.h = (EBIU_SDBCTL >> 16); /* SDRAM Memory Bank Control Register */ 375 p0.h = HI(EBIU_SDBCTL); /* SDRAM Memory Bank Control Register */
376 r0 = mem_SDBCTL; 376 r0 = mem_SDBCTL;
377 w[p0] = r0.l; 377 w[p0] = r0.l;
378 ssync; 378 ssync;