sb/intel/common/hpet: use HPET_BASE_ADDRESS definition
Use the definition from arch/x86 instead of a local redefinition.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: If172cde267062a8e759a9670ac93f4e74e8c94d5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62305
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/src/southbridge/intel/common/hpet.c b/src/southbridge/intel/common/hpet.c
index c48edae..e9369ee 100644
--- a/src/southbridge/intel/common/hpet.c
+++ b/src/southbridge/intel/common/hpet.c
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <arch/hpet.h>
#include <southbridge/intel/common/rcba.h>
#include <stdint.h>
@@ -7,8 +8,7 @@
#define HPTC 0x3404
-#define HPET_BASE 0xfed00000
-#define HPET32(x) (*((volatile u32 *)(HPET_BASE + (x))))
+#define HPET32(x) (*((volatile u32 *)(HPET_BASE_ADDRESS + (x))))
void enable_hpet(void)
{