]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
malta: enable RTC support
authorPaul Burton <paul.burton@imgtec.com>
Fri, 8 Nov 2013 11:18:55 +0000 (11:18 +0000)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sat, 9 Nov 2013 16:21:02 +0000 (17:21 +0100)
This is actually required in order for a Linux kernel to boot
successfully on a physical Malta board. Without enabling the RTC, a
Malta Linux kernel will get stuck in its estimate_frequencies function
on boot.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
board/imgtec/malta/malta.c
drivers/rtc/mc146818.c
include/configs/malta.h

index 119546ae1668ddc63cff0d0a8f1fec594c2cfab9..2f922597561085b3941e75bc57c69751e696a03f 100644 (file)
@@ -9,6 +9,7 @@
 #include <netdev.h>
 #include <pci_gt64120.h>
 #include <pci_msc01.h>
+#include <rtc.h>
 #include <serial.h>
 
 #include <asm/addrspace.h>
@@ -147,6 +148,13 @@ int board_early_init_f(void)
        return 0;
 }
 
+int misc_init_r(void)
+{
+       rtc_reset();
+
+       return 0;
+}
+
 struct serial_device *default_serial_console(void)
 {
        switch (malta_sys_con()) {
index 5f9d359590b592658c63eae13a08b77037623535..f7cf1064f9052de9b2e56fcc7de3d53544826efa 100644 (file)
@@ -15,7 +15,7 @@
 #include <command.h>
 #include <rtc.h>
 
-#ifdef __I386__
+#if defined(__I386__) || defined(CONFIG_MALTA)
 #include <asm/io.h>
 #define in8(p) inb(p)
 #define out8(p, v) outb(v, p)
index ab5ba95e4709b34cfa1ecf1400db2831999824c2..a0f6a4a7e9b2d9e4f3f95530752185c76b7aba4a 100644 (file)
 #define CONFIG_PCNET_79C973
 #define PCNET_HAS_PROM
 
+#define CONFIG_MISC_INIT_R
+#define CONFIG_RTC_MC146818
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0
+
 /*
  * CPU Configuration
  */
 #undef CONFIG_CMD_LOADS
 #undef CONFIG_CMD_NFS
 
+#define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_PCI
 #define CONFIG_CMD_PING