coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
rtc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ts_config { TS_DISABLE , TS_ENABLE }
 

Functions

void enable_rtc_upper_bank (void)
 
int soc_get_rtc_failed (void)
 
void rtc_init (void)
 
void configure_rtc_buc_top_swap (enum ts_config ts_state)
 
enum ts_config get_rtc_buc_top_swap_status (void)
 
void rtc_conf_set_bios_interface_lockdown (void)
 

Enumeration Type Documentation

◆ ts_config

enum ts_config
Enumerator
TS_DISABLE 
TS_ENABLE 

Definition at line 7 of file rtc.h.

Function Documentation

◆ configure_rtc_buc_top_swap()

void configure_rtc_buc_top_swap ( enum ts_config  ts_state)

◆ enable_rtc_upper_bank()

void enable_rtc_upper_bank ( void  )

Definition at line 18 of file rtc.c.

References pcr_or32(), PCR_RTC_CONF, PCR_RTC_CONF_UCMOS_EN, and PID_RTC.

Referenced by bootblock_c_entry(), and bootblock_pch_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_rtc_buc_top_swap_status()

enum ts_config get_rtc_buc_top_swap_status ( void  )

◆ rtc_conf_set_bios_interface_lockdown()

void rtc_conf_set_bios_interface_lockdown ( void  )

Definition at line 37 of file rtc.c.

References pcr_rmw32(), PCR_RTC_CONF, PCR_RTC_CONF_BILD, and PID_RTC.

Here is the call graph for this function:

◆ rtc_init()

void rtc_init ( void  )

Definition at line 29 of file rtc.c.

References cmos_check_update_date(), cmos_init(), and soc_get_rtc_failed().

Referenced by lpc_soc_init(), mainboard_romstage_entry(), pmc_init(), pmc_soc_init(), rtc_boot_common(), and soc_pmc_enable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ soc_get_rtc_failed()

int soc_get_rtc_failed ( void  )

Definition at line 174 of file pmutil.c.

References acpi_pm_state_for_rtc(), BIOS_ERR, check_rtc_failed(), chipset_power_state::gen_pmcon1, chipset_power_state::gen_pmcon_b, GEN_PMCON_B, PCH_DEV_PMC, pci_s_read_config32(), printk, RTC_BATTERY_DEAD, and rtc_failed().

Referenced by mainboard_romstage_entry(), and rtc_init().

Here is the call graph for this function:
Here is the caller graph for this function: