Skip to contentSkip to conversation

ARM: UniPhier: minor fixes

PATCH New Masahiro Yamada 3 participants 9 messages Dec 18, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ARM: UniPhier: minor fixes

Masahiro Yamada (5):
ARM: UniPhier: fix property names of aliases nodes of device trees
ARM: UniPhier: remove unnecessary ifdef conditional
ARM: UniPhier: use DRAM area for init stack of normal image
ARM: UniPhier: select CONFIG_SPL
ARM: UniPhier: enable CONFIG_CMD_DM

 arch/arm/Kconfig                              | 1 +
 arch/arm/cpu/armv7/uniphier/init_page_table.c | 4 ----
 arch/arm/dts/uniphier-ph1-ld4-ref.dts         | 8 ++++----
 arch/arm/dts/uniphier-ph1-pro4-ref.dts        | 8 ++++----
 arch/arm/dts/uniphier-ph1-sld3-ref.dts        | 6 +++---
 arch/arm/dts/uniphier-ph1-sld8-ref.dts        | 8 ++++----
 configs/ph1_ld4_defconfig                     | 1 -
 configs/ph1_pro4_defconfig                    | 1 -
 configs/ph1_sld8_defconfig                    | 1 -
 include/configs/uniphier.h                    | 6 ++++++
 10 files changed, 22 insertions(+), 22 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/5 ARM: UniPhier: fix property names of aliases nodes of device trees

The property name of the "aliases" node should be "serial*" to assign a desired number for the device sequence number.

---

 arch/arm/dts/uniphier-ph1-ld4-ref.dts  | 8 ++++----
 arch/arm/dts/uniphier-ph1-pro4-ref.dts | 8 ++++----
 arch/arm/dts/uniphier-ph1-sld3-ref.dts | 6 +++---
 arch/arm/dts/uniphier-ph1-sld8-ref.dts | 8 ++++----
 4 files changed, 15 insertions(+), 15 deletions(-)
arch/arm/dts/uniphier-ph1-ld4-ref.dts +4 -4
index 08bbd03..6855878 100644
@@ -25,10 +25,10 @@
 	};
 
 	aliases {
-		uart0 = &uart0;
-		uart1 = &uart1;
-		uart2 = &uart2;
-		uart3 = &uart3;
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
 		i2c0 = &i2c0;
 		i2c1 = &i2c1;
 		i2c2 = &i2c2;
arch/arm/dts/uniphier-ph1-pro4-ref.dts +4 -4
index 23add7c..1227b62 100644
@@ -25,10 +25,10 @@
 	};
 
 	aliases {
-		uart0 = &uart0;
-		uart1 = &uart1;
-		uart2 = &uart2;
-		uart3 = &uart3;
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
 		i2c0 = &i2c0;
 		i2c1 = &i2c1;
 		i2c2 = &i2c2;
arch/arm/dts/uniphier-ph1-sld3-ref.dts +3 -3
index 91b4dbe..fefc592 100644
@@ -25,9 +25,9 @@
 	};
 
 	aliases {
-		uart0 = &uart0;
-		uart1 = &uart1;
-		uart2 = &uart2;
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
 		i2c0 = &i2c0;
 		i2c1 = &i2c1;
 		i2c2 = &i2c2;
arch/arm/dts/uniphier-ph1-sld8-ref.dts +4 -4
index a8ce049..9b6d95c 100644
@@ -25,10 +25,10 @@
 	};
 
 	aliases {
-		uart0 = &uart0;
-		uart1 = &uart1;
-		uart2 = &uart2;
-		uart3 = &uart3;
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
 		i2c0 = &i2c0;
 		i2c1 = &i2c1;
 		i2c2 = &i2c2;
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/5 ARM: UniPhier: remove unnecessary ifdef conditional

In reply to Masahiro Yamada

init_page_table is only set on SPL.

---

 arch/arm/cpu/armv7/uniphier/init_page_table.c | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/cpu/armv7/uniphier/init_page_table.c +0 -4
index a0d10a9..febb3c8 100644
@@ -17,11 +17,7 @@
 #define REG	DEVICE	/* IO Register: Device */
 #define DDR	DEVICE	/* DDR SDRAM: Device */
 
-#ifdef CONFIG_SPL_BUILD
 #define IS_SPL_TEXT_AREA(x)	((x) == ((CONFIG_SPL_TEXT_BASE) >> 20))
-#else
-#define IS_SPL_TEXT_AREA(x)	((x) == ((CONFIG_SYS_TEXT_BASE) >> 20))
-#endif
 
 #define IS_INIT_STACK_AREA(x)	((x) == ((CONFIG_SYS_INIT_SP_ADDR) >> 20))
 
Signature · 1 line
1.9.1
#3 lore raw

PATCH 3/5 ARM: UniPhier: use DRAM area for init stack of normal image

In reply to Masahiro Yamada

The normal image is working on DRAM. It is better to use DRAM also for init stack than L2 cache.

---

 include/configs/uniphier.h | 4 ++++
 1 file changed, 4 insertions(+)
include/configs/uniphier.h +4 -0
index dd022fb..ed22111 100644
@@ -273,7 +273,11 @@
 #define CONFIG_SYS_SPL_MALLOC_START	(0x0ff00000)
 #define CONFIG_SYS_SPL_MALLOC_SIZE	(0x00004000)
 
+#ifdef CONFIG_SPL_BUILD
 #define CONFIG_SYS_INIT_SP_ADDR		(0x0ff08000)
+#else
+#define CONFIG_SYS_INIT_SP_ADDR		((CONFIG_SYS_TEXT_BASE) - 0x00001000)
+#endif
 
 #define CONFIG_SPL_FRAMEWORK
 #define CONFIG_SPL_NAND_SUPPORT
Signature · 1 line
1.9.1
#4 lore raw

PATCH 4/5 ARM: UniPhier: select CONFIG_SPL

In reply to Masahiro Yamada

Now UniPhier platform is only supported with SPL.

---

 arch/arm/Kconfig           | 1 +
 configs/ph1_ld4_defconfig  | 1 -
 configs/ph1_pro4_defconfig | 1 -
 configs/ph1_sld8_defconfig | 1 -
 4 files changed, 1 insertion(+), 3 deletions(-)
arch/arm/Kconfig +1 -0
index 2b0d2c9..5eb1d03 100644
@@ -800,6 +800,7 @@ config ARCH_UNIPHIER
 	bool "Panasonic UniPhier platform"
 	select CPU_V7
 	select SUPPORT_SPL
+	select SPL
 	select OF_CONTROL if !SPL_BUILD
 
 endchoice
configs/ph1_ld4_defconfig +0 -1
index 3155340..2e9dd00 100644
@@ -1,4 +1,3 @@
-CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 +S:CONFIG_ARM=y
configs/ph1_pro4_defconfig +0 -1
index 7ea4e6e..5dca64b 100644
@@ -1,4 +1,3 @@
-CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 +S:CONFIG_ARM=y
configs/ph1_sld8_defconfig +0 -1
index ddf210c..2a6e334 100644
@@ -1,4 +1,3 @@
-CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 +S:CONFIG_ARM=y
Signature · 1 line
1.9.1
#5 lore raw

PATCH 5/5 ARM: UniPhier: enable CONFIG_CMD_DM

In reply to Masahiro Yamada

---

 include/configs/uniphier.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/uniphier.h +2 -0
index ed22111..5a53c50 100644
@@ -187,6 +187,8 @@
 #define CONFIG_FAT_WRITE
 #define CONFIG_DOS_PARTITION
 
+#define CONFIG_CMD_DM
+
 /* memtest works on */
 #define CONFIG_SYS_MEMTEST_START	CONFIG_SYS_SDRAM_BASE
 #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_SDRAM_BASE + 0x01000000)
Signature · 1 line
1.9.1
#7 lore raw

cover ARM: UniPhier: minor fixes

In reply to Masahiro Yamada

2014-12-18 19:10 GMT+09:00 Masahiro Yamada <[email protected]>:

Quoted 10 lines

Masahiro Yamada (5):
ARM: UniPhier: fix property names of aliases nodes of device trees
ARM: UniPhier: remove unnecessary ifdef conditional
ARM: UniPhier: use DRAM area for init stack of normal image
ARM: UniPhier: select CONFIG_SPL
ARM: UniPhier: enable CONFIG_CMD_DM

Series, applied to u-boot-uniphier

Signature · 2 lines
Best Regards
Masahiro Yamada
#8 lore raw

cover ARM: UniPhier: minor fixes

Quoted 4 lines · Masahiro YAMADA

2014-12-18 19:10 GMT+09:00 Masahiro Yamada <[email protected]>:

Quoted 3 lines
Quoted 8 lines
Quoted 6 lines

Masahiro Yamada (5):
ARM: UniPhier: fix property names of aliases nodes of device trees
ARM: UniPhier: remove unnecessary ifdef conditional
ARM: UniPhier: use DRAM area for init stack of normal image
ARM: UniPhier: select CONFIG_SPL
ARM: UniPhier: enable CONFIG_CMD_DM

Series, applied to u-boot-uniphier

In public, as a reminder to everyone (not picking on Masahiro), as a rule of thumb please try and wait 24h between posting your patches and applying them to your own tree. The patches themselves are fine so I'll be taking the PR shortly.

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/20141218/f4294010/attachment.pgp>