Home
last modified time | relevance | path

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

12345678910>>...17

/arch/m68k/bvme6000/
Dconfig.c160 volatile RtcPtr_t rtc = (RtcPtr_t)BVME_RTC_BASE; in bvme6000_timer_int() local
164 msr = rtc->msr & 0xc0; in bvme6000_timer_int()
165 rtc->msr = msr | 0x20; /* Ack the interrupt */ in bvme6000_timer_int()
183 volatile RtcPtr_t rtc = (RtcPtr_t)BVME_RTC_BASE; in bvme6000_sched_init() local
184 unsigned char msr = rtc->msr & 0xc0; in bvme6000_sched_init()
186 rtc->msr = 0; /* Ensure timer registers accessible */ in bvme6000_sched_init()
192 rtc->t1cr_omr = 0x04; /* Mode 2, ext clk */ in bvme6000_sched_init()
193 rtc->t1msb = 39999 >> 8; in bvme6000_sched_init()
194 rtc->t1lsb = 39999 & 0xff; in bvme6000_sched_init()
195 rtc->irr_icr1 &= 0xef; /* Route timer 1 to INTR pin */ in bvme6000_sched_init()
[all …]
Drtc.c40 volatile RtcPtr_t rtc = (RtcPtr_t)BVME_RTC_BASE; in rtc_ioctl() local
51 msr = rtc->msr & 0xc0; in rtc_ioctl()
52 rtc->msr = 0x40; in rtc_ioctl()
55 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl()
56 wtime.tm_min = bcd2bin(rtc->bcd_min); in rtc_ioctl()
57 wtime.tm_hour = bcd2bin(rtc->bcd_hr); in rtc_ioctl()
58 wtime.tm_mday = bcd2bin(rtc->bcd_dom); in rtc_ioctl()
59 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; in rtc_ioctl()
60 wtime.tm_year = bcd2bin(rtc->bcd_year); in rtc_ioctl()
63 wtime.tm_wday = bcd2bin(rtc->bcd_dow)-1; in rtc_ioctl()
[all …]
DMakefile5 obj-y := config.o rtc.o
/arch/m68k/mvme16x/
Drtc.c39 volatile MK48T08ptr_t rtc = (MK48T08ptr_t)MVME_RTC_BASE; in rtc_ioctl() local
49 rtc->ctrl = RTC_READ; in rtc_ioctl()
51 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl()
52 wtime.tm_min = bcd2bin(rtc->bcd_min); in rtc_ioctl()
53 wtime.tm_hour = bcd2bin(rtc->bcd_hr); in rtc_ioctl()
54 wtime.tm_mday = bcd2bin(rtc->bcd_dom); in rtc_ioctl()
55 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; in rtc_ioctl()
56 wtime.tm_year = bcd2bin(rtc->bcd_year); in rtc_ioctl()
59 wtime.tm_wday = bcd2bin(rtc->bcd_dow)-1; in rtc_ioctl()
60 rtc->ctrl = 0; in rtc_ioctl()
[all …]
Dconfig.c44 static MK48T08ptr_t volatile rtc = (MK48T08ptr_t)MVME_RTC_BASE; variable
403 rtc->ctrl = RTC_READ; in mvme16x_hwclk()
404 t->tm_year = bcd2int (rtc->bcd_year); in mvme16x_hwclk()
405 t->tm_mon = bcd2int (rtc->bcd_mth); in mvme16x_hwclk()
406 t->tm_mday = bcd2int (rtc->bcd_dom); in mvme16x_hwclk()
407 t->tm_hour = bcd2int (rtc->bcd_hr); in mvme16x_hwclk()
408 t->tm_min = bcd2int (rtc->bcd_min); in mvme16x_hwclk()
409 t->tm_sec = bcd2int (rtc->bcd_sec); in mvme16x_hwclk()
410 rtc->ctrl = 0; in mvme16x_hwclk()
DMakefile5 obj-y := config.o rtc.o
/arch/m68k/apollo/
Dconfig.c219 t->tm_sec=rtc->second; in dn_dummy_hwclk()
220 t->tm_min=rtc->minute; in dn_dummy_hwclk()
221 t->tm_hour=rtc->hours; in dn_dummy_hwclk()
222 t->tm_mday=rtc->day_of_month; in dn_dummy_hwclk()
223 t->tm_wday=rtc->day_of_week; in dn_dummy_hwclk()
224 t->tm_mon=rtc->month; in dn_dummy_hwclk()
225 t->tm_year=rtc->year; in dn_dummy_hwclk()
227 rtc->second=t->tm_sec; in dn_dummy_hwclk()
228 rtc->minute=t->tm_min; in dn_dummy_hwclk()
229 rtc->hours=t->tm_hour; in dn_dummy_hwclk()
[all …]
/arch/powerpc/platforms/powernv/
Dopal-rtc.c70 struct device_node *rtc; in opal_time_init() local
72 rtc = of_find_node_by_path("/ibm,opal/rtc"); in opal_time_init()
73 if (rtc) { in opal_time_init()
74 pdev = of_platform_device_create(rtc, "opal-rtc", NULL); in opal_time_init()
75 of_node_put(rtc); in opal_time_init()
/arch/mips/boot/dts/ingenic/
Djz4740.dtsi31 rtc: rtc { label
41 clocks = <&ext>, <&rtc>;
42 clock-names = "ext", "rtc";
Djz4780.dtsi31 rtc: rtc { label
41 clocks = <&ext>, <&rtc>;
42 clock-names = "ext", "rtc";
/arch/arm/boot/dts/
Dmoxart.dtsi74 rtc: rtc { label
75 compatible = "moxa,moxart-rtc";
76 gpio-rtc-sclk = <&gpio 5 0>;
77 gpio-rtc-data = <&gpio 6 0>;
78 gpio-rtc-reset = <&gpio 7 0>;
Dkirkwood-6192.dtsi56 rtc: rtc@10300 { label
57 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
Dkirkwood-6281.dtsi56 rtc: rtc@10300 { label
57 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
Dpxa168.dtsi137 rtc: rtc@d4010000 { label
138 compatible = "mrvl,mmp-rtc";
141 interrupt-names = "rtc 1Hz", "rtc alarm";
Ds3c2416.dtsi114 rtc: rtc@57000000 { label
115 compatible = "samsung,s3c2416-rtc";
117 clock-names = "rtc";
Dpxa910.dtsi153 rtc: rtc@d4010000 { label
154 compatible = "mrvl,mmp-rtc";
157 interrupt-names = "rtc 1Hz", "rtc alarm";
Dpxa168-aspenite.dts33 rtc: rtc@d4010000 { label
Dkirkwood-6282.dtsi93 rtc: rtc@10300 { label
94 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
Dqcom-pma8084.dtsi13 rtc@6000 {
14 compatible = "qcom,pm8941-rtc";
17 reg-names = "rtc", "alarm";
Dexynos5.dtsi84 rtc: rtc@101E0000 { label
85 compatible = "samsung,s3c6410-rtc";
/arch/arm/mach-prima2/
Dsleep.S27 @ r7: rtc iobrg controller
56 @ write SLEEPFORCE through rtc iobridge
59 @ wait rtc io bridge sync
/arch/alpha/kernel/
Drtc.c303 struct rtc_device *rtc; in alpha_rtc_init() local
316 rtc = devm_rtc_device_register(&pdev->dev, name, ops, THIS_MODULE); in alpha_rtc_init()
317 if (IS_ERR(rtc)) in alpha_rtc_init()
318 return PTR_ERR(rtc); in alpha_rtc_init()
320 platform_set_drvdata(pdev, rtc); in alpha_rtc_init()
/arch/arm64/boot/dts/qcom/
Dpm8916.dtsi13 rtc@6000 {
14 compatible = "qcom,pm8941-rtc";
16 reg-names = "rtc", "alarm";
/arch/sh/boards/mach-sh03/
DMakefile5 obj-y := setup.o rtc.o
/arch/sh/boards/mach-dreamcast/
DMakefile5 obj-y := setup.o irq.o rtc.o

12345678910>>...17