diff options
| author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-03-16 17:20:59 +0100 | 
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2018-04-06 16:30:37 -0400 | 
| commit | 5c5da4318b18b7144975c9d93cbde1b981ed4e56 (patch) | |
| tree | 184ae67e60554ab1ae3b2e5885c088f6084de9c8 /arch/powerpc/cpu/mpc8xx/cpu_init.c | |
| parent | ab0d8192583a725f992279fe895653a146509bdc (diff) | |
powerpc: mpc8xx: cleaning up watchdog
In preparation of migration to DM watchdog, clean up a bit.
The 8xx watchdog really is a HW watchdog, so declare it as is
then it goes through Kconfig
And the watchdog reset doesn't mind getting interrupted, so
no need to disable interrupts
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xx/cpu_init.c')
| -rw-r--r-- | arch/powerpc/cpu/mpc8xx/cpu_init.c | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/arch/powerpc/cpu/mpc8xx/cpu_init.c b/arch/powerpc/cpu/mpc8xx/cpu_init.c index 6127c9f7713..99e8c85e7a3 100644 --- a/arch/powerpc/cpu/mpc8xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc8xx/cpu_init.c @@ -26,11 +26,12 @@ void cpu_init_f(immap_t __iomem *immr)  	/* SYPCR - contains watchdog control (11-9) */ -	out_be32(&immr->im_siu_conf.sc_sypcr, CONFIG_SYS_SYPCR); +#ifndef CONFIG_HW_WATCHDOG +	/* deactivate watchdog if not enabled in config */ +	out_be32(&immr->im_siu_conf.sc_sypcr, CONFIG_SYS_SYPCR & ~SYPCR_SWE); +#endif -#if defined(CONFIG_WATCHDOG) -	reset_8xx_watchdog(immr); -#endif /* CONFIG_WATCHDOG */ +	WATCHDOG_RESET();  	/* SIUMCR - contains debug pin configuration (11-6) */  	setbits_be32(&immr->im_siu_conf.sc_siumcr, CONFIG_SYS_SIUMCR); | 
