[PATCH v2 04/13] x86: Add a few more items to bdinfo

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Feb 23 12:38:10 CET 2023


On 2/22/23 20:12, Simon Glass wrote:
> Add the timer and vendor/model information.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> (no changes since v1)
>
>   arch/x86/lib/bdinfo.c | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/arch/x86/lib/bdinfo.c b/arch/x86/lib/bdinfo.c
> index 0cb79b01bd3..896de37dce4 100644
> --- a/arch/x86/lib/bdinfo.c
> +++ b/arch/x86/lib/bdinfo.c
> @@ -16,6 +16,10 @@ DECLARE_GLOBAL_DATA_PTR;
>   void arch_print_bdinfo(void)
>   {
>   	bdinfo_print_num_l("prev table", gd->arch.table);
> +	bdinfo_print_num_l("clock_rate", gd->arch.clock_rate);
> +	bdinfo_print_num_l("tsc_base", gd->arch.tsc_base);
> +	bdinfo_print_num_l("vendor", gd->arch.x86_vendor);

Who would know which vendor uses which number?
Please, use cpu_vendor_name() and present a string.

Best regards

Heinrich

> +	bdinfo_print_num_l("model", gd->arch.x86_model);
>
>   	if (IS_ENABLED(CONFIG_EFI_STUB))
>   		efi_show_bdinfo();



More information about the U-Boot mailing list