diff options
author | Wolfgang Denk <wd@denx.de> | 2009-07-26 23:28:02 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-07-26 23:28:02 +0200 |
commit | 9c67352f727a5b5eff531c852f9cff59fcb17f7f (patch) | |
tree | 1a6b8476d6e99dadb585e0194f4c4fae8e00e4bf /lib_ppc | |
parent | 8bf7437c0127f417b566c93ffa59df7292a0e11f (diff) | |
download | u-boot-imx-9c67352f727a5b5eff531c852f9cff59fcb17f7f.zip u-boot-imx-9c67352f727a5b5eff531c852f9cff59fcb17f7f.tar.gz u-boot-imx-9c67352f727a5b5eff531c852f9cff59fcb17f7f.tar.bz2 |
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 <wd@denx.de>
Diffstat (limited to 'lib_ppc')
-rw-r--r-- | lib_ppc/board.c | 6 | ||||
-rw-r--r-- | lib_ppc/bootm.c | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c index 8def520..6dd4d56 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -68,7 +68,7 @@ #if defined(CONFIG_LOGBUFFER) #include <logbuff.h> #endif -#if defined(CONFIG_SYS_INIT_RAM_LOCK) +#if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500) #include <asm/cache.h> #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) diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c index e7d2c98..0d702bf 100644 --- a/lib_ppc/bootm.c +++ b/lib_ppc/bootm.c @@ -38,6 +38,11 @@ #include <fdt.h> #include <libfdt.h> #include <fdt_support.h> + +#endif + +#ifdef CONFIG_SYS_INIT_RAM_LOCK +#include <asm/cache.h> #endif DECLARE_GLOBAL_DATA_PTR; @@ -66,6 +71,10 @@ static void boot_jump_linux(bootm_headers_t *images) show_boot_progress (15); +#if defined(CONFIG_SYS_INIT_RAM_LOCK) && !defined(CONFIG_E500) + unlock_ram_in_cache(); +#endif + #if defined(CONFIG_OF_LIBFDT) if (of_flat_tree) { /* device tree; boot new style */ /* |