mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 23:23:30 +08:00
[PATCH] 4xx: Fix problem with board specific reset code (now for real)
Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
cc5ee8a92a
commit
1729b92cde
@ -428,7 +428,7 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||
{
|
||||
#if defined(CONFIG_BOARD_RESET)
|
||||
board_reset();
|
||||
#else /* defined(CONFIG_BOARD_RESET) */
|
||||
#else
|
||||
#if defined(CFG_4xx_RESET_TYPE)
|
||||
mtspr(dbcr0, CFG_4xx_RESET_TYPE << 28);
|
||||
#else
|
||||
@ -436,6 +436,7 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||
* Initiate system reset in debug control register DBCR
|
||||
*/
|
||||
mtspr(dbcr0, 0x30000000);
|
||||
#endif /* defined(CFG_4xx_RESET_TYPE) */
|
||||
#endif /* defined(CONFIG_BOARD_RESET) */
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user