RTC_READ
cnt1 = RTC_READ(sc, AO_RTC_REG2);
cnt2 = RTC_READ(sc, AO_RTC_REG2);
data |= __SHIFTOUT(RTC_READ(sc, AO_RTC_REG1), AO_RTC_REG1_SDO);
while (!(RTC_READ(sc, AO_RTC_REG1) & AO_RTC_REG1_S_READY)) {
u = RTC_READ(sc, AO_RTC_REG4);
u = RTC_READ(sc, AO_RTC_REG0);
while ((RTC_READ(sc, AO_RTC_REG0) & AO_RTC_REG0_SERIAL_BUSY) != 0)
RTC_WRITE(sc, reg, RTC_READ(sc, reg) | bits);
RTC_WRITE(sc, reg, RTC_READ(sc, reg) & ~bits);
tv->tv_sec = RTC_READ(sc, RTC_SECONDS_REG);
if ((RTC_READ(sc, RTC_BUSY_REG) & RTC_BUSY_STATUS) == 0)
tv->tv_sec = RTC_READ(sc, EXYNOS5_RTC_OFFSET);
if (!RTC_READ(sc, EXYNOS5_RTC_OFFSET))
const uint32_t yymmdd = RTC_READ(sc, conf->yy_mm_dd_reg);
const uint32_t hhmmss = RTC_READ(sc, conf->hh_mm_ss_reg);
if (RTC_READ(sc, SUN6I_LOSC_CTRL_REG) & SUN6I_LOSC_CTRL_EXT_OSC)
__SHIFTOUT(RTC_READ(sc, SUN6I_INTOSC_CLK_PRESCAL_REG),
uint32_t reg = RTC_READ(sc, SUN6I_RTC_LOSC_OUT_GATING_REG);
uint32_t reg = RTC_READ(sc, SUN6I_RTC_LOSC_OUT_GATING_REG);
uint32_t reg = RTC_READ(sc, SUN6I_LOSC_CTRL_REG);
reg = RTC_READ(sc, SUN6I_LOSC_CTRL_REG);
tv->tv_sec = RTC_READ(sc, RTCDR);