Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx
[oweals/u-boot.git] / cpu / mcf52x2 / cpu.c
index 2cfe6311d08863606207db7f686b7ab84eb76a59..c4c5d5060491be58f2d3bff5db83270fbc08c578 100644 (file)
@@ -33,6 +33,7 @@
 #include <command.h>
 #include <asm/immap.h>
 #include <netdev.h>
+#include "cpu.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -143,6 +144,11 @@ int checkcpu(void)
 
 int do_reset(cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char *argv[])
 {
+       /* Call the board specific reset actions first. */
+       if(board_reset) {
+               board_reset();
+       }
+
        mbar_writeByte(MCF_RCM_RCR,
                       MCF_RCM_RCR_SOFTRST | MCF_RCM_RCR_FRCRSTOUT);
        return 0;