aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-socfpga/misc.c
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@kernel.org>2019-03-03 11:02:10 -0600
committerMarek Vasut <marex@denx.de>2019-03-09 17:59:13 +0100
commit532a54e65278564ac16878cda7146d247d8b3193 (patch)
treea76dcbaa47389d90a8e704160517da3f8cb69653 /arch/arm/mach-socfpga/misc.c
parente8e3f2d2d48f97b2c79b698eccedce8f4f880993 (diff)
downloadu-boot-532a54e65278564ac16878cda7146d247d8b3193.zip
u-boot-532a54e65278564ac16878cda7146d247d8b3193.tar.gz
u-boot-532a54e65278564ac16878cda7146d247d8b3193.tar.bz2
ARM: socfpga: fix data and tag latency values for pl310 cache controller
The values for the data and tag latency settings on the PL310 caches controller is an (n-1). For example, the "arm,tag-latency" is specified as <1 1 1>, so the values that should be written to register should be 0x000. And for the "arm,data-latency" specified as <2 1 1>, the register value should be 0x010. Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'arch/arm/mach-socfpga/misc.c')
-rw-r--r--arch/arm/mach-socfpga/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c
index fcf211d..ec8339e 100644
--- a/arch/arm/mach-socfpga/misc.c
+++ b/arch/arm/mach-socfpga/misc.c
@@ -62,8 +62,8 @@ void v7_outer_cache_enable(void)
/* Disable the L2 cache */
clrbits_le32(&pl310->pl310_ctrl, L2X0_CTRL_EN);
- writel(0x111, &pl310->pl310_tag_latency_ctrl);
- writel(0x121, &pl310->pl310_data_latency_ctrl);
+ writel(0x0, &pl310->pl310_tag_latency_ctrl);
+ writel(0x10, &pl310->pl310_data_latency_ctrl);
/* enable BRESP, instruction and data prefetch, full line of zeroes */
setbits_le32(&pl310->pl310_aux_ctrl,