Skip to contentSkip to conversation

ARM: TI: Enable DISPLAY_{CPU/BOARD}INFO

PATCH Superseded Lokesh Vutla 2 participants 5 messages Aug 27, 2016 – Aug 29, 2016 Arm (32-bit)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover ARM: TI: Enable DISPLAY_{CPU/BOARD}INFO

This series adds ID code detection support for AM437x and enables CONFIG_DISPLAY_{CPU/BOARD}INFO on all TI platforms.

Lokesh Vutla (2):
ARM: AM437X: Add Silicon ID support
configs: ti: armv7_common: Enable DISPLAY_{CPU/BOARD}INFO

 arch/arm/cpu/armv7/am33xx/sys_info.c   | 5 ++++-
 arch/arm/include/asm/arch-am33xx/cpu.h | 3 ++-
 include/configs/ti_armv7_common.h      | 4 ++++
 include/configs/ti_armv7_keystone2.h   | 1 -
 include/configs/ti_omap4_common.h      | 2 --
 include/configs/ti_omap5_common.h      | 3 ---
 6 files changed, 10 insertions(+), 8 deletions(-)
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/2 ARM: AM437X: Add Silicon ID support

Add silicon ID code for AM437x silicon. This can be used to print the cpu info using CONFIG_DISPLAY_CPUINFO.
Also printing "CPU :" along with cpu name in order to be consistent with other OMAP platforms.

---
 arch/arm/cpu/armv7/am33xx/sys_info.c   | 5 ++++-
 arch/arm/include/asm/arch-am33xx/cpu.h | 3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/cpu/armv7/am33xx/sys_info.c +4 -1
index 52a6824..808faf4 100644
@@ -97,6 +97,9 @@ int print_cpuinfo(void)
 	case TI81XX:
 		cpu_s = "TI81XX";
 		break;
+	case AM437X:
+		cpu_s = "AM437X";
+		break;
 	default:
 		cpu_s = "Unknown CPU type";
 		break;
@@ -112,7 +115,7 @@ int print_cpuinfo(void)
 	else
 		sec_s = "?";
 
-	printf("%s-%s rev %s\n", cpu_s, sec_s, rev_s);
+	printf("CPU  : %s-%s rev %s\n", cpu_s, sec_s, rev_s);
 
 	return 0;
 }
arch/arm/include/asm/arch-am33xx/cpu.h +2 -1
index 62bca8c..4a0dce9 100644
@@ -43,7 +43,8 @@
 #define HS_DEVICE			0x2
 #define GP_DEVICE			0x3
 
-/* cpu-id for AM33XX and TI81XX family */
+/* cpu-id for AM43XX AM33XX and TI81XX family */
+#define AM437X				0xB98C
 #define AM335X				0xB944
 #define TI81XX				0xB81E
 #define DEVICE_ID			(CTRL_BASE + 0x0600)
Signature · 1 line
2.9.3
#2 lore raw

PATCH 2/2 configs: ti: armv7_common: Enable DISPLAY_{CPU/BOARD}INFO

In reply to Lokesh Vutla

Enable CONFIG_DISPLAY_{CPU/BOARD}INFO on all TI platforms. Also removing the duplicated configs.

---
 include/configs/ti_armv7_common.h    | 4 ++++
 include/configs/ti_armv7_keystone2.h | 1 -
 include/configs/ti_omap4_common.h    | 2 --
 include/configs/ti_omap5_common.h    | 3 ---
 4 files changed, 4 insertions(+), 6 deletions(-)
include/configs/ti_armv7_common.h +4 -0
index 9f947ee..b11ddb2 100644
@@ -284,6 +284,10 @@
 #endif
 #endif /* !CONFIG_NOR_BOOT */
 
+/* Display CPU and Board info */
+#define CONFIG_DISPLAY_CPUINFO
+#define CONFIG_DISPLAY_BOARDINFO
+
 /* Generic Environment Variables */
 
 #ifdef CONFIG_CMD_NET
include/configs/ti_armv7_keystone2.h +0 -1
index 4aa262e..9241323 100644
@@ -15,7 +15,6 @@
 /* U-Boot Build Configuration */
 #define CONFIG_SKIP_LOWLEVEL_INIT	/* U-Boot is a 2nd stage loader */
 #define CONFIG_BOARD_EARLY_INIT_F
-#define CONFIG_DISPLAY_CPUINFO
 
 /* SoC Configuration */
 #define CONFIG_ARCH_CPU_INIT
include/configs/ti_omap4_common.h +0 -2
index 5fad3c1..24d4c83 100644
@@ -17,8 +17,6 @@
  */
 #define CONFIG_OMAP4430		1	/* which is in a 4430 */
 #define CONFIG_MISC_INIT_R
-#define CONFIG_DISPLAY_CPUINFO		1
-#define CONFIG_DISPLAY_BOARDINFO	1
 
 #define CONFIG_SYS_THUMB_BUILD
 
include/configs/ti_omap5_common.h +0 -3
index 3589cdc..2d859e1 100644
@@ -17,9 +17,6 @@
 #ifndef __CONFIG_TI_OMAP5_COMMON_H
 #define __CONFIG_TI_OMAP5_COMMON_H
 
-#define CONFIG_DISPLAY_CPUINFO
-#define CONFIG_DISPLAY_BOARDINFO
-
 /* Common ARM Erratas */
 #define CONFIG_ARM_ERRATA_798870
 
Signature · 1 line
2.9.3
#3 lore raw

PATCH 2/2 configs: ti: armv7_common: Enable DISPLAY_{CPU/BOARD}INFO

Quoted 10 lines · Lokesh Vutla

Enable CONFIG_DISPLAY_{CPU/BOARD}INFO on all TI platforms. Also removing the duplicated configs.

---
 include/configs/ti_armv7_common.h    | 4 ++++
 include/configs/ti_armv7_keystone2.h | 1 -
 include/configs/ti_omap4_common.h    | 2 --
 include/configs/ti_omap5_common.h    | 3 ---
 4 files changed, 4 insertions(+), 6 deletions(-)

This is the wrong direction. Please add an entry to common/Kconfig (a "hidden" one) and select it from board/ti/*/Kconfig. And this will need some cleaning up of some other boards/ Kconfig files that introduced it locally and instead should select this new option. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160828/e19e7891/attachment.sig>
#4 lore raw

PATCH 2/2 configs: ti: armv7_common: Enable DISPLAY_{CPU/BOARD}INFO

Quoted 13 lines · Tom Rini
Quoted 10 lines · Lokesh Vutla

Enable CONFIG_DISPLAY_{CPU/BOARD}INFO on all TI platforms. Also removing the duplicated configs.

---
 include/configs/ti_armv7_common.h    | 4 ++++
 include/configs/ti_armv7_keystone2.h | 1 -
 include/configs/ti_omap4_common.h    | 2 --
 include/configs/ti_omap5_common.h    | 3 ---
 4 files changed, 4 insertions(+), 6 deletions(-)
Quoted 2 lines

This is the wrong direction. Please add an entry to common/Kconfig (a "hidden" one) and select it from board/ti/*/Kconfig. And this will need

Sure, will update the patch to add a common Kconfig entry. But I am not sure about the statement "select it from board/ti/*/Kconfig". You meant it should be selected by every config TARGET_XXX_EVM or something else?

Quoted 2 lines

some cleaning up of some other boards/ Kconfig files that introduced it locally and instead should select this new option. Thanks!

okay, will do it.

Thanks and regards,
Lokesh