Searched refs:ep93xx_rtc (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/rtc/
H A Drtc-ep93xx.c37 struct ep93xx_rtc { struct
45 struct ep93xx_rtc *ep93xx_rtc = dev_get_platdata(dev); ep93xx_rtc_get_swcomp() local
48 comp = readl(ep93xx_rtc->mmio_base + EP93XX_RTC_SWCOMP); ep93xx_rtc_get_swcomp()
63 struct ep93xx_rtc *ep93xx_rtc = dev_get_platdata(dev); ep93xx_rtc_read_time() local
66 time = readl(ep93xx_rtc->mmio_base + EP93XX_RTC_DATA); ep93xx_rtc_read_time()
74 struct ep93xx_rtc *ep93xx_rtc = dev_get_platdata(dev); ep93xx_rtc_set_mmss() local
76 writel(secs + 1, ep93xx_rtc->mmio_base + EP93XX_RTC_LOAD); ep93xx_rtc_set_mmss()
132 struct ep93xx_rtc *ep93xx_rtc; ep93xx_rtc_probe() local
136 ep93xx_rtc = devm_kzalloc(&pdev->dev, sizeof(*ep93xx_rtc), GFP_KERNEL); ep93xx_rtc_probe()
137 if (!ep93xx_rtc) ep93xx_rtc_probe()
141 ep93xx_rtc->mmio_base = devm_ioremap_resource(&pdev->dev, res); ep93xx_rtc_probe()
142 if (IS_ERR(ep93xx_rtc->mmio_base)) ep93xx_rtc_probe()
143 return PTR_ERR(ep93xx_rtc->mmio_base); ep93xx_rtc_probe()
145 pdev->dev.platform_data = ep93xx_rtc; ep93xx_rtc_probe()
146 platform_set_drvdata(pdev, ep93xx_rtc); ep93xx_rtc_probe()
148 ep93xx_rtc->rtc = devm_rtc_device_register(&pdev->dev, ep93xx_rtc_probe()
150 if (IS_ERR(ep93xx_rtc->rtc)) { ep93xx_rtc_probe()
151 err = PTR_ERR(ep93xx_rtc->rtc); ep93xx_rtc_probe()

Completed in 205 milliseconds