/openbmc/linux/drivers/rtc/ |
H A D | Kconfig | 159 will be called rtc-test. 224 will be called rtc-ac100. 394 called "rtc-nct3018y". 561 will be called rtc-twl. 709 will be called rtc-s5m. 898 rtc-ds3232 937 rtc-rv3029. 1141 will be called rtc-efi. 1421 will be called rtc-s3c. 1602 will be called rtc-mv. [all …]
|
H A D | rtc-meson-vrtc.c | 16 struct rtc_device *rtc; member 81 vrtc->rtc = devm_rtc_allocate_device(&pdev->dev); in meson_vrtc_probe() 82 if (IS_ERR(vrtc->rtc)) in meson_vrtc_probe() 83 return PTR_ERR(vrtc->rtc); in meson_vrtc_probe() 85 vrtc->rtc->ops = &meson_vrtc_ops; in meson_vrtc_probe() 86 return devm_rtc_register_device(vrtc->rtc); in meson_vrtc_probe()
|
H A D | rtc-bd70528.c | 229 struct rtc_device *rtc = data; in alm_hndlr() local 231 rtc_update_irq(rtc, 1, RTC_IRQF | RTC_AF | RTC_PF); in alm_hndlr() 241 struct rtc_device *rtc; in bd70528_probe() local 321 rtc = devm_rtc_allocate_device(&pdev->dev); in bd70528_probe() 322 if (IS_ERR(rtc)) { in bd70528_probe() 324 return PTR_ERR(rtc); in bd70528_probe() 327 rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; in bd70528_probe() 328 rtc->range_max = RTC_TIMESTAMP_END_2099; in bd70528_probe() 329 rtc->ops = rtc_ops; in bd70528_probe() 333 IRQF_ONESHOT, "bd70528-rtc", rtc); in bd70528_probe() [all …]
|
H A D | rtc-rx6110.c | 98 struct rtc_device *rtc; member 263 struct rtc_device *rtc = rx6110->rtc; in rx6110_init() local 283 dev_warn(&rtc->dev, "Voltage low, data loss detected.\n"); in rx6110_init() 287 dev_warn(&rtc->dev, "An alarm may have been missed.\n"); in rx6110_init() 291 dev_warn(&rtc->dev, "Periodic timer was detected\n"); in rx6110_init() 295 dev_warn(&rtc->dev, "Update timer was detected\n"); in rx6110_init() 316 rx6110->rtc = devm_rtc_device_register(dev, in rx6110_probe() 320 if (IS_ERR(rx6110->rtc)) in rx6110_probe() 321 return PTR_ERR(rx6110->rtc); in rx6110_probe() 327 rx6110->rtc->max_user_freq = 1; in rx6110_probe()
|
H A D | rtc-sa1100.c | 49 struct rtc_device *rtc = info->rtc; in sa1100_rtc_interrupt() local 87 rtc_update_irq(rtc, 1, events); in sa1100_rtc_interrupt() 204 info->rtc->ops = &sa1100_rtc_ops; in sa1100_rtc_init() 205 info->rtc->max_user_freq = RTC_FREQ; in sa1100_rtc_init() 206 info->rtc->range_max = U32_MAX; in sa1100_rtc_init() 208 ret = devm_rtc_register_device(info->rtc); in sa1100_rtc_init() 260 info->rtc = devm_rtc_allocate_device(&pdev->dev); in sa1100_rtc_probe() 261 if (IS_ERR(info->rtc)) in sa1100_rtc_probe() 262 return PTR_ERR(info->rtc); in sa1100_rtc_probe()
|
H A D | rtc-nxp-bbnsm.c | 36 struct rtc_device *rtc; member 155 rtc_update_irq(bbnsm->rtc, 1, RTC_AF | RTC_IRQF); in bbnsm_rtc_irq_handler() 173 bbnsm->rtc = devm_rtc_allocate_device(&pdev->dev); in bbnsm_rtc_probe() 174 if (IS_ERR(bbnsm->rtc)) in bbnsm_rtc_probe() 175 return PTR_ERR(bbnsm->rtc); in bbnsm_rtc_probe() 203 bbnsm->rtc->ops = &bbnsm_rtc_ops; in bbnsm_rtc_probe() 204 bbnsm->rtc->range_max = U32_MAX; in bbnsm_rtc_probe() 206 return devm_rtc_register_device(bbnsm->rtc); in bbnsm_rtc_probe()
|
H A D | rtc-vt8500.c | 75 struct rtc_device *rtc; member 96 rtc_update_irq(vt8500_rtc->rtc, 1, events); in vt8500_rtc_irq() 219 vt8500_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); in vt8500_rtc_probe() 220 if (IS_ERR(vt8500_rtc->rtc)) in vt8500_rtc_probe() 221 return PTR_ERR(vt8500_rtc->rtc); in vt8500_rtc_probe() 223 vt8500_rtc->rtc->ops = &vt8500_rtc_ops; in vt8500_rtc_probe() 224 vt8500_rtc->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; in vt8500_rtc_probe() 225 vt8500_rtc->rtc->range_max = RTC_TIMESTAMP_END_2199; in vt8500_rtc_probe() 235 return devm_rtc_register_device(vt8500_rtc->rtc); in vt8500_rtc_probe()
|
H A D | rtc-ds1343.c | 78 struct rtc_device *rtc; member 315 rtc_lock(priv->rtc); in ds1343_thread() 332 rtc_unlock(priv->rtc); in ds1343_thread() 398 priv->rtc = devm_rtc_allocate_device(&spi->dev); in ds1343_probe() 399 if (IS_ERR(priv->rtc)) in ds1343_probe() 400 return PTR_ERR(priv->rtc); in ds1343_probe() 402 priv->rtc->ops = &ds1343_rtc_ops; in ds1343_probe() 403 priv->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; in ds1343_probe() 404 priv->rtc->range_max = RTC_TIMESTAMP_END_2099; in ds1343_probe() 411 res = devm_rtc_register_device(priv->rtc); in ds1343_probe() [all …]
|
H A D | rtc-pcf85363.c | 114 struct rtc_device *rtc; member 306 rtc_update_irq(pcf85363->rtc, 1, RTC_IRQF | RTC_AF); in pcf85363_rtc_handle_irq() 423 pcf85363->rtc = devm_rtc_allocate_device(&client->dev); in pcf85363_probe() 424 if (IS_ERR(pcf85363->rtc)) in pcf85363_probe() 425 return PTR_ERR(pcf85363->rtc); in pcf85363_probe() 432 pcf85363->rtc->ops = &rtc_ops; in pcf85363_probe() 433 pcf85363->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; in pcf85363_probe() 434 pcf85363->rtc->range_max = RTC_TIMESTAMP_END_2099; in pcf85363_probe() 462 set_bit(RTC_FEATURE_ALARM, pcf85363->rtc->features); in pcf85363_probe() 464 clear_bit(RTC_FEATURE_ALARM, pcf85363->rtc->features); in pcf85363_probe() [all …]
|
H A D | rtc-xgene.c | 36 struct rtc_device *rtc; member 131 rtc_update_irq(pdata->rtc, 1, RTC_IRQF | RTC_AF); in xgene_rtc_interrupt() 151 pdata->rtc = devm_rtc_allocate_device(&pdev->dev); in xgene_rtc_probe() 152 if (IS_ERR(pdata->rtc)) in xgene_rtc_probe() 153 return PTR_ERR(pdata->rtc); in xgene_rtc_probe() 183 pdata->rtc->ops = &xgene_rtc_ops; in xgene_rtc_probe() 184 pdata->rtc->range_max = U32_MAX; in xgene_rtc_probe() 186 ret = devm_rtc_register_device(pdata->rtc); in xgene_rtc_probe()
|
H A D | rtc-tps65910.c | 27 struct rtc_device *rtc; member 331 struct device *dev = rtc; in tps65910_rtc_interrupt() 350 rtc_update_irq(tps_rtc->rtc, 1, events); in tps65910_rtc_interrupt() 380 tps_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); in tps65910_rtc_probe() 381 if (IS_ERR(tps_rtc->rtc)) in tps65910_rtc_probe() 382 return PTR_ERR(tps_rtc->rtc); in tps65910_rtc_probe() 425 clear_bit(RTC_FEATURE_ALARM, tps_rtc->rtc->features); in tps65910_rtc_probe() 428 tps_rtc->rtc->ops = &tps65910_rtc_ops; in tps65910_rtc_probe() 429 tps_rtc->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; in tps65910_rtc_probe() 430 tps_rtc->rtc->range_max = RTC_TIMESTAMP_END_2099; in tps65910_rtc_probe() [all …]
|
H A D | rtc-optee.c | 189 static int optee_rtc_read_info(struct device *dev, struct rtc_device *rtc, in optee_rtc_read_info() argument 224 rtc->range_min = mktime64(tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, in optee_rtc_read_info() 227 rtc->range_max = mktime64(tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, in optee_rtc_read_info() 246 struct rtc_device *rtc; in optee_rtc_probe() local 256 rtc = devm_rtc_allocate_device(dev); in optee_rtc_probe() 257 if (IS_ERR(rtc)) in optee_rtc_probe() 258 return PTR_ERR(rtc); in optee_rtc_probe() 288 rtc->ops = &optee_rtc_ops; in optee_rtc_probe() 290 err = optee_rtc_read_info(dev, rtc, &priv->features); in optee_rtc_probe() 296 err = devm_rtc_register_device(rtc); in optee_rtc_probe() [all …]
|
H A D | rtc-mv.c | 40 struct rtc_device *rtc; member 196 rtc_update_irq(pdata->rtc, 1, RTC_IRQF | RTC_AF); in mv_rtc_interrupt() 250 pdata->rtc = devm_rtc_allocate_device(&pdev->dev); in mv_rtc_probe() 251 if (IS_ERR(pdata->rtc)) { in mv_rtc_probe() 252 ret = PTR_ERR(pdata->rtc); in mv_rtc_probe() 269 clear_bit(RTC_FEATURE_ALARM, pdata->rtc->features); in mv_rtc_probe() 271 pdata->rtc->ops = &mv_rtc_ops; in mv_rtc_probe() 272 pdata->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; in mv_rtc_probe() 273 pdata->rtc->range_max = RTC_TIMESTAMP_END_2099; in mv_rtc_probe() 275 ret = devm_rtc_register_device(pdata->rtc); in mv_rtc_probe()
|
H A D | rtc-cmos.c | 74 struct rtc_device *rtc; member 613 cmos->rtc->irq_freq, in cmos_procfs() 1027 if (IS_ERR(cmos_rtc.rtc)) { in cmos_do_probe() 1028 retval = PTR_ERR(cmos_rtc.rtc); in cmos_do_probe() 1056 cmos_rtc.rtc->irq_freq = 1024; in cmos_do_probe() 1095 0, dev_name(&cmos_rtc.rtc->dev), in cmos_do_probe() 1096 cmos_rtc.rtc); in cmos_do_probe() 1105 cmos_rtc.rtc->ops = &cmos_rtc_ops; in cmos_do_probe() 1138 free_irq(rtc_irq, cmos_rtc.rtc); in cmos_do_probe() 1165 free_irq(cmos->irq, cmos->rtc); in cmos_do_remove() [all …]
|
H A D | rtc-at91rm9200.c | 398 rtc_update_irq(rtc, 1, events); in at91_rtc_interrupt() 471 struct rtc_device *rtc; in at91_rtc_probe() local 497 if (IS_ERR(rtc)) in at91_rtc_probe() 498 return PTR_ERR(rtc); in at91_rtc_probe() 499 platform_set_drvdata(pdev, rtc); in at91_rtc_probe() 534 rtc->ops = &sama5d4_rtc_ops; in at91_rtc_probe() 536 rtc->ops = &at91_rtc_ops; in at91_rtc_probe() 538 rtc->range_min = RTC_TIMESTAMP_BEGIN_1900; in at91_rtc_probe() 539 rtc->range_max = RTC_TIMESTAMP_END_2099; in at91_rtc_probe() 540 ret = devm_rtc_register_device(rtc); in at91_rtc_probe() [all …]
|
H A D | rtc-rv8803.c | 69 struct rtc_device *rtc; member 224 rtc_update_irq(rv8803->rtc, 1, events); in rv8803_handle_irq() 438 if (rv8803->rtc->uie_rtctimer.enabled) in rv8803_set_alarm() 440 if (rv8803->rtc->aie_timer.enabled) in rv8803_set_alarm() 461 if (rv8803->rtc->uie_rtctimer.enabled) in rv8803_alarm_irq_enable() 463 if (rv8803->rtc->aie_timer.enabled) in rv8803_alarm_irq_enable() 468 if (!rv8803->rtc->aie_timer.enabled) in rv8803_alarm_irq_enable() 670 if (IS_ERR(rv8803->rtc)) in rv8803_probe() 671 return PTR_ERR(rv8803->rtc); in rv8803_probe() 701 rv8803->rtc->ops = &rv8803_rtc_ops; in rv8803_probe() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/rtc/ |
H A D | atmel,at91sam9260-rtt.yaml | 5 $id: http://devicetree.org/schemas/rtc/atmel,at91sam9260-rtt.yaml# 11 - $ref: rtc.yaml# 38 atmel,rtt-rtc-time-reg: 55 - atmel,rtt-rtc-time-reg 63 rtc@fffffd20 { 68 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
|
H A D | microchip,pic32-rtc.txt | 8 - compatible: should be: "microchip,pic32mzda-rtc" 16 rtc: rtc@1f8c0000 { 17 compatible = "microchip,pic32mzda-rtc";
|
H A D | xgene-rtc.txt | 6 - compatible : Should be "apm,xgene-rtc" 22 rtc: rtc@10510000 { 23 compatible = "apm,xgene-rtc";
|
H A D | pxa-rtc.txt | 6 - compatible : Should be "marvell,pxa-rtc" 10 rtc@40900000 { 11 compatible = "marvell,pxa-rtc";
|
H A D | twl-rtc.txt | 4 - compatible : Should be "ti,twl4030-rtc" 8 rtc { 9 compatible = "ti,twl4030-rtc";
|
H A D | epson,rx6110.txt | 16 rtc: rtc@32 { 33 rtc: rtc@3 {
|
H A D | via,vt8500-rtc.txt | 5 - compatible : "via,vt8500-rtc" 11 rtc@d8100000 { 12 compatible = "via,vt8500-rtc";
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | mt6397.txt | 32 - rtc 34 - compatible: "mediatek,mt6323-rtc" 35 - compatible: "mediatek,mt6331-rtc" 36 - compatible: "mediatek,mt6358-rtc" 37 - compatible: "mediatek,mt6397-rtc" 38 For details, see ../rtc/rtc-mt6397.txt
|
/openbmc/linux/tools/testing/selftests/rtc/ |
H A D | setdate.c | 25 const char *rtc, *date; in main() local 34 rtc = argv[1]; in main() 41 fd = open(rtc, O_RDONLY); in main() 43 perror(rtc); in main()
|