summaryrefslogtreecommitdiff
path: root/cpu/mpc86xx/cpu_init.c
diff options
context:
space:
mode:
authorBecky Bruce <becky.bruce@freescale.com>2008-01-23 16:31:01 -0600
committerJon Loeliger <jdl@freescale.com>2008-01-24 12:12:30 -0600
commit4933b91f8a49e436681f163df3173beb91cac44a (patch)
tree6c90329f8c9f61b4641ab7824bbeebf63995590e /cpu/mpc86xx/cpu_init.c
parent1a41f7ce9c086e208c0eabf52565a237af2a2bd1 (diff)
downloadu-boot-imx-4933b91f8a49e436681f163df3173beb91cac44a.zip
u-boot-imx-4933b91f8a49e436681f163df3173beb91cac44a.tar.gz
u-boot-imx-4933b91f8a49e436681f163df3173beb91cac44a.tar.bz2
86xx: Support new law setup method and convert mpc8641
Adds the support code in cpu/mpc86xx for the new law setup code recently created fsl_law.c, and changes the MPC8641HPCN config to use this code. Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Diffstat (limited to 'cpu/mpc86xx/cpu_init.c')
-rw-r--r--cpu/mpc86xx/cpu_init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpu/mpc86xx/cpu_init.c b/cpu/mpc86xx/cpu_init.c
index 4f8956e..ab5906d 100644
--- a/cpu/mpc86xx/cpu_init.c
+++ b/cpu/mpc86xx/cpu_init.c
@@ -49,6 +49,10 @@ void cpu_init_f(void)
/* Clear initial global data */
memset ((void *) gd, 0, sizeof (gd_t));
+#ifdef CONFIG_FSL_LAW
+ init_laws();
+#endif
+
/* Map banks 0 and 1 to the FLASH banks 0 and 1 at preliminary
* addresses - these have to be modified later when FLASH size
* has been determined
@@ -114,5 +118,8 @@ void cpu_init_f(void)
*/
int cpu_init_r(void)
{
+#ifdef CONFIG_FSL_LAW
+ disable_law(0);
+#endif
return 0;
}