- x86: various improvements made in getting Chromium OS verified boot
  running on top of coreboot, booting into U-Boot.
This commit is contained in:
Tom Rini
2021-07-15 11:06:24 -04:00
22 changed files with 221 additions and 40 deletions

View File

@@ -1,4 +1,4 @@
if TARGET_COREBOOT
if VENDOR_COREBOOT
config SYS_BOARD
default "coreboot"
@@ -9,9 +9,6 @@ config SYS_VENDOR
config SYS_SOC
default "coreboot"
config SYS_CONFIG_NAME
default "coreboot"
config SYS_TEXT_BASE
default 0x01110000
@@ -31,4 +28,11 @@ config SYS_CAR_SIZE
help
This option specifies the board specific Cache-As-RAM (CAR) size.
endif # CONFIG_VENDOR_COREBOOT
if TARGET_COREBOOT
config SYS_CONFIG_NAME
default "coreboot"
endif

View File

@@ -37,6 +37,7 @@ int show_board_info(void)
goto fallback;
const char *bios_ver = smbios_string(bios, t0->bios_ver);
const char *bios_date = smbios_string(bios, t0->bios_release_date);
const char *model = smbios_string(system, t1->product_name);
const char *manufacturer = smbios_string(system, t1->manufacturer);
@@ -46,6 +47,8 @@ int show_board_info(void)
printf("Vendor: %s\n", manufacturer);
printf("Model: %s\n", model);
printf("BIOS Version: %s\n", bios_ver);
if (bios_date)
printf("BIOS date: %s\n", bios_date);
return 0;

View File

@@ -10,17 +10,21 @@
#include <command.h>
#include <cros_ec.h>
#include <dm.h>
#include <init.h>
#include <log.h>
#include <sysinfo.h>
#include <acpi/acpigen.h>
#include <asm-generic/gpio.h>
#include <asm/acpi_nhlt.h>
#include <asm/cb_sysinfo.h>
#include <asm/intel_gnvs.h>
#include <asm/intel_pinctrl.h>
#include <dm/acpi.h>
#include <linux/delay.h>
#include "variant_gpio.h"
DECLARE_GLOBAL_DATA_PTR;
struct cros_gpio_info {
const char *linux_name;
enum cros_gpio_t type;
@@ -28,6 +32,30 @@ struct cros_gpio_info {
int flags;
};
int misc_init_f(void)
{
if (!ll_boot_init()) {
printf("Running as secondary loader");
if (gd->arch.coreboot_table) {
int ret;
printf(" (found coreboot table at %lx)",
gd->arch.coreboot_table);
ret = get_coreboot_info(&lib_sysinfo);
if (ret) {
printf("\nFailed to parse coreboot tables (err=%d)\n",
ret);
return ret;
}
}
printf("\n");
}
return 0;
}
int arch_misc_init(void)
{
return 0;