Home
last modified time | relevance | path

Searched refs:rtc_regs (Results 1 – 5 of 5) sorted by relevance

/openbmc/u-boot/drivers/rtc/
H A Dmx27rtc.c20 struct rtc_regs *rtc_regs = (struct rtc_regs *)IMX_RTC_BASE; in rtc_get() local
23 day = readl(&rtc_regs->dayr); in rtc_get()
24 hour = readl(&rtc_regs->hourmin); in rtc_get()
25 sec = readl(&rtc_regs->seconds); in rtc_get()
39 struct rtc_regs *rtc_regs = (struct rtc_regs *)IMX_RTC_BASE; in rtc_set() local
54 writel(day, &rtc_regs->dayr); in rtc_set()
55 writel(hour, &rtc_regs->hourmin); in rtc_set()
56 writel(sec, &rtc_regs->seconds); in rtc_set()
H A Dmxsrtc.c20 struct mxs_rtc_regs *rtc_regs = (struct mxs_rtc_regs *)MXS_RTC_BASE; in mxs_rtc_set_time() local
23 writel(secs, &rtc_regs->hw_rtc_seconds); in mxs_rtc_set_time()
30 ret = mxs_wait_mask_clr(&rtc_regs->hw_rtc_stat_reg, in mxs_rtc_set_time()
41 struct mxs_rtc_regs *rtc_regs = (struct mxs_rtc_regs *)MXS_RTC_BASE; in rtc_get() local
44 secs = readl(&rtc_regs->hw_rtc_seconds); in rtc_get()
61 struct mxs_rtc_regs *rtc_regs = (struct mxs_rtc_regs *)MXS_RTC_BASE; in rtc_reset() local
68 ret = mxs_reset_block(&rtc_regs->hw_rtc_ctrl_reg); in rtc_reset()
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A Dspl_power_init.c84 struct mxs_rtc_regs *rtc_regs = in mxs_power_set_auto_restart() local
89 writel(RTC_CTRL_SFTRST, &rtc_regs->hw_rtc_ctrl_clr); in mxs_power_set_auto_restart()
90 while (readl(&rtc_regs->hw_rtc_ctrl) & RTC_CTRL_SFTRST) in mxs_power_set_auto_restart()
93 writel(RTC_CTRL_CLKGATE, &rtc_regs->hw_rtc_ctrl_clr); in mxs_power_set_auto_restart()
94 while (readl(&rtc_regs->hw_rtc_ctrl) & RTC_CTRL_CLKGATE) in mxs_power_set_auto_restart()
101 while (readl(&rtc_regs->hw_rtc_stat) & RTC_STAT_NEW_REGS_MASK) in mxs_power_set_auto_restart()
104 setbits_le32(&rtc_regs->hw_rtc_persistent0, in mxs_power_set_auto_restart()
106 writel(RTC_CTRL_FORCE_UPDATE, &rtc_regs->hw_rtc_ctrl_set); in mxs_power_set_auto_restart()
107 writel(RTC_CTRL_FORCE_UPDATE, &rtc_regs->hw_rtc_ctrl_clr); in mxs_power_set_auto_restart()
108 while (readl(&rtc_regs->hw_rtc_stat) & RTC_STAT_NEW_REGS_MASK) in mxs_power_set_auto_restart()
[all …]
H A Dmxs.c32 struct mxs_rtc_regs *rtc_regs = in reset_cpu() local
44 writel(1, &rtc_regs->hw_rtc_watchdog); in reset_cpu()
45 writel(RTC_CTRL_WATCHDOGEN, &rtc_regs->hw_rtc_ctrl_set); in reset_cpu()
/openbmc/u-boot/arch/arm/include/asm/arch-mx27/
H A Dregs-rtc.h12 struct rtc_regs { struct