summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/mrst-vrtc.h
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2010-11-10 17:29:00 +0000
committerThomas Gleixner <tglx@linutronix.de>2010-11-11 11:34:27 +0100
commit7309282c90d251cde77fe3b520a8276e25315c49 (patch)
treeda33c8a838d0ee779c1b8a70e13002bf29cd4527 /arch/x86/include/asm/mrst-vrtc.h
parentcfb505a7ebd4c84206b4cc7d9f966d864a2ac05a (diff)
x86: mrst: Add vrtc driver which serves as a wall clock device
Moorestown platform doesn't have a m146818 RTC device like traditional x86 PC, but a firmware emulated virtual RTC device(vrtc), which provides some basic RTC functions like get/set time. vrtc serves as the only wall clock device on Moorestown platform. [ tglx: Changed the exports to _GPL ] Signed-off-by: Feng Tang <feng.tang@intel.com> Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> LKML-Reference: <20101110172837.3311.40483.stgit@localhost.localdomain> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/include/asm/mrst-vrtc.h')
-rw-r--r--arch/x86/include/asm/mrst-vrtc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/include/asm/mrst-vrtc.h b/arch/x86/include/asm/mrst-vrtc.h
new file mode 100644
index 00000000000..73668abdbed
--- /dev/null
+++ b/arch/x86/include/asm/mrst-vrtc.h
@@ -0,0 +1,9 @@
+#ifndef _MRST_VRTC_H
+#define _MRST_VRTC_H
+
+extern unsigned char vrtc_cmos_read(unsigned char reg);
+extern void vrtc_cmos_write(unsigned char val, unsigned char reg);
+extern unsigned long vrtc_get_time(void);
+extern int vrtc_set_mmss(unsigned long nowtime);
+
+#endif