diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2022-02-24 01:03:23 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-02-25 17:42:59 +0000 |
commit | f47d17d81efe87df1e2094b55c8a8c0684e58684 (patch) | |
tree | 83c53b2ab78092a75b244a0f8e35c5e8e8d542e7 /src/southbridge | |
parent | 4b2464fc90d60f01b0d890e1a0dc6dcdbd119617 (diff) |
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>
Diffstat (limited to 'src/southbridge')
-rw-r--r-- | src/southbridge/intel/common/hpet.c | 4 |
1 files 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 <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) { |