diff options
author | Mingkai Hu <Mingkai.hu@freescale.com> | 2009-08-18 07:37:15 (GMT) |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-08-28 22:12:41 (GMT) |
commit | 76b474e2f5a223fcabfeaa4f1c8fb699062b986c (patch) | |
tree | 5b3dc4828ac7b9ce1775778f0296480ba6c87be0 /cpu/mpc85xx | |
parent | 158c6724c99368a4d8eef11ee7e3c7ad0ef03a15 (diff) | |
download | u-boot-76b474e2f5a223fcabfeaa4f1c8fb699062b986c.tar.xz |
85xx: Add L2SRAM Register's macro definition
Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'cpu/mpc85xx')
-rw-r--r-- | cpu/mpc85xx/cpu_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpu/mpc85xx/cpu_init.c b/cpu/mpc85xx/cpu_init.c index 41de694..c4d1a9d 100644 --- a/cpu/mpc85xx/cpu_init.c +++ b/cpu/mpc85xx/cpu_init.c @@ -330,11 +330,12 @@ int cpu_init_r(void) break; } - if (l2cache->l2ctl & 0x80000000) { + if (l2cache->l2ctl & MPC85xx_L2CTL_L2E) { puts("already enabled"); l2srbar = l2cache->l2srbar0; #ifdef CONFIG_SYS_INIT_L2_ADDR - if (l2cache->l2ctl & 0x00010000 && l2srbar >= CONFIG_SYS_FLASH_BASE) { + if (l2cache->l2ctl & MPC85xx_L2CTL_L2SRAM_ENTIRE + && l2srbar >= CONFIG_SYS_FLASH_BASE) { l2srbar = CONFIG_SYS_INIT_L2_ADDR; l2cache->l2srbar0 = l2srbar; printf("moving to 0x%08x", CONFIG_SYS_INIT_L2_ADDR); |