
26 Oct
2007
26 Oct
'07
5:38 p.m.
Hi list,
I just noticed a problem in the current git tree for Coldfire MCF532x/537x.
The function do_reset relies on the watchdog, which is not available if it is switched off.
Is there any objection against using the soft reset of the reset control module like this? (The bits are currently not defined in the header files, but of course could be added for readability.)
int do_reset(cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char *argv[]) { volatile ccm_t *ccmp = (ccm_t *) (MMAP_CCM);
ccmp->rstctrl = 0xc0; /* MCF_RCM_RCR_SOFTRST | MCF_RCM_RCR_FRCRSTOUT */
/* we don't return! */ return 0; };
Best regards, Wolfgang