From: 黄涛 Date: Tue, 26 Feb 2013 08:23:51 +0000 (+0800) Subject: rk3188: set l2c data latency 231 X-Git-Tag: firefly_0821_release~7515 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=468a5f734f22e88c893a9f17e1d10f3c7cf4189f;p=firefly-linux-kernel-4.4.55.git rk3188: set l2c data latency 231 --- diff --git a/arch/arm/mach-rk30/common.c b/arch/arm/mach-rk30/common.c index ec38ceaca46f..c28e801aa2ab 100755 --- a/arch/arm/mach-rk30/common.c +++ b/arch/arm/mach-rk30/common.c @@ -59,6 +59,9 @@ static void __init rk30_l2_cache_init(void) { #ifdef CONFIG_CACHE_L2X0 u32 aux_ctrl, aux_ctrl_mask, data_latency_ctrl; +#if defined(CONFIG_ARCH_RK3188) + data_latency_ctrl = L2_LATENCY(2, 3, 1); +#else unsigned int max_cpu_freq = 1608000; // kHz struct cpufreq_frequency_table *table = NULL; struct clk *clk_cpu; @@ -84,6 +87,7 @@ static void __init rk30_l2_cache_init(void) data_latency_ctrl = L2_LATENCY(5, 8, 1); else data_latency_ctrl = L2_LATENCY(6, 8, 1); +#endif writel_relaxed(L2_LATENCY(1, 1, 1), RK30_L2C_BASE + L2X0_TAG_LATENCY_CTRL); writel_relaxed(data_latency_ctrl, RK30_L2C_BASE + L2X0_DATA_LATENCY_CTRL);