aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-03-10 12:47:14 -0800
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-03-13 13:53:01 +0100
commit40b8afe6f6920eb951b7a1b9ef2766606632ccd8 (patch)
tree5a636203dcac536c30c44d90dc189edd11f8a7c8 /arch/x86
parent644e61448cb02c6252b3f9131bff82e92a0f2aea (diff)
downloadu-boot-40b8afe6f6920eb951b7a1b9ef2766606632ccd8.zip
u-boot-40b8afe6f6920eb951b7a1b9ef2766606632ccd8.tar.gz
u-boot-40b8afe6f6920eb951b7a1b9ef2766606632ccd8.tar.bz2
x86: Add a few more items to bdinfo
Add the timer and vendor/model information. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/lib/bdinfo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/lib/bdinfo.c b/arch/x86/lib/bdinfo.c
index 0cb79b0..1539007 100644
--- a/arch/x86/lib/bdinfo.c
+++ b/arch/x86/lib/bdinfo.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <efi.h>
#include <init.h>
+#include <asm/cpu.h>
#include <asm/efi.h>
#include <asm/global_data.h>
@@ -16,6 +17,11 @@ 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);
+ bdinfo_print_str(" name", cpu_vendor_name(gd->arch.x86_vendor));
+ bdinfo_print_num_l("model", gd->arch.x86_model);
if (IS_ENABLED(CONFIG_EFI_STUB))
efi_show_bdinfo();