Commit e3917b21c05776b41663bdfcc7666aca11a381a0

Authored by Boschung, Rainer
Committed by York Sun
1 parent 6caa185abd

kmp204x: prepare to use CPU watchdog

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>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

board/keymile/kmp204x/kmp204x.c
... ... @@ -88,6 +88,9 @@
88 88 ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
89 89 bool cpuwd_flag = false;
90 90  
  91 + /* configure mode for uP reset request */
  92 + qrio_uprstreq(UPREQ_CORE_RST);
  93 +
91 94 /* board only uses the DDR_MCK0, so disable the DDR_MCK1/2/3 */
92 95 setbits_be32(&gur->ddrclkdr, 0x001f000f);
93 96