]> git.hungrycats.org Git - linux/commitdiff
Allow reboot=q on command line to set a flag that bootcode.bin can use to boot from...
authorpopcornmix <popcornmix@gmail.com>
Tue, 14 May 2013 10:42:25 +0000 (11:42 +0100)
committerpopcornmix <popcornmix@gmail.com>
Tue, 14 May 2013 12:17:21 +0000 (13:17 +0100)
arch/arm/mach-bcm2708/bcm2708.c

index 3f9d32d79a4c42a45c69e64781aff7dfbdf0576d..46ba24080248d2b7546be6824d6e33f83fa3c813 100644 (file)
@@ -667,6 +667,15 @@ static void bcm2708_restart(char mode, const char *cmd)
        uint32_t pm_rstc, pm_wdog;
        uint32_t timeout = 10;
 
+       /* For quick reset notification add reboot=q to cmdline
+        */
+       if(mode == 'q')
+       {
+               uint32_t pm_rsts = readl(__io_address(PM_RSTS));
+               pm_rsts = PM_PASSWORD | pm_rsts | PM_RSTS_HADWRQ_SET;
+               writel(pm_rsts, __io_address(PM_RSTS));
+       }
+
        /* Setup watchdog for reset */
        pm_rstc = readl(IO_ADDRESS(PM_RSTC));