Skip to content

Commit

Permalink
uboot: Add fixup for CREG_AXI_M_HS_CORE_BOOT
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Didin <didin@synopsys.com>
  • Loading branch information
EvgeniiDidin committed Jan 15, 2018
1 parent 163c802 commit 585dd4a
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 53ab52507c3693d3f6ff126636442c681366d8bf Mon Sep 17 00:00:00 2001
From: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Date: Fri, 12 Jan 2018 16:58:54 +0300
Subject: [PATCH] ARC: HSDK: fix: clear two bits, not bytes in
CREG_AXI_M_HS_CORE_BOOT

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
---
board/synopsys/hsdk/hsdk-cmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/synopsys/hsdk/hsdk-cmd.c b/board/synopsys/hsdk/hsdk-cmd.c
index 67160ee7df..ed7a7b876c 100644
--- a/board/synopsys/hsdk/hsdk-cmd.c
+++ b/board/synopsys/hsdk/hsdk-cmd.c
@@ -737,7 +737,7 @@ void init_memory_bridge(void)
* M_HS_CORE has one unic register - BOOT.
* We need to clean boot mirror (BOOT[1:0]) bits in them.
*/
- reg = readl(CREG_AXI_M_HS_CORE_BOOT) & (~0xFF);
+ reg = readl(CREG_AXI_M_HS_CORE_BOOT) & (~0x3);
writel(reg, CREG_AXI_M_HS_CORE_BOOT);
writel(0x11111111, CREG_AXI_M_SLV0(M_HS_CORE));
writel(0x63111111, CREG_AXI_M_SLV1(M_HS_CORE));
--
2.11.0

0 comments on commit 585dd4a

Please sign in to comment.