coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
rtc.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_INTEL_COMMON_BLOCK_RTC_H
4 #define SOC_INTEL_COMMON_BLOCK_RTC_H
5 
6 /* Top swap feature enable/disable config */
7 enum ts_config {
10 };
11 
12 void enable_rtc_upper_bank(void);
13 
14 /* Expect return rtc failed bootlean in case of coin removal */
15 int soc_get_rtc_failed(void);
16 
17 void rtc_init(void);
18 
19 /*
20  * set/unset RTC backed top swap bit in the BUC register.
21  * TS_ENABLE - PCH will invert A16, A17 or A18 for cycles
22  * going to the BIOS space based on PCH strap setting.
23  * TS_DISABLE - PCH will not invert A16, A17 or A18.
24  */
26 
27 /*
28  * Return the current top swap state which is reflected by the
29  * RTC backed top swap bit in the BUC register.
30  * TS_ENABLE - Top swap enabled.
31  * TS_DISABLE - Top swap disabled.
32  */
34 
35 /* Set RTC Configuration BILD bit. */
37 #endif /* SOC_INTEL_COMMON_BLOCK_RTC_H */
void enable_rtc_upper_bank(void)
Definition: rtc.c:18
ts_config
Definition: rtc.h:7
@ TS_DISABLE
Definition: rtc.h:8
@ TS_ENABLE
Definition: rtc.h:9
enum ts_config get_rtc_buc_top_swap_status(void)
void configure_rtc_buc_top_swap(enum ts_config ts_state)
int soc_get_rtc_failed(void)
Definition: pmutil.c:174
void rtc_conf_set_bios_interface_lockdown(void)
Definition: rtc.c:37
void rtc_init(void)
Definition: rtc.c:29