Lines Matching refs:rtc
7 * Based on rtc.c by Paul Gortmaker
23 #include <linux/rtc.h>
39 #include "rtc-sa1100.h"
49 struct rtc_device *rtc = info->rtc;
87 rtc_update_irq(rtc, 1, events);
182 dev_err(&pdev->dev, "failed to find rtc clock source\n");
204 info->rtc->ops = &sa1100_rtc_ops;
205 info->rtc->max_user_freq = RTC_FREQ;
206 info->rtc->range_max = U32_MAX;
208 ret = devm_rtc_register_device(info->rtc);
249 irq_1hz = platform_get_irq_byname(pdev, "rtc 1Hz");
250 irq_alarm = platform_get_irq_byname(pdev, "rtc alarm");
260 info->rtc = devm_rtc_allocate_device(&pdev->dev);
261 if (IS_ERR(info->rtc))
262 return PTR_ERR(info->rtc);
265 "rtc 1Hz", &pdev->dev);
271 "rtc Alrm", &pdev->dev);
282 of_device_is_compatible(pdev->dev.of_node, "mrvl,sa1100-rtc")) {
335 { .compatible = "mrvl,sa1100-rtc", },
336 { .compatible = "mrvl,mmp-rtc", },
346 .name = "sa1100-rtc",
357 MODULE_ALIAS("platform:sa1100-rtc");