/openbmc/qemu/hw/m68k/ |
H A D | next-cube.c | 101 NextRtc rtc; member 130 NextRtc *rtc = &s->rtc; in nextscr2_write() local 156 rtc->command = (rtc->command << 1) | in nextscr2_write() 160 rtc->value = (rtc->value << 1) | in nextscr2_write() 170 rtc->retval = (rtc->retval << 1) | in nextscr2_write() 181 rtc->retval = (rtc->retval << 1) | in nextscr2_write() 190 rtc->retval = (rtc->retval << 1) | in nextscr2_write() 226 rtc->retval = (rtc->retval << 1) | in nextscr2_write() 234 if (rtc->command >= 0x80 && rtc->command <= 0x9F) { in nextscr2_write() 235 rtc->ram[rtc->command - 0x80] = rtc->value; in nextscr2_write() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-rx8010.c | 66 struct rtc_device *rtc; member 76 rtc_lock(rx8010->rtc); in rx8010_irq_1_handler() 80 rtc_unlock(rx8010->rtc); in rx8010_irq_1_handler() 103 rtc_unlock(rx8010->rtc); in rx8010_irq_1_handler() 291 if (rx8010->rtc->aie_timer.enabled) in rx8010_set_alarm() 315 if (rx8010->rtc->aie_timer.enabled) in rx8010_alarm_irq_enable() 320 if (!rx8010->rtc->aie_timer.enabled) in rx8010_alarm_irq_enable() 393 if (IS_ERR(rx8010->rtc)) in rx8010_probe() 394 return PTR_ERR(rx8010->rtc); in rx8010_probe() 414 rx8010->rtc->ops = &rx8010_rtc_ops; in rx8010_probe() [all …]
|
H A D | rtc-mxc.c | 63 struct rtc_device *rtc; member 194 spin_lock(&pdata->rtc->irq_lock); in mxc_rtc_interrupt() 209 rtc_update_irq(pdata->rtc, 1, events); in mxc_rtc_interrupt() 210 spin_unlock(&pdata->rtc->irq_lock); in mxc_rtc_interrupt() 295 struct rtc_device *rtc; in mxc_rtc_probe() local 312 if (IS_ERR(rtc)) in mxc_rtc_probe() 313 return PTR_ERR(rtc); in mxc_rtc_probe() 315 pdata->rtc = rtc; in mxc_rtc_probe() 316 rtc->ops = &mxc_rtc_ops; in mxc_rtc_probe() 329 rtc->set_start_time = true; in mxc_rtc_probe() [all …]
|
H A D | rtc-r9701.c | 110 struct rtc_device *rtc; in r9701_probe() local 121 rtc = devm_rtc_allocate_device(&spi->dev); in r9701_probe() 122 if (IS_ERR(rtc)) in r9701_probe() 123 return PTR_ERR(rtc); in r9701_probe() 125 spi_set_drvdata(spi, rtc); in r9701_probe() 126 rtc->ops = &r9701_rtc_ops; in r9701_probe() 127 rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; in r9701_probe() 128 rtc->range_max = RTC_TIMESTAMP_END_2099; in r9701_probe() 130 return devm_rtc_register_device(rtc); in r9701_probe()
|
H A D | rtc-generic.c | 15 struct rtc_device *rtc; in generic_rtc_probe() local 18 rtc = devm_rtc_device_register(&dev->dev, "rtc-generic", in generic_rtc_probe() 20 if (IS_ERR(rtc)) in generic_rtc_probe() 21 return PTR_ERR(rtc); in generic_rtc_probe() 23 platform_set_drvdata(dev, rtc); in generic_rtc_probe()
|
H A D | rtc-ds1672.c | 112 struct rtc_device *rtc; in ds1672_probe() local 119 rtc = devm_rtc_allocate_device(&client->dev); in ds1672_probe() 120 if (IS_ERR(rtc)) in ds1672_probe() 121 return PTR_ERR(rtc); in ds1672_probe() 123 rtc->ops = &ds1672_rtc_ops; in ds1672_probe() 124 rtc->range_max = U32_MAX; in ds1672_probe() 126 err = devm_rtc_register_device(rtc); in ds1672_probe() 130 i2c_set_clientdata(client, rtc); in ds1672_probe()
|
H A D | rtc-mt7622.c | 102 struct rtc_device *rtc; member 110 writel_relaxed(val, rtc->base + reg); in mtk_w32() 113 static u32 mtk_r32(struct mtk_rtc *rtc, u32 reg) in mtk_r32() argument 115 return readl_relaxed(rtc->base + reg); in mtk_r32() 122 val = mtk_r32(rtc, reg); in mtk_rmw() 125 mtk_w32(rtc, reg, val); in mtk_rmw() 130 mtk_rmw(rtc, reg, 0, val); in mtk_set() 135 mtk_rmw(rtc, reg, val, 0); in mtk_clr() 210 rtc_update_irq(hw->rtc, 1, RTC_IRQF | RTC_AF); in mtk_rtc_alarmirq() 347 if (IS_ERR(hw->rtc)) { in mtk_rtc_probe() [all …]
|
H A D | rtc-efi.c | 194 struct rtc_device *rtc = dev_get_drvdata(dev); in efi_procfs() local 217 if (test_bit(RTC_FEATURE_ALARM, rtc->features)) { in efi_procfs() 259 struct rtc_device *rtc; in efi_rtc_probe() local 267 rtc = devm_rtc_allocate_device(&dev->dev); in efi_rtc_probe() 268 if (IS_ERR(rtc)) in efi_rtc_probe() 269 return PTR_ERR(rtc); in efi_rtc_probe() 271 platform_set_drvdata(dev, rtc); in efi_rtc_probe() 273 rtc->ops = &efi_rtc_ops; in efi_rtc_probe() 274 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->features); in efi_rtc_probe() 278 clear_bit(RTC_FEATURE_ALARM, rtc->features); in efi_rtc_probe() [all …]
|
H A D | rtc-pcf2123.c | 108 struct rtc_device *rtc; member 313 rtc_lock(pcf2123->rtc); in pcf2123_rtc_irq() 326 rtc_unlock(pcf2123->rtc); in pcf2123_rtc_irq() 377 struct rtc_device *rtc; in pcf2123_probe() local 409 if (IS_ERR(rtc)) in pcf2123_probe() 410 return PTR_ERR(rtc); in pcf2123_probe() 412 pcf2123->rtc = rtc; in pcf2123_probe() 437 rtc->ops = &pcf2123_rtc_ops; in pcf2123_probe() 439 rtc->range_max = RTC_TIMESTAMP_END_2099; in pcf2123_probe() 440 rtc->set_start_time = true; in pcf2123_probe() [all …]
|
H A D | rtc-ep93xx.c | 30 struct rtc_device *rtc; member 137 ep93xx_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); in ep93xx_rtc_probe() 138 if (IS_ERR(ep93xx_rtc->rtc)) in ep93xx_rtc_probe() 139 return PTR_ERR(ep93xx_rtc->rtc); in ep93xx_rtc_probe() 141 ep93xx_rtc->rtc->ops = &ep93xx_rtc_ops; in ep93xx_rtc_probe() 142 ep93xx_rtc->rtc->range_max = U32_MAX; in ep93xx_rtc_probe() 144 err = rtc_add_group(ep93xx_rtc->rtc, &ep93xx_rtc_sysfs_files); in ep93xx_rtc_probe() 148 return devm_rtc_register_device(ep93xx_rtc->rtc); in ep93xx_rtc_probe()
|
/openbmc/linux/Documentation/devicetree/bindings/rtc/ |
H A D | rtc-mxc.yaml | 4 $id: http://devicetree.org/schemas/rtc/rtc-mxc.yaml# 10 - $ref: rtc.yaml# 18 - fsl,imx1-rtc 19 - fsl,imx21-rtc 50 rtc@10007000 { 51 compatible = "fsl,imx21-rtc";
|
H A D | sunplus,sp7021-rtc.yaml | 5 $id: http://devicetree.org/schemas/rtc/sunplus,sp7021-rtc.yaml# 15 const: sunplus,sp7021-rtc 22 - const: rtc 47 rtc: serial@9c003a00 { 48 compatible = "sunplus,sp7021-rtc"; 50 reg-names = "rtc";
|
H A D | rtc-mt6397.txt | 16 "mediatek,mt6323-rtc": for MT6323 PMIC 17 "mediatek,mt6358-rtc": for MT6358 PMIC 18 "mediatek,mt6366-rtc", "mediatek,mt6358-rtc": for MT6366 PMIC 19 "mediatek,mt6397-rtc": for MT6397 PMIC 28 rtc { 29 compatible = "mediatek,mt6323-rtc";
|
H A D | rtc-omap.txt | 5 - "ti,da830-rtc" - for RTC IP used similar to that on DA8xx SoC family. 6 - "ti,am3352-rtc" - for RTC IP used similar to that on AM335x SoC family. 11 - "ti,am4372-rtc" - for RTC IP used similar to that on AM437X SoC family. 12 - reg: Address range of rtc register set 13 - interrupts: rtc timer, alarm interrupts in order 16 - system-power-controller: whether the rtc is controlling the system power 18 - clocks: Any internal or external clocks feeding in to rtc 35 rtc@1c23000 { 36 compatible = "ti,da830-rtc";
|
H A D | imxdi-rtc.yaml | 4 $id: http://devicetree.org/schemas/rtc/imxdi-rtc.yaml# 14 const: fsl,imx25-rtc 21 - description: rtc alarm interrupt 38 rtc@53ffc000 { 39 compatible = "fsl,imx25-rtc";
|
H A D | spear-rtc.txt | 4 - compatible : "st,spear600-rtc" 5 - reg : Address range of the rtc registers 6 - interrupt: Should contain the rtc interrupt number 10 rtc@fc000000 { 11 compatible = "st,spear600-rtc";
|
H A D | rtc-mxc_v2.yaml | 4 $id: http://devicetree.org/schemas/rtc/rtc-mxc_v2.yaml# 10 - $ref: rtc.yaml# 18 - fsl,imx53-rtc 41 rtc@53fa4000 { 42 compatible = "fsl,imx53-rtc";
|
H A D | mstar,msc313-rtc.yaml | 4 $id: http://devicetree.org/schemas/rtc/mstar,msc313-rtc.yaml# 10 - $ref: rtc.yaml# 19 - mstar,msc313-rtc 43 rtc@2400 { 44 compatible = "mstar,msc313-rtc";
|
H A D | fsl,scu-rtc.yaml | 4 $id: http://devicetree.org/schemas/rtc/fsl,scu-rtc.yaml# 16 - $ref: rtc.yaml# 20 const: fsl,imx8qxp-sc-rtc 29 rtc { 30 compatible = "fsl,imx8qxp-sc-rtc";
|
H A D | renesas,sh-rtc.yaml | 4 $id: http://devicetree.org/schemas/rtc/renesas,sh-rtc.yaml# 16 - const: renesas,r7s72100-rtc # RZ/A1H 17 - const: renesas,sh-rtc 66 rtc: rtc@fcff1000 { 67 compatible = "renesas,r7s72100-rtc", "renesas,sh-rtc";
|
H A D | sprd,sc27xx-rtc.txt | 4 - compatible: should be "sprd,sc2731-rtc". 5 - reg: address offset of rtc register. 6 - interrupts: rtc alarm interrupt. 20 rtc@280 { 21 compatible = "sprd,sc2731-rtc";
|
H A D | rtc-aspeed.txt | 6 * aspeed,ast2400-rtc for the ast2400 7 * aspeed,ast2500-rtc for the ast2500 8 * aspeed,ast2600-rtc for the ast2600 17 rtc@1e781000 { 18 compatible = "aspeed,ast2400-rtc";
|
/openbmc/u-boot/drivers/rtc/ |
H A D | mc13xxx-rtc.c | 12 int rtc_get(struct rtc_time *rtc) in rtc_get() argument 38 rtc_to_tm(tim, rtc); in rtc_get() 40 rtc->tm_yday = 0; in rtc_get() 41 rtc->tm_isdst = 0; in rtc_get() 46 int rtc_set(struct rtc_time *rtc) in rtc_set() argument 53 time = rtc_mktime(rtc); in rtc_set()
|
/openbmc/u-boot/drivers/bootcount/ |
H A D | rtc.c | 14 struct udevice *rtc; member 23 if (rtc_write16(priv->rtc, priv->offset, val) < 0) { in bootcount_rtc_set() 36 if (rtc_read16(priv->rtc, priv->offset, &val) < 0) { in bootcount_rtc_get() 54 struct udevice *rtc; in bootcount_rtc_probe() local 61 if (uclass_get_device_by_ofnode(UCLASS_RTC, phandle_args.node, &rtc)) { in bootcount_rtc_probe() 66 priv->rtc = rtc; in bootcount_rtc_probe()
|
/openbmc/u-boot/arch/arm/mach-omap2/am33xx/ |
H A D | board.c | 324 static void rtc32k_unlock(struct davinci_rtc *rtc) in rtc32k_unlock() argument 331 writel(RTC_KICK0R_WE, &rtc->kick0r); in rtc32k_unlock() 332 writel(RTC_KICK1R_WE, &rtc->kick1r); in rtc32k_unlock() 356 rtc32k_unlock(rtc); in update_rtc_magic() 359 writel(magic, &rtc->scratch1); in update_rtc_magic() 391 rtc32k_unlock(rtc); in rtc32k_enable() 394 writel((1 << 3) | (1 << 6), &rtc->osc); in rtc32k_enable() 441 scratch1 = readl(&rtc->scratch1); in rtc_only() 453 rtc32k_unlock(rtc); in rtc_only() 456 writel(0, &rtc->scratch1); in rtc_only() [all …]
|