From f47d17d81efe87df1e2094b55c8a8c0684e58684 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 24 Feb 2022 01:03:23 +0100 Subject: [PATCH] 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 Change-Id: If172cde267062a8e759a9670ac93f4e74e8c94d5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62305 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Angel Pons --- src/southbridge/intel/common/hpet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/southbridge/intel/common/hpet.c b/src/southbridge/intel/common/hpet.c index c48edae59d..e9369ee540 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 #include #include @@ -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) {