diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2022-02-24 00:51:11 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-02-25 17:44:45 +0000 |
commit | 928a9c8f048874018ab14a0c66108c22b7b04da2 (patch) | |
tree | 3e142c48e7d2471ce534be514e4f709628e5ec88 /src/mainboard/emulation/qemu-i440fx | |
parent | 972d9f2cce2792b847c4c1879f5b52c19585c37c (diff) |
cpu,mb,nb,soc: use HPET_BASE_ADDRESS instead of magic number
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I570f7de90007b67d811d158ca33e099d5cc2d5d3
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62308
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx')
-rw-r--r-- | src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl b/src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl index da670cf889..e9b48584ac 100644 --- a/src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl +++ b/src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl @@ -1,5 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include <arch/hpet.h> + /**************************************************************** * HPET ****************************************************************/ @@ -8,7 +10,7 @@ Scope(\_SB) { Device(HPET) { Name(_HID, EISAID("PNP0103")) Name(_UID, 0) - OperationRegion(HPTM, SystemMemory, 0xFED00000, 0x400) + OperationRegion(HPTM, SystemMemory, HPET_BASE_ADDRESS, 0x400) Field(HPTM, DWordAcc, Lock, Preserve) { VEND, 32, PRD, 32, @@ -27,7 +29,7 @@ Scope(\_SB) { } Name(_CRS, ResourceTemplate() { Memory32Fixed(ReadOnly, - 0xFED00000, // Address Base + HPET_BASE_ADDRESS, // Address Base 0x00000400, // Address Length ) }) |