summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2011-02-12 15:11:43 +1100
committerGraeme Russ <graeme.russ@gmail.com>2011-02-12 15:11:43 +1100
commit218310018a9d24db76cbfd6aa9441d3b7c8b72b7 (patch)
tree1824e0e14525549128724b8a4b264abe9e6cd755 /drivers/rtc
parentd881ea532b117e9783a1ded4c6ddb7bbbe028be2 (diff)
downloadtalos-obmc-uboot-218310018a9d24db76cbfd6aa9441d3b7c8b72b7.tar.gz
talos-obmc-uboot-218310018a9d24db76cbfd6aa9441d3b7c8b72b7.zip
eNET: Add RTC support to eNET
The SC520 has an inbuilt MC146818 - Enable it for the eNET board
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/mc146818.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/rtc/mc146818.c b/drivers/rtc/mc146818.c
index ac4eb6aeca..59f676534f 100644
--- a/drivers/rtc/mc146818.c
+++ b/drivers/rtc/mc146818.c
@@ -31,6 +31,12 @@
#include <command.h>
#include <rtc.h>
+#ifdef __I386__
+#include <asm/io.h>
+#define in8(p) inb(p)
+#define out8(p, v) outb(v, p)
+#endif
+
#if defined(CONFIG_CMD_DATE)
static uchar rtc_read (uchar reg);
OpenPOWER on IntegriCloud