]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-keystone/cmd_mon.c
OMAP3_LOGIC: Setup defconfig to enable SPL and NAND booting
[u-boot] / arch / arm / mach-keystone / cmd_mon.c
index f9f58a37dfcd054a124c88dda265530e2ecf46c8..a539d5d275cfa423b00ad2a14ceed97565f79b0c 100644 (file)
@@ -37,7 +37,7 @@ static int do_mon_install(cmd_tbl_t *cmdtp, int flag, int argc,
        if (argc < 2)
                return CMD_RET_USAGE;
 
-       freq = clk_get_rate(sys_clk0_6_clk);
+       freq = CONFIG_SYS_HZ_CLOCK;
 
        addr = simple_strtoul(argv[1], NULL, 16);
 
@@ -55,8 +55,13 @@ U_BOOT_CMD(mon_install, 2, 0, do_mon_install,
 
 static void core_spin(void)
 {
-       while (1)
-               ; /* forever */;
+       while (1) {
+               asm volatile (
+                       "dsb\n"
+                       "isb\n"
+                       "wfi\n"
+               );
+       }
 }
 
 int mon_power_on(int core_id, void *ep)