]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/lib/time.c
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
[u-boot] / arch / powerpc / lib / time.c
index 3a5ad4d8d21312acd59e6317597bd7a4afd9a1d6..a22a73abfa5a7dbc2f040854b5b45af0567ecfe7 100644 (file)
@@ -1,11 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2000, 2001
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
+#include <asm/io.h>
 
 /* ------------------------------------------------------------------------- */
 
@@ -65,7 +65,7 @@ int timer_init(void)
        unsigned long temp;
 
        /* reset */
-       asm volatile("li %0,0 ; mttbu %0 ; mttbl %0;"
+       asm volatile("li %0,0 ; mttbl %0 ; mttbu %0;"
             : "=&r"(temp) );
 
        return (0);