提交 55604b7a 编写于 作者: A Andrey Smirnov 提交者: Russell King

ARM: 8593/1: cache-l2x0.c: Do not clear bit 23 in prefetch control register

As per L2C-310 TRM[1]:

"... You can control this feature using bits 30,27 and 23 of the
Prefetch Control Register. Bit 23 and 27 are only used if you set bit 30
HIGH..."

which means there is no need to clear bit 23 if bit 30 is being cleared.

[1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0246e/CJAJACBJ.htmlAcked-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NAndrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 fc147310
...@@ -709,11 +709,8 @@ static void __init l2c310_fixup(void __iomem *base, u32 cache_id, ...@@ -709,11 +709,8 @@ static void __init l2c310_fixup(void __iomem *base, u32 cache_id,
if (revision >= L310_CACHE_ID_RTL_R3P0 && if (revision >= L310_CACHE_ID_RTL_R3P0 &&
revision < L310_CACHE_ID_RTL_R3P2) { revision < L310_CACHE_ID_RTL_R3P2) {
u32 val = l2x0_saved_regs.prefetch_ctrl; u32 val = l2x0_saved_regs.prefetch_ctrl;
/* I don't think bit23 is required here... but iMX6 does so */ if (val & L310_PREFETCH_CTRL_DBL_LINEFILL) {
if (val & (L310_PREFETCH_CTRL_DBL_LINEFILL | val &= ~L310_PREFETCH_CTRL_DBL_LINEFILL;
L310_PREFETCH_CTRL_DBL_LINEFILL_INCR)) {
val &= ~(L310_PREFETCH_CTRL_DBL_LINEFILL |
L310_PREFETCH_CTRL_DBL_LINEFILL_INCR);
l2x0_saved_regs.prefetch_ctrl = val; l2x0_saved_regs.prefetch_ctrl = val;
errata[n++] = "752271"; errata[n++] = "752271";
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册