20 #include <linux/kernel.h>
21 #include <linux/export.h>
29 #include <asm/fixmap.h>
31 static unsigned char __iomem *vrtc_virt_base;
38 if (reg > 0xd || !vrtc_virt_base)
50 if (reg > 0xd || !vrtc_virt_base)
77 spin_unlock_irqrestore(&
rtc_lock, flags);
83 "mon: %d year: %d\n", sec, min, hour, mday, mon, year);
85 return mktime(year, mon, mday, hour, min, sec);
91 int real_sec, real_min;
98 real_sec = nowtime % 60;
99 real_min = nowtime / 60;
100 if (((
abs(real_min - vrtc_min) + 15)/30) & 1)
106 spin_unlock_irqrestore(&
rtc_lock, flags);
113 unsigned long vrtc_paddr;
132 static struct resource vrtc_resources[] = {
144 .resource = vrtc_resources,
149 static int __init mrst_device_create(
void)