![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Macros | |
#define | RTCTAG "[RTC]" |
#define | rtc_info(fmt, arg ...) |
Functions | |
bool | rtc_write_trigger (void) |
bool | rtc_writeif_unlock (void) |
bool | rtc_xosc_write (u16 val) |
bool | rtc_lpen (u16 con) |
bool | rtc_reg_init (void) |
void | rtc_osc_init (void) |
bool | rtc_powerkey_init (void) |
void | rtc_boot_common (void) |
#define rtc_info | ( | fmt, | |
arg ... | |||
) |
Definition at line 12 of file rtc_common.h.
#define RTCTAG "[RTC]" |
Definition at line 11 of file rtc_common.h.
anonymous enum |
Enumerator | |
---|---|
RTC_DEFAULT_YEA | |
RTC_DEFAULT_MTH | |
RTC_DEFAULT_DOM | |
RTC_DEFAULT_DOW |
Definition at line 22 of file rtc_common.h.
anonymous enum |
Enumerator | |
---|---|
RTC_2SEC_REBOOT_ENABLE | |
RTC_2SEC_MODE |
Definition at line 29 of file rtc_common.h.
anonymous enum |
Enumerator | |
---|---|
RTC_OSC32CON_UNLOCK1 | |
RTC_OSC32CON_UNLOCK2 |
Definition at line 34 of file rtc_common.h.
anonymous enum |
Enumerator | |
---|---|
RTC_PROT_UNLOCK1 | |
RTC_PROT_UNLOCK2 |
Definition at line 39 of file rtc_common.h.
anonymous enum |
Enumerator | |
---|---|
RTC_BBPU_KEY |
Definition at line 44 of file rtc_common.h.
anonymous enum |
Enumerator | |
---|---|
RTC_IRQ_STA_AL | |
RTC_IRQ_STA_TC | |
RTC_IRQ_STA_LP |
Definition at line 48 of file rtc_common.h.
anonymous enum |
Enumerator | |
---|---|
RTC_IRQ_EN_AL | |
RTC_IRQ_EN_TC | |
RTC_IRQ_EN_ONESHOT | |
RTC_IRQ_EN_LP | |
RTC_IRQ_EN_ONESHOT_AL |
Definition at line 54 of file rtc_common.h.
anonymous enum |
Enumerator | |
---|---|
RTC_POWERKEY1_KEY | |
RTC_POWERKEY2_KEY |
Definition at line 62 of file rtc_common.h.
anonymous enum |
Enumerator | |
---|---|
RTC_SPAR0_32K_LESS |
Definition at line 67 of file rtc_common.h.
anonymous enum |
Enumerator | |
---|---|
RTC_MIN_YEAR | |
RTC_BASE_YEAR | |
RTC_MIN_YEAR_OFFSET | |
RTC_NUM_YEARS |
Definition at line 71 of file rtc_common.h.
anonymous enum |
Enumerator | |
---|---|
RTC_STATE_REBOOT | |
RTC_STATE_RECOVER | |
RTC_STATE_INIT |
Definition at line 79 of file rtc_common.h.
anonymous enum |
Definition at line 86 of file rtc_common.h.
Definition at line 190 of file rtc.c.
References RTC_BBPU, RTC_BBPU_KEY, RTC_BBPU_RELOAD, rtc_check_state(), RTC_CON, rtc_info, rtc_init(), RTC_IRQ_STA, rtc_osc_init(), rtc_read(), RTC_STATE_INIT, RTC_STATE_REBOOT, RTC_STATE_RECOVER, rtc_write(), and rtc_write_trigger().
Referenced by rtc_boot().
Definition at line 97 of file rtc.c.
References RTC_CON, RTC_CON_LPRST, rtc_write(), and rtc_write_trigger().
Referenced by rtc_lpd_init().
Definition at line 54 of file rtc_osc_init.c.
References PMIC_RG_TOP_CKTST2, rtc_eosc_cali(), rtc_gpio_init(), rtc_info, RTC_OSC32CON, rtc_read(), rtc_write(), rtc_xosc_write(), and RTC_XOSCCALI_MASK.
Referenced by rtc_boot_common(), and rtc_init().
Definition at line 156 of file rtc.c.
References RTC_POWERKEY1, RTC_POWERKEY1_KEY, RTC_POWERKEY2, RTC_POWERKEY2_KEY, rtc_write(), and rtc_write_trigger().
Referenced by rtc_init().
Definition at line 121 of file rtc.c.
References RTC_AL_DOM, RTC_AL_DOW, RTC_AL_HOU, RTC_AL_MASK, RTC_AL_MIN, RTC_AL_MTH, RTC_AL_SEC, RTC_AL_YEA, RTC_CALI, RTC_CII_EN, RTC_DEFAULT_DOM, RTC_DEFAULT_DOW, RTC_DEFAULT_MTH, RTC_DEFAULT_YEA, RTC_DIFF, RTC_IRQ_EN, RTC_IRQ_STA, RTC_MIN_YEAR, rtc_read(), RTC_TC_DOM, RTC_TC_DOW, RTC_TC_HOU, RTC_TC_MIN, RTC_TC_MTH, RTC_TC_SEC, RTC_TC_YEA, rtc_write(), and rtc_write_trigger().
Referenced by rtc_init().
Definition at line 27 of file rtc.c.
References rtc_busy_wait(), rtc_write(), and RTC_WRTGR.
Referenced by rtc_bbpu_power_on(), rtc_boot_common(), rtc_enable_dcxo(), rtc_get_frequency_meter(), rtc_gpio_init(), rtc_hw_init(), rtc_init(), rtc_lpd_init(), rtc_lpen(), rtc_powerkey_init(), rtc_reg_init(), rtc_writeif_unlock(), and rtc_xosc_write().
Definition at line 34 of file rtc.c.
References RTC_PROT, RTC_PROT_UNLOCK1, RTC_PROT_UNLOCK2, rtc_write(), and rtc_write_trigger().
Referenced by poweroff(), rtc_check_state(), rtc_enable_dcxo(), and rtc_init().
Definition at line 74 of file rtc.c.
References RTC_BBPU, RTC_BBPU_KEY, RTC_BBPU_RELOAD, rtc_busy_wait(), RTC_OSC32CON, RTC_OSC32CON_UNLOCK1, RTC_OSC32CON_UNLOCK2, rtc_read(), rtc_write(), rtc_write_trigger(), and val.
Referenced by rtc_enable_dcxo(), rtc_get_frequency_meter(), rtc_init(), and rtc_osc_init().