/linux-master/drivers/rtc/ |
H A D | rtc-rx8581.c | 8 * Based on: rtc-pcf8563.c (An I2C driver for the Philips PCF8563 RTC) 17 #include <linux/rtc.h> 57 struct rtc_device *rtc; member in struct:rx8581 120 tm->tm_hour = bcd2bin(date[RX8581_REG_HR] & 0x3F); /* rtc hr 0-23 */ 123 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ 289 rx8581->rtc = devm_rtc_allocate_device(&client->dev); 290 if (IS_ERR(rx8581->rtc)) 291 return PTR_ERR(rx8581->rtc); 293 rx8581->rtc->ops = &rx8581_rtc_ops; 294 rx8581->rtc [all...] |
H A D | rtc-goldfish.c | 2 /* drivers/rtc/rtc-goldfish.c 12 #include <linux/rtc.h> 19 struct rtc_device *rtc; member in struct:goldfish_rtc 105 rtc_update_irq(rtcdrv->rtc, 1, RTC_IRQF | RTC_AF); 174 rtcdrv->rtc = devm_rtc_allocate_device(&pdev->dev); 175 if (IS_ERR(rtcdrv->rtc)) 176 return PTR_ERR(rtcdrv->rtc); 178 rtcdrv->rtc->ops = &goldfish_rtc_ops; 179 rtcdrv->rtc [all...] |
H A D | rtc-nxp-bbnsm.c | 14 #include <linux/rtc.h> 36 struct rtc_device *rtc; member in struct:bbnsm_rtc 155 rtc_update_irq(bbnsm->rtc, 1, RTC_AF | RTC_IRQF); 173 bbnsm->rtc = devm_rtc_allocate_device(&pdev->dev); 174 if (IS_ERR(bbnsm->rtc)) 175 return PTR_ERR(bbnsm->rtc); 196 IRQF_SHARED, "rtc alarm", &pdev->dev); 203 bbnsm->rtc->ops = &bbnsm_rtc_ops; 204 bbnsm->rtc->range_max = U32_MAX; 206 return devm_rtc_register_device(bbnsm->rtc); [all...] |
H A D | rtc-xgene.c | 17 #include <linux/rtc.h> 36 struct rtc_device *rtc; member in struct:xgene_rtc_dev 131 rtc_update_irq(pdata->rtc, 1, RTC_IRQF | RTC_AF); 151 pdata->rtc = devm_rtc_allocate_device(&pdev->dev); 152 if (IS_ERR(pdata->rtc)) 153 return PTR_ERR(pdata->rtc); 183 pdata->rtc->ops = &xgene_rtc_ops; 184 pdata->rtc->range_max = U32_MAX; 186 ret = devm_rtc_register_device(pdata->rtc); 258 {.compatible = "apm,xgene-rtc" }, [all...] |
H A D | rtc-sd3078.c | 11 #include <linux/rtc.h> 40 struct rtc_device *rtc; member in struct:sd3078 186 sd3078->rtc = devm_rtc_allocate_device(&client->dev); 187 if (IS_ERR(sd3078->rtc)) 188 return PTR_ERR(sd3078->rtc); 190 sd3078->rtc->ops = &sd3078_rtc_ops; 191 sd3078->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; 192 sd3078->rtc->range_max = RTC_TIMESTAMP_END_2099; 194 ret = devm_rtc_register_device(sd3078->rtc);
|
H A D | rtc-sa1100.c | 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; local 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 [all...] |
H A D | rtc-mv.c | 8 #include <linux/rtc.h> 40 struct rtc_device *rtc; member in struct:rtc_plat_data 176 return -EINVAL; /* fall back into rtc-dev's emulation */ 196 rtc_update_irq(pdata->rtc, 1, RTC_IRQF | RTC_AF); 250 pdata->rtc = devm_rtc_allocate_device(&pdev->dev); 251 if (IS_ERR(pdata->rtc)) { 252 ret = PTR_ERR(pdata->rtc); 269 clear_bit(RTC_FEATURE_ALARM, pdata->rtc->features); 271 pdata->rtc->ops = &mv_rtc_ops; 272 pdata->rtc [all...] |
H A D | rtc-pcf85063.c | 15 #include <linux/rtc.h> 68 struct rtc_device *rtc; member in struct:pcf85063 94 dev_warn(&pcf85063->rtc->dev, "Power loss detected, invalid time\n"); 100 tm->tm_hour = bcd2bin(regs[2] & 0x3F); /* rtc hr 0-23 */ 103 tm->tm_mon = bcd2bin(regs[5] & 0x1F) - 1; /* rtc mn 1-12 */ 234 rtc_update_irq(pcf85063->rtc, 1, RTC_IRQF | RTC_AF); 348 dev_warn(&pcf85063->rtc->dev, "Unknown quartz-load-femtofarads value: %d. Assuming 7000", 483 struct device_node *node = pcf85063->rtc->dev.parent->of_node; 508 clk = devm_clk_register(&pcf85063->rtc->dev, &pcf85063->clkout_hw); 589 pcf85063->rtc [all...] |
H A D | rtc-msm6242.c | 18 #include <linux/rtc.h> 76 struct rtc_device *rtc; member in struct:msm6242_priv 193 struct rtc_device *rtc; local 208 rtc = devm_rtc_device_register(&pdev->dev, "rtc-msm6242", 210 if (IS_ERR(rtc)) 211 return PTR_ERR(rtc); 213 priv->rtc = rtc; 219 .name = "rtc [all...] |
H A D | rtc-ds1742.c | 3 * An rtc driver for the Dallas DS1742 17 #include <linux/rtc.h> 143 struct rtc_device *rtc; local 186 rtc = devm_rtc_allocate_device(&pdev->dev); 187 if (IS_ERR(rtc)) 188 return PTR_ERR(rtc); 190 rtc->ops = &ds1742_rtc_ops; 192 ret = devm_rtc_register_device(rtc); 196 devm_rtc_nvmem_register(rtc, &nvmem_cfg); 210 .name = "rtc [all...] |
H A D | rtc-ds2404.c | 7 #include <linux/rtc.h> 34 struct rtc_device *rtc; member in struct:ds2404 193 chip->rtc = devm_rtc_allocate_device(&pdev->dev); 194 if (IS_ERR(chip->rtc)) 195 return PTR_ERR(chip->rtc); 203 chip->rtc->ops = &ds2404_rtc_ops; 204 chip->rtc->range_max = U32_MAX; 206 retval = devm_rtc_register_device(chip->rtc);
|
H A D | rtc-mt2712.c | 15 #include <linux/rtc.h> 78 struct rtc_device *rtc; member in struct:mt2712_rtc 107 dev_err(&mt2712_rtc->rtc->dev, 131 rtc_update_irq(mt2712_rtc->rtc, 1, RTC_IRQF | RTC_AF); 236 dev_dbg(&mt2712_rtc->rtc->dev, "set al time: %ptR, alm en: %d\n", 289 dev_dbg(&mt2712_rtc->rtc->dev, 325 /* rtc hw init */ 334 mt2712_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); 335 if (IS_ERR(mt2712_rtc->rtc)) 336 return PTR_ERR(mt2712_rtc->rtc); [all...] |
H A D | rtc-ds1343.c | 2 /* rtc-ds1343.c 17 #include <linux/rtc.h> 78 struct rtc_device *rtc; member in struct:ds1343_priv 315 rtc_lock(priv->rtc); 325 rtc_update_irq(priv->rtc, 1, RTC_AF | RTC_IRQF); 332 rtc_unlock(priv->rtc); 381 dev_err(&spi->dev, "spi regmap init failed for rtc ds1343\n"); 398 priv->rtc = devm_rtc_allocate_device(&spi->dev); 399 if (IS_ERR(priv->rtc)) 400 return PTR_ERR(priv->rtc); [all...] |
H A D | rtc-pcf85363.c | 3 * drivers/rtc/rtc-pcf85363.c 12 #include <linux/rtc.h> 114 struct rtc_device *rtc; member in struct:pcf85363 132 dev_warn(&pcf85363->rtc->dev, "Unknown quartz-load-femtofarads value: %d. Assuming 7000", 306 rtc_update_irq(pcf85363->rtc, 1, RTC_IRQF | RTC_AF); 423 pcf85363->rtc = devm_rtc_allocate_device(&client->dev); 424 if (IS_ERR(pcf85363->rtc)) 425 return PTR_ERR(pcf85363->rtc); 432 pcf85363->rtc [all...] |
H A D | rtc-ds1216.c | 10 #include <linux/rtc.h> 30 struct rtc_device *rtc; member in struct:ds1216_priv 153 priv->rtc = devm_rtc_device_register(&pdev->dev, "ds1216", 155 if (IS_ERR(priv->rtc)) 156 return PTR_ERR(priv->rtc); 165 .name = "rtc-ds1216", 174 MODULE_ALIAS("platform:rtc-ds1216");
|
H A D | rtc-sunplus.c | 18 #include <linux/rtc.h> 20 #define RTC_REG_NAME "rtc" 57 struct rtc_device *rtc; member in struct:sunplus_rtc 160 rtc_update_irq(sp_rtc->rtc, 1, RTC_IRQF | RTC_AF); 250 IRQF_TRIGGER_RISING, "rtc irq", plat_dev); 275 sp_rtc->rtc = devm_rtc_allocate_device(&plat_dev->dev); 276 if (IS_ERR(sp_rtc->rtc)) { 277 ret = PTR_ERR(sp_rtc->rtc); 281 sp_rtc->rtc->range_max = U32_MAX; 282 sp_rtc->rtc [all...] |
H A D | rtc-tps65910.c | 3 * rtc-tps65910.c -- TPS65910 Real Time Clock interface 8 * Based on original TI driver rtc-twl.c 18 #include <linux/rtc.h> 27 struct rtc_device *rtc; member in struct:tps65910_rtc 329 static irqreturn_t tps65910_rtc_interrupt(int irq, void *rtc) argument 331 struct device *dev = rtc; 350 rtc_update_irq(tps_rtc->rtc, 1, events); 380 tps_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); 381 if (IS_ERR(tps_rtc->rtc)) 382 return PTR_ERR(tps_rtc->rtc); [all...] |
/linux-master/arch/sh/boards/mach-dreamcast/ |
H A D | setup.c | 26 #include <asm/rtc.h>
|
/linux-master/arch/mips/sgi-ip30/ |
H A D | ip30-power.c | 16 #include <linux/rtc/ds1685.h>
|
/linux-master/arch/m68k/68000/ |
H A D | m68328.c | 22 #include <linux/rtc.h>
|
/linux-master/arch/m68k/virt/ |
H A D | config.c | 76 virt_bi_data.rtc.mmio = be32_to_cpup(data); 78 virt_bi_data.rtc.irq = be32_to_cpup(data); 104 goldfish_timer_init(virt_bi_data.rtc.irq, 105 (void __iomem *)virt_bi_data.rtc.mmio);
|
H A D | platform.c | 28 /* this is the second gf-rtc, the first one is used by the scheduler */ 30 DEFINE_RES_MEM(virt_bi_data.rtc.mmio + 0x1000, 0x1000), 31 DEFINE_RES_IRQ(virt_bi_data.rtc.irq + 1),
|
/linux-master/arch/arm/mach-footbridge/ |
H A D | Makefile | 8 obj-y := common.o isa-irq.o isa.o isa-rtc.o dma-isa.o
|
/linux-master/arch/x86/platform/olpc/ |
H A D | olpc-xo1-rtc.c | 10 #include <linux/rtc.h> 61 node = of_find_compatible_node(NULL, NULL, "olpc,xo1-rtc"); 66 pr_info("olpc-xo1-rtc: Initializing OLPC XO-1 RTC\n"); 75 x86_platform.legacy.rtc = 0;
|
/linux-master/arch/mips/loongson2ef/common/ |
H A D | Makefile | 16 obj-$(CONFIG_LOONGSON_MC146818) += rtc.o
|