Skip to content
Snippets Groups Projects
Commit 1729b92c authored by Stefan Roese's avatar Stefan Roese
Browse files

[PATCH] 4xx: Fix problem with board specific reset code (now for real)


Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent cc5ee8a9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment