From 9c67352f727a5b5eff531c852f9cff59fcb17f7f Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Sun, 26 Jul 2009 23:28:02 +0200 Subject: Revert "ppc: Unlock cache-as-ram in a consistent manner" This reverts commit 982adfc610669482a32127282fe489857a92cfe3. This patch causes problems on MPC83xx boards - flash recognition stops working. Signed-off-by: Wolfgang Denk --- lib_ppc/board.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib_ppc/board.c') diff --git a/lib_ppc/board.c b/lib_ppc/board.c index 8def5205569..6dd4d56ff32 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -68,7 +68,7 @@ #if defined(CONFIG_LOGBUFFER) #include #endif -#if defined(CONFIG_SYS_INIT_RAM_LOCK) +#if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500) #include #endif #ifdef CONFIG_PS2KBD @@ -754,8 +754,8 @@ void board_init_r (gd_t *id, ulong dest_addr) icache_enable (); /* it's time to enable the instruction cache */ #endif -#if defined(CONFIG_SYS_INIT_RAM_LOCK) - unlock_ram_in_cache(); /* it's time to unlock D-cache */ +#if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500) + unlock_ram_in_cache(); /* it's time to unlock D-cache in e500 */ #endif #if defined(CONFIG_BAB7xx) || defined(CONFIG_CPC45) -- cgit v1.2.3