/arch/m68k/bvme6000/ |
D | config.c | 171 volatile RtcPtr_t rtc = (RtcPtr_t)BVME_RTC_BASE; in bvme6000_timer_int() local 175 msr = rtc->msr & 0xc0; in bvme6000_timer_int() 176 rtc->msr = msr | 0x20; /* Ack the interrupt */ in bvme6000_timer_int() 196 volatile RtcPtr_t rtc = (RtcPtr_t)BVME_RTC_BASE; in bvme6000_sched_init() local 197 unsigned char msr = rtc->msr & 0xc0; in bvme6000_sched_init() 199 rtc->msr = 0; /* Ensure timer registers accessible */ in bvme6000_sched_init() 205 rtc->t1cr_omr = 0x04; /* Mode 2, ext clk */ in bvme6000_sched_init() 206 rtc->t1msb = RTC_TIMER_COUNT >> 8; in bvme6000_sched_init() 207 rtc->t1lsb = RTC_TIMER_COUNT & 0xff; in bvme6000_sched_init() 208 rtc->irr_icr1 &= 0xef; /* Route timer 1 to INTR pin */ in bvme6000_sched_init() [all …]
|
D | rtc.c | 41 volatile RtcPtr_t rtc = (RtcPtr_t)BVME_RTC_BASE; in rtc_ioctl() local 52 msr = rtc->msr & 0xc0; in rtc_ioctl() 53 rtc->msr = 0x40; in rtc_ioctl() 56 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl() 57 wtime.tm_min = bcd2bin(rtc->bcd_min); in rtc_ioctl() 58 wtime.tm_hour = bcd2bin(rtc->bcd_hr); in rtc_ioctl() 59 wtime.tm_mday = bcd2bin(rtc->bcd_dom); in rtc_ioctl() 60 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; in rtc_ioctl() 61 wtime.tm_year = bcd2bin(rtc->bcd_year); in rtc_ioctl() 64 wtime.tm_wday = bcd2bin(rtc->bcd_dow)-1; in rtc_ioctl() [all …]
|
/arch/m68k/mvme16x/ |
D | rtc.c | 40 volatile MK48T08ptr_t rtc = (MK48T08ptr_t)MVME_RTC_BASE; in rtc_ioctl() local 50 rtc->ctrl = RTC_READ; in rtc_ioctl() 52 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl() 53 wtime.tm_min = bcd2bin(rtc->bcd_min); in rtc_ioctl() 54 wtime.tm_hour = bcd2bin(rtc->bcd_hr); in rtc_ioctl() 55 wtime.tm_mday = bcd2bin(rtc->bcd_dom); in rtc_ioctl() 56 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; in rtc_ioctl() 57 wtime.tm_year = bcd2bin(rtc->bcd_year); in rtc_ioctl() 60 wtime.tm_wday = bcd2bin(rtc->bcd_dow)-1; in rtc_ioctl() 61 rtc->ctrl = 0; in rtc_ioctl() [all …]
|
D | config.c | 44 static MK48T08ptr_t volatile rtc = (MK48T08ptr_t)MVME_RTC_BASE; variable 442 rtc->ctrl = RTC_READ; in mvme16x_hwclk() 443 t->tm_year = bcd2int (rtc->bcd_year); in mvme16x_hwclk() 444 t->tm_mon = bcd2int(rtc->bcd_mth) - 1; in mvme16x_hwclk() 445 t->tm_mday = bcd2int (rtc->bcd_dom); in mvme16x_hwclk() 446 t->tm_hour = bcd2int (rtc->bcd_hr); in mvme16x_hwclk() 447 t->tm_min = bcd2int (rtc->bcd_min); in mvme16x_hwclk() 448 t->tm_sec = bcd2int (rtc->bcd_sec); in mvme16x_hwclk() 449 rtc->ctrl = 0; in mvme16x_hwclk()
|
/arch/m68k/apollo/ |
D | config.c | 210 t->tm_sec=rtc->second; in dn_dummy_hwclk() 211 t->tm_min=rtc->minute; in dn_dummy_hwclk() 212 t->tm_hour=rtc->hours; in dn_dummy_hwclk() 213 t->tm_mday=rtc->day_of_month; in dn_dummy_hwclk() 214 t->tm_wday=rtc->day_of_week; in dn_dummy_hwclk() 215 t->tm_mon = rtc->month - 1; in dn_dummy_hwclk() 216 t->tm_year=rtc->year; in dn_dummy_hwclk() 220 rtc->second=t->tm_sec; in dn_dummy_hwclk() 221 rtc->minute=t->tm_min; in dn_dummy_hwclk() 222 rtc->hours=t->tm_hour; in dn_dummy_hwclk() [all …]
|
/arch/alpha/kernel/ |
D | rtc.c | 202 struct rtc_device *rtc; in alpha_rtc_init() local 207 rtc = devm_rtc_allocate_device(&pdev->dev); in alpha_rtc_init() 208 if (IS_ERR(rtc)) in alpha_rtc_init() 209 return PTR_ERR(rtc); in alpha_rtc_init() 211 platform_set_drvdata(pdev, rtc); in alpha_rtc_init() 212 rtc->ops = &alpha_rtc_ops; in alpha_rtc_init() 216 rtc->ops = &remote_rtc_ops; in alpha_rtc_init() 219 return rtc_register_device(rtc); in alpha_rtc_init()
|
/arch/powerpc/platforms/powernv/ |
D | opal-rtc.c | 66 struct device_node *rtc; in opal_time_init() local 68 rtc = of_find_node_by_path("/ibm,opal/rtc"); in opal_time_init() 69 if (rtc) { in opal_time_init() 70 pdev = of_platform_device_create(rtc, "opal-rtc", NULL); in opal_time_init() 71 of_node_put(rtc); in opal_time_init()
|
/arch/x86/kernel/ |
D | platform-quirks.c | 11 x86_platform.legacy.rtc = 1; in x86_early_init_platform_quirks() 22 x86_platform.legacy.rtc = 0; in x86_early_init_platform_quirks() 27 x86_platform.legacy.rtc = 0; in x86_early_init_platform_quirks()
|
/arch/arm/boot/dts/ |
D | moxart.dtsi | 75 rtc: rtc { label 76 compatible = "moxa,moxart-rtc"; 77 gpio-rtc-sclk = <&gpio 5 0>; 78 gpio-rtc-data = <&gpio 6 0>; 79 gpio-rtc-reset = <&gpio 7 0>;
|
D | kirkwood-6192.dtsi | 58 rtc: rtc@10300 { label 59 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
|
D | kirkwood-6281.dtsi | 58 rtc: rtc@10300 { label 59 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
|
D | pxa168.dtsi | 136 rtc: rtc@d4010000 { label 137 compatible = "mrvl,mmp-rtc"; 140 interrupt-names = "rtc 1Hz", "rtc alarm";
|
D | s3c2416.dtsi | 108 rtc: rtc@57000000 { label 109 compatible = "samsung,s3c2416-rtc"; 111 clock-names = "rtc";
|
D | pxa910.dtsi | 152 rtc: rtc@d4010000 { label 153 compatible = "mrvl,mmp-rtc"; 156 interrupt-names = "rtc 1Hz", "rtc alarm";
|
D | pxa168-aspenite.dts | 30 rtc: rtc@d4010000 { label
|
D | imx28-m28.dtsi | 34 rtc: rtc@68 { label
|
D | qcom-pma8084.dtsi | 14 rtc@6000 { 15 compatible = "qcom,pm8941-rtc"; 18 reg-names = "rtc", "alarm";
|
D | kirkwood-6282.dtsi | 96 rtc: rtc@10300 { label 97 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
|
/arch/arc/boot/dts/ |
D | skeleton_hs.dtsi | 34 rtc { 35 compatible = "snps,archs-timer-rtc"; 39 /* TIMER1 for free running clocksource: Fallback if rtc not found */
|
/arch/mips/boot/dts/ingenic/ |
D | jz4740.dtsi | 32 rtc: rtc { label 42 clocks = <&ext>, <&rtc>; 43 clock-names = "ext", "rtc"; 53 clock-names = "rtc"; 69 clock-names = "rtc", "ext", "pclk", "tcu"; 78 rtc_dev: rtc@10003000 { 79 compatible = "ingenic,jz4740-rtc"; 86 clock-names = "rtc";
|
D | jz4780.dtsi | 33 rtc: rtc { label 43 clocks = <&ext>, <&rtc>; 44 clock-names = "ext", "rtc"; 63 clock-names = "rtc", "ext", "pclk"; 72 rtc_dev: rtc@10003000 { 73 compatible = "ingenic,jz4780-rtc"; 80 clock-names = "rtc"; 270 clock-names = "rtc";
|
/arch/x86/platform/intel-mid/device_libs/ |
D | platform_mrfld_rtc.c | 23 if (!x86_platform.legacy.rtc) in mrfld_legacy_rtc_alloc_irq() 30 x86_platform.legacy.rtc = 0; in mrfld_legacy_rtc_alloc_irq()
|
/arch/arm/mach-prima2/ |
D | sleep.S | 26 @ r7: rtc iobrg controller 55 @ write SLEEPFORCE through rtc iobridge 58 @ wait rtc io bridge sync
|
/arch/arm64/boot/dts/qcom/ |
D | pm8994.dtsi | 14 rtc@6000 { 15 compatible = "qcom,pm8941-rtc"; 17 reg-names = "rtc", "alarm";
|
D | pm8150.dtsi | 62 rtc@6000 { 63 compatible = "qcom,pm8941-rtc"; 65 reg-names = "rtc", "alarm";
|