Skip to contentSkip to conversation

common: board_f: add print_archinfo to display arch information

RFC PATCH New Jaehoon Chung 3 participants 5 messages Jan 15, 2021 – Jan 20, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20210115044623epcas1p36fd00331f2a72481e9b1f479c1be1836@epcas1p3.samsung.com

#1 lore raw

RFC PATCH 1/1 common: board_f: add print_archinfo to display arch information

Current U-boot doesn't display a message about which architecture is used. So Developer is difficult to know it by intuition. This patch is displaying to CPU information with CONFIG_SYS_CPU.

CPU: armv8
DARM: 3.9 GiB

---
 common/board_f.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
common/board_f.c +11 -0
index 9f441c44f1..f42c062602 100644
@@ -206,6 +206,14 @@ static int print_cpuinfo(void)
 }
 #endif
 
+#if defined(CONFIG_SYS_CPU)
+static int print_archinfo(void)
+{
+	printf("CPU: %s\n", CONFIG_SYS_CPU);
+	return 0;
+}
+#endif
+
 static int announce_dram_init(void)
 {
 	puts("DRAM:  ");
@@ -880,6 +888,9 @@ static const init_fnc_t init_sequence_f[] = {
 #endif
 #if defined(CONFIG_VID) && !defined(CONFIG_SPL)
 	init_func_vid,
+#endif
+#if defined(CONFIG_SYS_CPU)
+	print_archinfo,
 #endif
 	announce_dram_init,
 	dram_init,		/* configure available RAM banks */
Signature · 1 line
2.17.1
#2 lore raw

RFC PATCH 1/1 common: board_f: add print_archinfo to display arch information

Quoted 8 lines · Jaehoon Chung

Current U-boot doesn't display a message about which architecture is used. So Developer is difficult to know it by intuition. This patch is displaying to CPU information with CONFIG_SYS_CPU.

CPU: armv8
DARM: 3.9 GiB

We have a large number of "CPU: " prints today, under CONFIG_DISPLAY_CPUINFO which is what I think you're looking for.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210115/64768179/attachment.sig>
#3 lore raw

RFC PATCH 1/1 common: board_f: add print_archinfo to display arch information

Hi Tom,

Quoted 6 lines · Tom Rini
Quoted 4 lines · Jaehoon Chung

Current U-boot doesn't display a message about which architecture is used. So Developer is difficult to know it by intuition. This patch is displaying to CPU information with CONFIG_SYS_CPU.

Quoted 7 lines
Quoted 4 lines

CPU: armv8
DARM: 3.9 GiB

We have a large number of "CPU: " prints today, under CONFIG_DISPLAY_CPUINFO which is what I think you're looking for.

Thanks for sharing it.
Frankly, i had found CONFIG_DISPLAY_CPUINFO, but i have misunderstood about it. So That's why i sent RFC patch.

Thanks!

Best Regards,
Jaehoon Chung

Quoted 1 line
#4 lore raw

RFC PATCH 1/1 common: board_f: add print_archinfo to display arch information

Hi Jaehoon,

Quoted 13 lines · Jaehoon Chung

Hi Tom,

Quoted 9 lines · Tom Rini
Quoted 7 lines · Jaehoon Chung

Current U-boot doesn't display a message about which architecture is used. So Developer is difficult to know it by intuition. This patch is displaying to CPU information with CONFIG_SYS_CPU.

CPU: armv8
DARM: 3.9 GiB

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

We have a large number of "CPU: " prints today, under CONFIG_DISPLAY_CPUINFO which is what I think you're looking for.

Thanks for sharing it.
Frankly, i had found CONFIG_DISPLAY_CPUINFO, but i have misunderstood about it. So That's why i sent RFC patch.

Also in case it is useful, I sent a patch to allow the model name to come from a sysinfo driver:

https://patchwork.ozlabs.org/project/uboot/patch/20210116145343.11.I93d883230fabc88c1e9fd95d72d497069b2c60e9 at changeid/

Regards,
Simon

#5 lore raw

RFC PATCH 1/1 common: board_f: add print_archinfo to display arch information

Hi Simon,

Quoted 21 lines · Simon Glass

Hi Jaehoon,

Quoted 18 lines · Jaehoon Chung

Hi Tom,

Quoted 13 lines · Tom Rini
Quoted 8 lines · Jaehoon Chung

Current U-boot doesn't display a message about which architecture is used. So Developer is difficult to know it by intuition. This patch is displaying to CPU information with CONFIG_SYS_CPU.

CPU: armv8
DARM: 3.9 GiB

We have a large number of "CPU: " prints today, under CONFIG_DISPLAY_CPUINFO which is what I think you're looking for.

Quoted 8 lines
Quoted 3 lines

Thanks for sharing it.
Frankly, i had found CONFIG_DISPLAY_CPUINFO, but i have misunderstood about it. So That's why i sent RFC patch.

Also in case it is useful, I sent a patch to allow the model name to come from a sysinfo driver:

https://protect2.fireeye.com/v1/url?k=187ced84-47e7d4e1-187d66cb-000babff32e3-3872eb836621c517&q=1&e=a8e94ada-7963-490c-bcde-520a25e22603&u=https%3A%2F%2Fpatchwork.ozlabs.org%2Fproject%2Fuboot%2Fpatch%2F20210116145343.11.I93d883230fabc88c1e9fd95d72d497069b2c60e9%40changeid%2F

Thanks for sharing it. I didn't know about it. :)

Best Regards,
Jaehoon Chung

Quoted 4 lines

Regards,
Simon