Blackfin: fix accidental reset in some boot modes
authorSonic Zhang <sonic.zhang@analog.com>
Mon, 15 Jun 2009 07:39:19 +0000 (07:39 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 23 Jun 2009 01:15:48 +0000 (21:15 -0400)
We read the SWRST (Software Reset) register to get at the last reset
state, and then we may configure the DOUBLE_FAULT bit to control behavior
when a double fault occurs.  But if the lower bits of the register is
already set (like UART boot mode on a BF54x), we inadvertently make the
system reset by writing to the SYSTEM_RESET field at the same time.  So
make sure the lower 4 bits are always cleared.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>

No differences found