]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Make coreboot sysinfo available to any x86 board
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 05:00:18 +0000 (18:00 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 00:59:37 +0000 (13:59 +1300)
It is possible to boot U-Boot for chromebook_coral either 'bare metal' or
from coreboot. In the latter case we want to provide access to the coreboot
sysinfo tables. Move the definitions into a file available to any x86
board.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/coreboot/coreboot.c
arch/x86/cpu/coreboot/sdram.c
arch/x86/cpu/coreboot/tables.c
arch/x86/cpu/coreboot/timestamp.c
arch/x86/include/asm/cb_sysinfo.h [moved from arch/x86/include/asm/arch-coreboot/sysinfo.h with 100% similarity]
board/coreboot/coreboot/coreboot.c
cmd/version.c
drivers/misc/cbmem_console.c
drivers/serial/serial_coreboot.c
drivers/video/coreboot.c

index 15c3ad879a00f79a4b49ba76467adb0f7ebf7754..69cf8f417c713ad4af0035fc5f665dae0ce8c5ba 100644 (file)
@@ -14,7 +14,7 @@
 #include <asm/io.h>
 #include <asm/msr.h>
 #include <asm/mtrr.h>
-#include <asm/arch/sysinfo.h>
+#include <asm/cb_sysinfo.h>
 #include <asm/arch/timestamp.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index a2e47d196a2eb1bb5b0bc80ddc40419691e64a23..43604ee837afa9914f1868b8fc8a23bb914fe959 100644 (file)
@@ -8,7 +8,7 @@
 #include <common.h>
 #include <init.h>
 #include <asm/e820.h>
-#include <asm/arch/sysinfo.h>
+#include <asm/cb_sysinfo.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index c52741ac9da6bfed96c23d43d71616ca0ba5dee4..816a0efd135db5411ee24b8ce17087613d363b13 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <common.h>
 #include <net.h>
-#include <asm/arch/sysinfo.h>
+#include <asm/cb_sysinfo.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 016259780950ea0cffe7531b459171c7750675e8..b1e29558826fa60e31d014b5913567d1cf072909 100644 (file)
@@ -8,7 +8,7 @@
 #include <common.h>
 #include <bootstage.h>
 #include <asm/arch/timestamp.h>
-#include <asm/arch/sysinfo.h>
+#include <asm/cb_sysinfo.h>
 #include <linux/compiler.h>
 
 struct timestamp_entry {
index 9aafb8920cd3761edf4e4d189ec51454abb8009c..175d3ce691a064505cc4b3d5c9d71abf34a39f9b 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #include <common.h>
-#include <asm/arch/sysinfo.h>
+#include <asm/cb_sysinfo.h>
 #include <asm/global_data.h>
 #include <init.h>
 #include <smbios.h>
index 3686b87332498ebfa63c5b20100d28d2fb9b5157..685b458ce262a2061252875cf38e1362acc43750 100644 (file)
@@ -9,7 +9,7 @@
 #include <version.h>
 #include <linux/compiler.h>
 #ifdef CONFIG_SYS_COREBOOT
-#include <asm/arch/sysinfo.h>
+#include <asm/cb_sysinfo.h>
 #endif
 
 const char __weak version_string[] = U_BOOT_VERSION_STRING;
index 5ba0a542060a116ae0b6a11c272c8db04e07acf3..8bbe33d414da9795f5a7c3c7bc8cdeaea219daf0 100644 (file)
@@ -9,7 +9,7 @@
 #error This driver requires coreboot
 #endif
 
-#include <asm/arch/sysinfo.h>
+#include <asm/cb_sysinfo.h>
 
 struct cbmem_console {
        u32 buffer_size;
index 88c8209c5db8360f172de11dc4b17bbae5ddf92a..de09c8681f5cf38f463ba8737841293506c148d8 100644 (file)
@@ -9,7 +9,7 @@
 #include <dm.h>
 #include <ns16550.h>
 #include <serial.h>
-#include <asm/arch/sysinfo.h>
+#include <asm/cb_sysinfo.h>
 
 static int coreboot_of_to_plat(struct udevice *dev)
 {
index 0a5fb08dc8a53a7a8fd5f60f1759dc1e538e32fe..55f72fe886ff308d2e0dd71afd598cc466e318ff 100644 (file)
@@ -7,7 +7,7 @@
 #include <dm.h>
 #include <vbe.h>
 #include <video.h>
-#include <asm/arch/sysinfo.h>
+#include <asm/cb_sysinfo.h>
 
 static int save_vesa_mode(struct cb_framebuffer *fb,
                          struct vesa_mode_info *vesa)