malta: enable RTC support
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>
diff --git a/board/imgtec/malta/malta.c b/board/imgtec/malta/malta.c
index 119546a..2f92259 100644
--- a/board/imgtec/malta/malta.c
+++ b/board/imgtec/malta/malta.c
@@ -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 @@
return 0;
}
+int misc_init_r(void)
+{
+ rtc_reset();
+
+ return 0;
+}
+
struct serial_device *default_serial_console(void)
{
switch (malta_sys_con()) {