projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f09662e
)
rk30: common.c: set reboot reason as watchdog when watchdog enabled
author
黄涛
<huangtao@rock-chips.com>
Wed, 30 Jan 2013 02:33:41 +0000
(10:33 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Wed, 30 Jan 2013 02:34:16 +0000
(10:34 +0800)
arch/arm/mach-rk30/common.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk30/common.c
b/arch/arm/mach-rk30/common.c
index 2fc4115f3c7ecec3572a9103f516f4cf68341c7e..ec38ceaca46f3c94e6711ab92542f66587f6495f 100755
(executable)
--- 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)