From: 黄涛 Date: Wed, 30 Jan 2013 02:33:41 +0000 (+0800) Subject: rk30: common.c: set reboot reason as watchdog when watchdog enabled X-Git-Tag: firefly_0821_release~7696 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2d9594c2e9775981f0aa3b758594c9be576e8021;p=firefly-linux-kernel-4.4.55.git rk30: common.c: set reboot reason as watchdog when watchdog enabled --- diff --git a/arch/arm/mach-rk30/common.c b/arch/arm/mach-rk30/common.c index 2fc4115f3c7e..ec38ceaca46f 100755 --- a/arch/arm/mach-rk30/common.c +++ b/arch/arm/mach-rk30/common.c @@ -160,6 +160,9 @@ static void __init rk30_boot_mode_init(void) } if (boot_mode || ((boot_flag & 0xff) && ((boot_flag & 0xffffff00) == SYS_KERNRL_REBOOT_FLAG))) printk("Boot mode: %s (%d) flag: %s (0x%08x)\n", boot_mode_name(boot_mode), boot_mode, boot_flag_name(boot_flag), boot_flag); +#ifdef CONFIG_RK29_WATCHDOG + writel_relaxed(BOOT_MODE_WATCHDOG, RK30_PMU_BASE + PMU_SYS_REG1); +#endif } int board_boot_mode(void)