X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=cpu%2Fmpc86xx%2Fcpu.c;h=ecea5b0643896211960c4821ab9e11acae94f5c5;hb=859f24350e6e4313626f85161dd03f025a4dac59;hp=7d2b591d9f11d4cebe7ac7e39722f072c46e4d82;hpb=e0320b1ebec13755911a53b0af12cbf3e5e49a65;p=karo-tx-uboot.git diff --git a/cpu/mpc86xx/cpu.c b/cpu/mpc86xx/cpu.c index 7d2b591d9f..ecea5b0643 100644 --- a/cpu/mpc86xx/cpu.c +++ b/cpu/mpc86xx/cpu.c @@ -214,6 +214,20 @@ get_tbclk(void) void watchdog_reset(void) { +#if defined(CONFIG_MPC8610) + /* + * This actually feed the hard enabled watchdog. + */ + volatile immap_t *immap = (immap_t *)CFG_IMMR; + volatile ccsr_wdt_t *wdt = &immap->im_wdt; + volatile ccsr_gur_t *gur = &immap->im_gur; + u32 tmp = gur->pordevsr; + + if (tmp & 0x4000) { + wdt->swsrr = 0x556c; + wdt->swsrr = 0xaa39; + } +#endif } #endif /* CONFIG_WATCHDOG */