]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
eNET: Add RTC support to eNET
authorGraeme Russ <graeme.russ@gmail.com>
Sat, 12 Feb 2011 04:11:43 +0000 (15:11 +1100)
committerGraeme Russ <graeme.russ@gmail.com>
Sat, 12 Feb 2011 04:11:43 +0000 (15:11 +1100)
The SC520 has an inbuilt MC146818 - Enable it for the eNET board

drivers/rtc/mc146818.c
include/configs/eNET.h

index ac4eb6aeca2688a811cc9eb70d855f5efecc14f2..59f676534faabddadabaa8b5c35b9c928a2a392b 100644 (file)
 #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);
index 78cab29e8c8526548665e75103d89f8fdfafc45e..082f681217f92549025f834a4f65de81b7e75e64 100644 (file)
@@ -33,6 +33,7 @@
  * Stuff still to be dealt with -
  */
 #define CONFIG_RTC_MC146818
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0
 
 /*
  * High Level Configuration Options
@@ -91,6 +92,7 @@
 #define CONFIG_CMD_BDI         /* bdinfo                       */
 #define CONFIG_CMD_BOOTD       /* bootd                        */
 #define CONFIG_CMD_CONSOLE     /* coninfo                      */
+#define CONFIG_CMD_DATE
 #define CONFIG_CMD_ECHO                /* echo arguments               */
 #define CONFIG_CMD_FLASH       /* flinfo, erase, protect       */
 #define CONFIG_CMD_FPGA                /* FPGA configuration Support   */