From 2d9594c2e9775981f0aa3b758594c9be576e8021 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Wed, 30 Jan 2013 10:33:41 +0800 Subject: [PATCH] rk30: common.c: set reboot reason as watchdog when watchdog enabled --- arch/arm/mach-rk30/common.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.34.1