blackfin: add bf60x to current framework
[firefly-linux-kernel-4.4.55.git] / arch / blackfin / kernel / reboot.c
index b0434f89e8deac8c1da4413b6dbc307c5b375fae..5272e6eefd92ea73caf899d5adcc3227158430b2 100644 (file)
@@ -22,6 +22,7 @@
 __attribute__ ((__l1_text__, __noreturn__))
 static void bfin_reset(void)
 {
+#ifndef CONFIG_BF60x
        if (!ANOMALY_05000353 && !ANOMALY_05000386)
                bfrom_SoftReset((void *)(L1_SCRATCH_START + L1_SCRATCH_LENGTH - 20));
 
@@ -57,7 +58,6 @@ static void bfin_reset(void)
        if (__SILICON_REVISION__ < 1 && bfin_revid() < 1)
                bfin_read_SWRST();
 #endif
-
        /* Wait for the SWRST write to complete.  Cannot rely on SSYNC
         * though as the System state is all reset now.
         */
@@ -72,6 +72,10 @@ static void bfin_reset(void)
        while (1)
                /* Issue core reset */
                asm("raise 1");
+#else
+       while (1)
+               bfin_write_RCU0_CTL(0x1);
+#endif
 }
 
 __attribute__((weak))