-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uboot: Add fixup for CREG_AXI_M_HS_CORE_BOOT
Signed-off-by: Evgeniy Didin <didin@synopsys.com>
- Loading branch information
1 parent
163c802
commit 585dd4a
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
...nopsys/hsdk/uboot-patches/0063-ARC-HSDK-fix-clear-two-bits-not-bytes-in-CREG_AXI_M_.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|