]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
kmp204x: prepare to use CPU watchdog
authorBoschung, Rainer <Rainer.Boschung@keymile.com>
Tue, 3 Jun 2014 07:05:20 +0000 (09:05 +0200)
committerYork Sun <yorksun@freescale.com>
Fri, 1 Aug 2014 21:18:59 +0000 (14:18 -0700)
This patch configures the qrio to trigger a core reset on
a CPU reset request.

Signed-off-by: Rainer Boschung <rainer.boschung@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/keymile/kmp204x/kmp204x.c

index 225262e49c8176fd2c297b7e3fb916f23e107446..cd083795b86a27160ce0b6475299e9aa48fb8c73 100644 (file)
@@ -88,6 +88,9 @@ int board_early_init_f(void)
        ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        bool cpuwd_flag = false;
 
+       /* configure mode for uP reset request */
+       qrio_uprstreq(UPREQ_CORE_RST);
+
        /* board only uses the DDR_MCK0, so disable the DDR_MCK1/2/3 */
        setbits_be32(&gur->ddrclkdr, 0x001f000f);