diff options
author | Kefeng Wang <kefeng.wang@linaro.org> | 2014-03-17 18:32:26 +0800 |
---|---|---|
committer | Kefeng Wang <kefeng.wang@linaro.org> | 2014-03-17 18:32:26 +0800 |
commit | 0668b1a0367432b71effbcdb631d2c62dc3e4b00 (patch) | |
tree | a9f6ff5881161cac184d8b793aa58bef94bf02a7 | |
parent | 525018c317cff1d9e5de9cbe2ca89085be70c22b (diff) |
ARM: hip04: add l3 cache init functiontracking-hilt-d01-l3-20140317
Signed-off-by: Kefeng Wang <kefeng.wang@linaro.org>
-rw-r--r-- | arch/arm/mach-hisi/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-hisi/hip04.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-hisi/Kconfig b/arch/arm/mach-hisi/Kconfig index 2468678fe406..2834ca16075b 100644 --- a/arch/arm/mach-hisi/Kconfig +++ b/arch/arm/mach-hisi/Kconfig @@ -24,6 +24,7 @@ config ARCH_HIP04 select ARM_AMBA select ARM_GIC select ARM_LPAE + select CACHE_HISI_L3 select ARM_TIMER_SP804 select CLKSRC_OF select GENERIC_CLOCKEVENTS diff --git a/arch/arm/mach-hisi/hip04.c b/arch/arm/mach-hisi/hip04.c index 3997db38fcb4..3169c2867e23 100644 --- a/arch/arm/mach-hisi/hip04.c +++ b/arch/arm/mach-hisi/hip04.c @@ -28,6 +28,7 @@ #include <asm/mach/arch.h> #include <asm/mach/map.h> +#include <asm/hardware/cache-hisi-l3.h> #include "ahci_vsemiphy.c" #define BOOTWRAPPER_PHYS 0x10c00000 @@ -321,6 +322,8 @@ static struct of_dev_auxdata hip04_auxdata_lookup[] __initdata = { static void __init hip04_init_machine(void) { unsigned int data, mask; + + l3cache_init(0, 0xffffffff); of_platform_populate(NULL, of_default_bus_match_table, hip04_auxdata_lookup, NULL); |