From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Fri, 18 Jul 2014 15:21:56 -0700 Subject: [U-Boot] [PATCH 5/9] kmp204x: CPU watchdog enabled In-Reply-To: <1401779120-20306-6-git-send-email-rainer.boschung@keymile.com> References: <1401779120-20306-1-git-send-email-rainer.boschung@keymile.com> <1401779120-20306-6-git-send-email-rainer.boschung@keymile.com> Message-ID: <53C99E04.2050907@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Rainer, Once this patch is enabled, we have warning: implicit declaration of function 'init_85xx_watchdog' [-Wimplicit-function-declaration] Please fix. York On 06/03/2014 12:05 AM, Rainer Boschung wrote: > The booting of the board is now protected by the CPU watchdog. > A failure during the boot phase will end up in board reset. > > Signed-off-by: Rainer Boschung > --- > include/configs/km/kmp204x-common.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/include/configs/km/kmp204x-common.h b/include/configs/km/kmp204x-common.h > index efd9635..a0f9d29 100644 > --- a/include/configs/km/kmp204x-common.h > +++ b/include/configs/km/kmp204x-common.h > @@ -377,6 +377,14 @@ int get_scl(void); > #define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */ > > /* > + * Hardware Watchdog > + */ > +#define CONFIG_WATCHDOG /* enable CPU watchdog */ > +#define CONFIG_WATCHDOG_PRESC 34 /* wdog prescaler 2^(64-34) (~10min) */ > +#define CONFIG_WATCHDOG_RC WRC_CHIP /* reset chip on watchdog event */ > + > + > +/* > * additionnal command line configuration. > */ > #define CONFIG_CMD_PCI >