[U-Boot-Users] RFC: do_reset for MCF5329/MCF537x

w.wegner at astro-kom.de w.wegner at astro-kom.de
Fri Oct 26 17:38:52 CEST 2007


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





More information about the U-Boot mailing list