]> git.sur5r.net Git - u-boot/commitdiff
mpc85xx: Add deep sleep support on T104xRDB
authorTang Yuantian <yuantian.tang@freescale.com>
Thu, 17 Apr 2014 07:33:45 +0000 (15:33 +0800)
committerYork Sun <yorksun@freescale.com>
Wed, 23 Apr 2014 00:58:49 +0000 (17:58 -0700)
Add deep sleep support on T104xRDB platforms.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/t104xrdb/t104xrdb.c
include/configs/T104xRDB.h

index b48133a18112ad2f097d3315b2e0ad553ccb44bf..fb5b84940eaebdefcd7ac1bcd282f610e431377b 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/fsl_portals.h>
 #include <asm/fsl_liodn.h>
 #include <fm_eth.h>
+#include <asm/mpc85xx_gpio.h>
 
 #include "t104xrdb.h"
 #include "cpld.h"
@@ -104,3 +105,12 @@ void ft_board_setup(void *blob, bd_t *bd)
        fdt_fixup_fman_ethernet(blob);
 #endif
 }
+
+#ifdef CONFIG_DEEP_SLEEP
+void board_mem_sleep_setup(void)
+{
+       /* Disable MCKE isolation */
+       gpio_set_value(2, 0);
+       udelay(1);
+}
+#endif
index eaaf37dbe29d74b3951fb72b66ee0c9f4b4fbca7..0159b97f7e6cec7487d1af09724db2f1fccdfe89 100644 (file)
 #define CONFIG_SYS_BOOK3E_HV           /* Category E.HV supported */
 #define CONFIG_MP                      /* support multiple processors */
 
+/* support deep sleep */
+#define CONFIG_DEEP_SLEEP
+#define CONFIG_SILENT_CONSOLE
+
 #ifndef CONFIG_SYS_TEXT_BASE
 #define CONFIG_SYS_TEXT_BASE   0xeff40000
 #endif