On May 22, 2009, at 10:26 AM, Peter Tyser wrote: > Previously, it was only unlocked when Linux was executed using the > "bootm" command. Unlocking it unconditionally improves U-Boot > performance and provides a common cache state when booting OSes. > > Signed-off-by: Peter Tyser <pty...@xes-inc.com> > --- > lib_ppc/board.c | 8 +++++--- > lib_ppc/bootm.c | 3 ++- > 2 files changed, 7 insertions(+), 4 deletions(-)
Wolfgang, do you know any reason we can't do the unlock for ALL ppc's in board_init_r()? - k > > > diff --git a/lib_ppc/board.c b/lib_ppc/board.c > index a0e6b20..7c02540 100644 > --- a/lib_ppc/board.c > +++ b/lib_ppc/board.c > @@ -68,7 +68,8 @@ > #if defined(CONFIG_LOGBUFFER) > #include <logbuff.h> > #endif > -#if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500) > +#if defined(CONFIG_SYS_INIT_RAM_LOCK) && \ > + (defined(CONFIG_E500) || defined(CONFIG_MPC86xx)) > #include <asm/cache.h> > #endif > #ifdef CONFIG_PS2KBD > @@ -754,8 +755,9 @@ 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) && defined(CONFIG_E500) > - unlock_ram_in_cache(); /* it's time to unlock D-cache in e500 */ > +#if defined(CONFIG_SYS_INIT_RAM_LOCK) && \ > + (defined(CONFIG_E500) || defined(CONFIG_MPC86xx)) > + unlock_ram_in_cache(); /* it's time to unlock D-cache */ > #endif > > #if defined(CONFIG_BAB7xx) || defined(CONFIG_CPC45) > diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c > index 0d702bf..d1cf94e 100644 > --- a/lib_ppc/bootm.c > +++ b/lib_ppc/bootm.c > @@ -71,7 +71,8 @@ static void boot_jump_linux(bootm_headers_t *images) > > show_boot_progress (15); > > -#if defined(CONFIG_SYS_INIT_RAM_LOCK) && !defined(CONFIG_E500) > +#if defined(CONFIG_SYS_INIT_RAM_LOCK) && \ > + !defined(CONFIG_E500) && !defined(CONFIG_MPC86xx) > unlock_ram_in_cache(); > #endif > > -- > 1.6.2.1 > > _______________________________________________ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot