summaryrefslogtreecommitdiff
path: root/cpu/mpc85xx/start.S
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-01-16 01:13:58 -0600
committerKumar Gala <galak@kernel.crashing.org>2008-01-16 23:21:55 -0600
commit83d40dfd79fe868796275802f60116d84b9e4395 (patch)
tree3d7bfbe3ffe0fbf91395819ff486bde13fbad219 /cpu/mpc85xx/start.S
parent4c9e98ace78e7de972adf7da7135a46ec0a4ee7e (diff)
85xx: Move LAW init code into C
Move the initialization of the LAWs into C code and provide an API to allow modification of LAWs after init. Board code is responsible to provide a law_table and num_law_entries. We should be able to use the same code on 86xx as well. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'cpu/mpc85xx/start.S')
-rw-r--r--cpu/mpc85xx/start.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu/mpc85xx/start.S b/cpu/mpc85xx/start.S
index b489d2ff0ca..346369cc31c 100644
--- a/cpu/mpc85xx/start.S
+++ b/cpu/mpc85xx/start.S
@@ -201,6 +201,7 @@ _start_e500:
lis r7,CFG_CCSRBAR@h
ori r7,r7,CFG_CCSRBAR@l
+#ifndef CONFIG_FSL_LAW
bl law_entry
mr r6,r0
lwzu r5,0(r6) /* how many windows we actually use */
@@ -216,6 +217,7 @@ _start_e500:
addi r2,r2,0x0020
addi r1,r1,0x0020
bdnz 0b
+#endif
/* Clear and set up some registers. */
li r0,0