]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/arm920t/at91/reset.c
am33xx: add dmm support to emif4 library
[u-boot] / arch / arm / cpu / arm920t / at91 / reset.c
index ce9c156154f1e3252d6770999a5eb2c196efa38c..cd9c9f3977629bcc771b4a7ea93d1081f1593396 100644 (file)
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_st.h>
 
-void board_reset(void) __attribute__((__weak__));
+void  __attribute__((weak)) board_reset(void)
+{
+       /* true empty function for defining weak symbol */
+}
 
 void reset_cpu(ulong ignored)
 {
-       at91_st_t *st = (at91_st_t *) AT91_ST_BASE;
-#if defined(CONFIG_AT91RM9200_USART)
-       /*shutdown the console to avoid strange chars during reset */
-       serial_exit();
-#endif
+       at91_st_t *st = (at91_st_t *) ATMEL_BASE_ST;
 
-       if (board_reset)
-               board_reset();
+       board_reset();
 
        /* Reset the cpu by setting up the watchdog timer */
        writel(AT91_ST_WDMR_RSTEN | AT91_ST_WDMR_EXTEN | AT91_ST_WDMR_WDV(2),