diff options
author | Tom Rini <trini@konsulko.com> | 2023-07-17 10:38:28 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-07-17 10:38:28 -0400 |
commit | 13aa090b87a0fbdfe690011669b9fdb96bb1ccc7 (patch) | |
tree | 69af16bc8ecc4b6e8106a750e31e51d7ec078828 /board/sandbox/sandbox.c | |
parent | aa817dfcaf158dda71358d02181bf52c30dbe4c6 (diff) | |
parent | b8956425d525c3c25fd218f252f89a5e44df6a9f (diff) |
Merge https://source.denx.de/u-boot/custodians/u-boot-x86
- bootstd: Add a bootmeth for ChromiumOS on x86
- x86: Use qemu-x86_64 to boot EFI installers
Diffstat (limited to 'board/sandbox/sandbox.c')
-rw-r--r-- | board/sandbox/sandbox.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c index c7b6cb78fff..9d58860451c 100644 --- a/board/sandbox/sandbox.c +++ b/board/sandbox/sandbox.c @@ -11,16 +11,18 @@ #include <efi.h> #include <efi_loader.h> #include <env_internal.h> +#include <extension_board.h> #include <init.h> #include <led.h> +#include <malloc.h> +#include <mapmem.h> #include <os.h> +#include <acpi/acpi_table.h> #include <asm/global_data.h> #include <asm/test.h> #include <asm/u-boot-sandbox.h> #include <linux/kernel.h> -#include <malloc.h> - -#include <extension_board.h> +#include <linux/sizes.h> /* * Pointer to initial global data area @@ -154,6 +156,8 @@ int extension_board_scan(struct list_head *extension_list) int board_late_init(void) { struct udevice *dev; + ulong addr, end; + void *ptr; int ret; ret = uclass_first_device_err(UCLASS_CROS_EC, &dev); @@ -166,6 +170,18 @@ int board_late_init(void) panic("Cannot init cros-ec device"); return -1; } + + if (IS_ENABLED(CONFIG_GENERATE_ACPI_TABLE)) { + /* Reserve 64K for ACPI tables, aligned to a 4K boundary */ + ptr = memalign(SZ_4K, SZ_64K); + addr = map_to_sysmem(ptr); + + /* Generate ACPI tables */ + end = write_acpi_tables(addr); + gd->arch.table_start = addr; + gd->arch.table_end = addr; + } + return 0; } #endif |