diff options
author | Paul Burton | 2016-09-21 11:18:49 +0100 |
---|---|---|
committer | Daniel Schwierzeck | 2016-09-21 15:04:04 +0200 |
commit | 33b5c9b2092e10fa3b8b325823c846368f25bba9 (patch) | |
tree | 82545fc3c03572f244679cdfcd4c7387d0a24c41 /arch/mips/cpu/start.S | |
parent | 8cb4817d0f076605c5126f0925f6c7fdb0461bf6 (diff) |
MIPS: Enable use of the instruction cache earlier
Enable use of the instruction cache immediately after it has been
initialised. This will only take effect if U-Boot was linked to run from
kseg0 rather than kseg1, but when this is the case the data cache
initialisation code will run cached & thus significantly faster.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Diffstat (limited to 'arch/mips/cpu/start.S')
-rw-r--r-- | arch/mips/cpu/start.S | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/mips/cpu/start.S b/arch/mips/cpu/start.S index fc6dd66aa65..827a5449878 100644 --- a/arch/mips/cpu/start.S +++ b/arch/mips/cpu/start.S @@ -12,10 +12,6 @@ #include <asm/regdef.h> #include <asm/mipsregs.h> -#ifndef CONFIG_SYS_MIPS_CACHE_MODE -#define CONFIG_SYS_MIPS_CACHE_MODE CONF_CM_CACHABLE_NONCOHERENT -#endif - #ifndef CONFIG_SYS_INIT_SP_ADDR #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + \ CONFIG_SYS_INIT_SP_OFFSET) @@ -154,10 +150,6 @@ reset: PTR_LA t9, mips_cache_reset jalr t9 nop - - /* ... and enable them */ - li t0, CONFIG_SYS_MIPS_CACHE_MODE - mtc0 t0, CP0_CONFIG #endif /* Set up temporary stack */ |