common: board_f: add print_archinfo to display arch information
A message that is not in the archive (sent off-list or not yet received): CGME20210115044623epcas1p36fd00331f2a72481e9b1f479c1be1836@epcas1p3.samsung.com
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
@@ -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
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 GiBSigned-off-by Jaehoon Chung <[email protected]>
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>
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 GiBSigned-off-by Jaehoon Chung <[email protected]>We have a large number of "CPU: " prints today, under
CONFIG_DISPLAY_CPUINFOwhich 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
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
Signed-off-by Jaehoon Chung <[email protected]>We have a large number of "CPU: " prints today, under
CONFIG_DISPLAY_CPUINFOwhich is what I think you're looking for.Thanks for sharing it.
Frankly, i had foundCONFIG_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
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 GiBSigned-off-by Jaehoon Chung <[email protected]>We have a large number of "CPU: " prints today, under
CONFIG_DISPLAY_CPUINFOwhich is what I think you're looking for.
Quoted 8 lines
Quoted 3 lines
Thanks for sharing it.
Frankly, i had foundCONFIG_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:
Thanks for sharing it. I didn't know about it. :)
Best Regards,
Jaehoon Chung
Quoted 4 lines
Regards,
Simon