Searched refs:rtcreg (Results 1 – 1 of 1) sorted by relevance
21 struct tx4939_rtc_reg __iomem *rtcreg; member30 static int tx4939_rtc_cmd(struct tx4939_rtc_reg __iomem *rtcreg, int cmd) in tx4939_rtc_cmd() argument34 __raw_writel(cmd, &rtcreg->ctl); in tx4939_rtc_cmd()36 while (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_BUSY) { in tx4939_rtc_cmd()48 struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg; in tx4939_rtc_set_mmss() local59 __raw_writel(0, &rtcreg->adr); in tx4939_rtc_set_mmss()61 __raw_writel(buf[i], &rtcreg->dat); in tx4939_rtc_set_mmss()62 ret = tx4939_rtc_cmd(rtcreg, in tx4939_rtc_set_mmss()64 (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_ALME)); in tx4939_rtc_set_mmss()72 struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg; in tx4939_rtc_read_time() local[all …]