]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/qemu-malta/qemu-malta.c
MIPS: qemu-malta: add reset support
[karo-tx-uboot.git] / board / qemu-malta / qemu-malta.c
index 9ba711dba3d19cc18fa0b20e284549322e6d6a6a..449da9c85919bf50e5ca15f8ebac24d457f632a9 100644 (file)
@@ -8,6 +8,9 @@
 
 #include <common.h>
 
+#include <asm/io.h>
+#include <asm/malta.h>
+
 phys_size_t initdram(int board_type)
 {
        return CONFIG_SYS_MEM_SIZE;
@@ -18,3 +21,11 @@ int checkboard(void)
        puts("Board: MIPS Malta CoreLV (Qemu)\n");
        return 0;
 }
+
+void _machine_restart(void)
+{
+       void __iomem *reset_base;
+
+       reset_base = (void __iomem *)CKSEG1ADDR(MALTA_RESET_BASE);
+       __raw_writel(GORESET, reset_base);
+}