aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/common/hpet.h
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-01-12 22:25:28 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-01-15 11:20:04 +0000
commiteef4343a9f0e94a5a2137793d15c582278715d28 (patch)
treed39a79a7cea1001c5851775c94bc4cb902ae71db /src/southbridge/intel/common/hpet.h
parent70dca08f2559ac7d704a2fadc8af8adc992dc619 (diff)
nb/intel/pineview: Extract HPET setup and delay function
To allow other platforms to reuse this code, extract it into a separate compilation unit. Since HPET is enabled through the southbridge, place the code in the southbridge scope. Finally, select the newly-added Kconfig option from i82801gx and replace lpc.c `enable_hpet` function. Change-Id: I7a28cc4d12c6d79cd8ec45dfc8100f15e6eac303 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49365 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/southbridge/intel/common/hpet.h')
-rw-r--r--src/southbridge/intel/common/hpet.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/southbridge/intel/common/hpet.h b/src/southbridge/intel/common/hpet.h
new file mode 100644
index 0000000000..1a69178e2e
--- /dev/null
+++ b/src/southbridge/intel/common/hpet.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef SOUTHBRIDGE_INTEL_COMMON_HPET_H
+#define SOUTHBRIDGE_INTEL_COMMON_HPET_H
+
+#include <stdint.h>
+
+void enable_hpet(void);
+void hpet_udelay(u32 delay);
+
+#endif /* SOUTHBRIDGE_INTEL_COMMON_HPET_H */