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>
This commit is contained in:
parent
4b2464fc90
commit
f47d17d81e
|
@ -1,5 +1,6 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
#include <arch/hpet.h>
|
||||||
#include <southbridge/intel/common/rcba.h>
|
#include <southbridge/intel/common/rcba.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -7,8 +8,7 @@
|
||||||
|
|
||||||
#define HPTC 0x3404
|
#define HPTC 0x3404
|
||||||
|
|
||||||
#define HPET_BASE 0xfed00000
|
#define HPET32(x) (*((volatile u32 *)(HPET_BASE_ADDRESS + (x))))
|
||||||
#define HPET32(x) (*((volatile u32 *)(HPET_BASE + (x))))
|
|
||||||
|
|
||||||
void enable_hpet(void)
|
void enable_hpet(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue