summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/quark/acpi.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-01-08 09:11:53 -0500
committerTom Rini <trini@konsulko.com>2024-01-08 09:11:53 -0500
commitf28a77589e7505535a4eebdc7269df98f67dbe68 (patch)
tree69bb9a116ba839ffc101d1ae923485401332294f /arch/x86/cpu/quark/acpi.c
parentc2c598e87cfe56f5991730762c00733c5aa9a994 (diff)
parent8c4b37ce97c27ad4e7f83b028d4cd1396a51a36f (diff)
Merge tag 'dm-next-7jan23' of https://source.denx.de/u-boot/custodians/u-boot-dm into next
switch to SMBIOS3 tables allow devicetree from bloblist ACPI support for ARM and RISC-V
Diffstat (limited to 'arch/x86/cpu/quark/acpi.c')
-rw-r--r--arch/x86/cpu/quark/acpi.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/cpu/quark/acpi.c b/arch/x86/cpu/quark/acpi.c
index 9a2d682451b..0e18ceab68d 100644
--- a/arch/x86/cpu/quark/acpi.c
+++ b/arch/x86/cpu/quark/acpi.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
+#include <mapmem.h>
#include <acpi/acpi_table.h>
#include <asm/processor.h>
#include <asm/tables.h>
@@ -26,8 +27,6 @@ static int quark_write_fadt(struct acpi_ctx *ctx,
header->length = sizeof(struct acpi_fadt);
header->revision = 4;
- fadt->firmware_ctrl = (u32)ctx->facs;
- fadt->dsdt = (u32)ctx->dsdt;
fadt->preferred_pm_profile = ACPI_PM_UNSPECIFIED;
fadt->sci_int = 9;
fadt->smi_cmd = 0;
@@ -74,10 +73,8 @@ static int quark_write_fadt(struct acpi_ctx *ctx,
fadt->reset_reg.addrh = 0;
fadt->reset_value = SYS_RST | RST_CPU | FULL_RST;
- fadt->x_firmware_ctl_l = (u32)ctx->facs;
- fadt->x_firmware_ctl_h = 0;
- fadt->x_dsdt_l = (u32)ctx->dsdt;
- fadt->x_dsdt_h = 0;
+ fadt->x_firmware_ctrl = map_to_sysmem(ctx->facs);
+ fadt->x_dsdt = map_to_sysmem(ctx->dsdt);
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;