8 #include <soc/pmic_wrap.h>
14 u16 bbpu, con, osc32con, sec;
22 rtc_info(
"rtc_writeif_unlock() failed\n");
32 rtc_info(
"rtc_xosc_write() failed\n");
39 rtc_info(
"con=0x%x, osc32con=0x%x, sec=0x%x\n", con, osc32con, sec);
71 u16 fqmtr_busy, fqmtr_data, fqmtr_rst, fqmtr_tcksel;
115 rtc_info(
"get frequency time out !!\n");
132 rtc_info(
"input=0x%x, output=%d\n",
val, fqmtr_data);
210 rtc_info(
"recovery: %d\n", recover);
261 rtc_info(
"init fail: ret=%d\n", ret);
278 rtc_info(
"rtc_write_trigger=%d\n", ret);
289 rtc_info(
"rtc_writeif_unlock() failed\n");
346 rtc_info(
"rtc_enable_dcxo() failed\n");
static void pmic_set_power_hold(void)
void mdelay(unsigned int msecs)
void __noreturn halt(void)
halt the system reliably
static int stopwatch_expired(struct stopwatch *sw)
static void stopwatch_init_usecs_expire(struct stopwatch *sw, long us)
static void pwrap_write_field(u16 reg, u16 val, u16 mask, u16 shift)
@ RTC_STATUS_HW_INIT_FAIL
@ RTC_STATUS_LPD_INIT_FAIL
@ RTC_STATUS_REG_INIT_FAIL
@ RTC_STATUS_GPIO_INIT_FAIL
@ RTC_STATUS_WRITEIF_UNLOCK_FAIL
@ RTC_STATUS_POWERKEY_INIT_FAIL
#define rtc_info(fmt, arg ...)
void rtc_read(u16 addr, u16 *rdata)
void rtc_write(u16 addr, u16 wdata)