projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
AT91: fix at91sam_wdt.c to reworked header files
[oweals/u-boot.git]
/
drivers
/
rtc
/
mc146818.c
diff --git
a/drivers/rtc/mc146818.c
b/drivers/rtc/mc146818.c
index ac4eb6aeca2688a811cc9eb70d855f5efecc14f2..59f676534faabddadabaa8b5c35b9c928a2a392b 100644
(file)
--- 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);