diff options
author | TsiChungLiew <Tsi-Chung.Liew@freescale.com> | 2007-11-07 17:56:15 -0600 |
---|---|---|
committer | TsiChungLiew <Tsi-Chung.Liew@freescale.com> | 2007-11-07 17:56:15 -0600 |
commit | 248c7c14835f34d5d910b45e5600050e58ca6cab (patch) | |
tree | 0f0eabfe90c88dcc89749bf1aef1c123121d805e /cpu/mcf532x | |
parent | d9240a5f827eb3b476a6ba2938d01f1a9e7688f4 (diff) | |
download | u-boot-248c7c14835f34d5d910b45e5600050e58ca6cab.tar.gz u-boot-248c7c14835f34d5d910b45e5600050e58ca6cab.tar.bz2 u-boot-248c7c14835f34d5d910b45e5600050e58ca6cab.zip |
ColdFire: MCF532x - Update do_reset() using core reset
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
Diffstat (limited to 'cpu/mcf532x')
-rw-r--r-- | cpu/mcf532x/cpu.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cpu/mcf532x/cpu.c b/cpu/mcf532x/cpu.c index 2f62e956cc..89cc8ad930 100644 --- a/cpu/mcf532x/cpu.c +++ b/cpu/mcf532x/cpu.c @@ -35,14 +35,10 @@ DECLARE_GLOBAL_DATA_PTR; int do_reset(cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char *argv[]) { - volatile wdog_t *wdp = (wdog_t *) (MMAP_WDOG); + volatile rcm_t *rcm = (rcm_t *) (MMAP_RCM); - wdp->cr = 0; udelay(1000); - - /* enable watchdog, set timeout to 0 and wait */ - wdp->cr = WTM_WCR_EN; - while (1) ; + rcm->rcr |= RCM_RCR_SOFTRST; /* we don't return! */ return 0; |