All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] common: board_f: add print_archinfo to display arch information
       [not found] <CGME20210115044623epcas1p36fd00331f2a72481e9b1f479c1be1836@epcas1p3.samsung.com>
@ 2021-01-15  4:46 ` Jaehoon Chung
  2021-01-15 18:11   ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: Jaehoon Chung @ 2021-01-15  4:46 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 common/board_f.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/common/board_f.c b/common/board_f.c
index 9f441c44f1..f42c062602 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -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 */
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [RFC PATCH] common: board_f: add print_archinfo to display arch information
  2021-01-15  4:46 ` [RFC PATCH] common: board_f: add print_archinfo to display arch information Jaehoon Chung
@ 2021-01-15 18:11   ` Tom Rini
  2021-01-17 22:10     ` Jaehoon Chung
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Rini @ 2021-01-15 18:11 UTC (permalink / raw)
  To: u-boot

On Fri, Jan 15, 2021 at 01:46:54PM +0900, Jaehoon Chung wrote:

> 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
> 
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>

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

-- 
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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [RFC PATCH] common: board_f: add print_archinfo to display arch information
  2021-01-15 18:11   ` Tom Rini
@ 2021-01-17 22:10     ` Jaehoon Chung
  2021-01-19 18:06       ` Simon Glass
  0 siblings, 1 reply; 5+ messages in thread
From: Jaehoon Chung @ 2021-01-17 22:10 UTC (permalink / raw)
  To: u-boot

Hi Tom,

On 1/16/21 3:11 AM, Tom Rini wrote:
> On Fri, Jan 15, 2021 at 01:46:54PM +0900, Jaehoon Chung wrote:
> 
>> 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
>>
>> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> 
> 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

> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [RFC PATCH] common: board_f: add print_archinfo to display arch information
  2021-01-17 22:10     ` Jaehoon Chung
@ 2021-01-19 18:06       ` Simon Glass
  2021-01-20 10:44         ` Jaehoon Chung
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Glass @ 2021-01-19 18:06 UTC (permalink / raw)
  To: u-boot

Hi Jaehoon,

On Sun, 17 Jan 2021 at 15:10, Jaehoon Chung <jh80.chung@samsung.com> wrote:
>
> Hi Tom,
>
> On 1/16/21 3:11 AM, Tom Rini wrote:
> > On Fri, Jan 15, 2021 at 01:46:54PM +0900, Jaehoon Chung wrote:
> >
> >> 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
> >>
> >> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> >
> > 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [RFC PATCH] common: board_f: add print_archinfo to display arch information
  2021-01-19 18:06       ` Simon Glass
@ 2021-01-20 10:44         ` Jaehoon Chung
  0 siblings, 0 replies; 5+ messages in thread
From: Jaehoon Chung @ 2021-01-20 10:44 UTC (permalink / raw)
  To: u-boot

Hi Simon,

On 1/20/21 3:06 AM, Simon Glass wrote:
> Hi Jaehoon,
> 
> On Sun, 17 Jan 2021 at 15:10, Jaehoon Chung <jh80.chung@samsung.com> wrote:
>>
>> Hi Tom,
>>
>> On 1/16/21 3:11 AM, Tom Rini wrote:
>>> On Fri, Jan 15, 2021 at 01:46:54PM +0900, Jaehoon Chung wrote:
>>>
>>>> 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
>>>>
>>>> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
>>>
>>> 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://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

> 
> Regards,
> Simon
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-20 10:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20210115044623epcas1p36fd00331f2a72481e9b1f479c1be1836@epcas1p3.samsung.com>
2021-01-15  4:46 ` [RFC PATCH] common: board_f: add print_archinfo to display arch information Jaehoon Chung
2021-01-15 18:11   ` Tom Rini
2021-01-17 22:10     ` Jaehoon Chung
2021-01-19 18:06       ` Simon Glass
2021-01-20 10:44         ` Jaehoon Chung

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.