Skip to contentSkip to conversation

common/board_r: Restore non-cached memory setup

PATCH In review Jan Kiszka 2 participants 3 messages Mar 9, 2015

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 common/board_r: Restore non-cached memory setup

This fixes a regression of e310b93ec1, affecting Ethernet on the Jetson TK1, e.g.

---
 common/board_r.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
common/board_r.c +11 -0
index 38be09b..0335f6b 100644
@@ -271,6 +271,14 @@ static int initr_malloc(void)
 	return 0;
 }
 
+#ifdef CONFIG_SYS_NONCACHED_MEMORY
+static int initr_noncached(void)
+{
+	noncached_init();
+	return 0;
+}
+#endif
+
 #ifdef CONFIG_DM
 static int initr_dm(void)
 {
@@ -698,6 +706,9 @@ init_fnc_t init_sequence_r[] = {
 #endif
 	initr_barrier,
 	initr_malloc,
+#ifdef CONFIG_SYS_NONCACHED_MEMORY
+	initr_noncached,
+#endif
 	bootstage_relocate,
 #ifdef CONFIG_DM
 	initr_dm,
Signature · 1 line
2.1.4
author
#1 lore raw

PATCH 1/1 common/board_r: Restore non-cached memory setup

[resent with updated address of Tom]

Quoted 38 lines · Jan Kiszka

This fixes a regression of e310b93ec1, affecting Ethernet on the Jetson TK1, e.g.

---
 common/board_r.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
common/board_r.c +11 -0
index 38be09b..0335f6b 100644
@@ -271,6 +271,14 @@ static int initr_malloc(void)
 	return 0;
 }
 
+#ifdef CONFIG_SYS_NONCACHED_MEMORY
+static int initr_noncached(void)
+{
+	noncached_init();
+	return 0;
+}
+#endif
+
 #ifdef CONFIG_DM
 static int initr_dm(void)
 {
@@ -698,6 +706,9 @@ init_fnc_t init_sequence_r[] = {
 #endif
 	initr_barrier,
 	initr_malloc,
+#ifdef CONFIG_SYS_NONCACHED_MEMORY
+	initr_noncached,
+#endif
 	bootstage_relocate,
 #ifdef CONFIG_DM
 	initr_dm,
#2 lore raw
In reply to Jan Kiszka
Quoted 4 lines · Jan Kiszka

This fixes a regression of e310b93ec1, affecting Ethernet on the Jetson TK1, e.g.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150309/e731b6db/attachment.sig>