Home
last modified time | relevance | path

Searched refs:rtc (Results 1 – 25 of 677) sorted by relevance

12345678910>>...28

/arch/m68k/bvme6000/
Dconfig.c171 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 …]
Drtc.c41 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/
Drtc.c40 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 …]
Dconfig.c44 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/
Dconfig.c210 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/
Drtc.c202 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/
Dopal-rtc.c66 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/
Dplatform-quirks.c11 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/
Dmoxart.dtsi75 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>;
Dkirkwood-6192.dtsi58 rtc: rtc@10300 { label
59 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
Dkirkwood-6281.dtsi58 rtc: rtc@10300 { label
59 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
Dpxa168.dtsi136 rtc: rtc@d4010000 { label
137 compatible = "mrvl,mmp-rtc";
140 interrupt-names = "rtc 1Hz", "rtc alarm";
Ds3c2416.dtsi108 rtc: rtc@57000000 { label
109 compatible = "samsung,s3c2416-rtc";
111 clock-names = "rtc";
Dpxa910.dtsi152 rtc: rtc@d4010000 { label
153 compatible = "mrvl,mmp-rtc";
156 interrupt-names = "rtc 1Hz", "rtc alarm";
Dpxa168-aspenite.dts30 rtc: rtc@d4010000 { label
Dimx28-m28.dtsi34 rtc: rtc@68 { label
Dqcom-pma8084.dtsi14 rtc@6000 {
15 compatible = "qcom,pm8941-rtc";
18 reg-names = "rtc", "alarm";
Dkirkwood-6282.dtsi96 rtc: rtc@10300 { label
97 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
/arch/arc/boot/dts/
Dskeleton_hs.dtsi34 rtc {
35 compatible = "snps,archs-timer-rtc";
39 /* TIMER1 for free running clocksource: Fallback if rtc not found */
/arch/mips/boot/dts/ingenic/
Djz4740.dtsi32 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";
Djz4780.dtsi33 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/
Dplatform_mrfld_rtc.c23 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/
Dsleep.S26 @ r7: rtc iobrg controller
55 @ write SLEEPFORCE through rtc iobridge
58 @ wait rtc io bridge sync
/arch/arm64/boot/dts/qcom/
Dpm8994.dtsi14 rtc@6000 {
15 compatible = "qcom,pm8941-rtc";
17 reg-names = "rtc", "alarm";
Dpm8150.dtsi62 rtc@6000 {
63 compatible = "qcom,pm8941-rtc";
65 reg-names = "rtc", "alarm";

12345678910>>...28