[PATCH] cache: l2x0: Fix missing write to Auxiliary Control Register

Ley Foon Tan ley.foon.tan at intel.com
Mon May 4 12:41:55 CEST 2020


commit f62782fb2999 ("cache: l2x0: Fix write to incorrect shared-override
bit")

Commit above removed writel to regs->pl310_aux_ctrl by accidentally,
restore it back.

Signed-off-by: Ley Foon Tan <ley.foon.tan at intel.com>
---
 drivers/cache/cache-l2x0.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/cache/cache-l2x0.c b/drivers/cache/cache-l2x0.c
index 226824c2832e..a1556fbf1740 100644
--- a/drivers/cache/cache-l2x0.c
+++ b/drivers/cache/cache-l2x0.c
@@ -36,6 +36,8 @@ static void l2c310_of_parse_and_init(struct udevice *dev)
 	if (dev_read_bool(dev, "arm,shared-override"))
 		saved_reg |= L310_SHARED_ATT_OVERRIDE_ENABLE;
 
+	writel(saved_reg, &regs->pl310_aux_ctrl);
+
 	saved_reg = readl(&regs->pl310_tag_latency_ctrl);
 	if (!dev_read_u32_array(dev, "arm,tag-latency", tag, 3))
 		saved_reg |= L310_LATENCY_CTRL_RD(tag[0] - 1) |
-- 
2.19.0



More information about the U-Boot mailing list