public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] mpc85xx: Add deep sleep support on T1040QDS
@ 2014-04-17  7:33 Tang Yuantian
  2014-04-17  7:33 ` [U-Boot] [PATCH] mpc85xx: Add deep sleep support on T104xRDB Tang Yuantian
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tang Yuantian @ 2014-04-17  7:33 UTC (permalink / raw)
  To: u-boot

From: Tang Yuantian <yuantian.tang@freescale.com>

Add deep sleep support on T1040QDS platform.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
---
 board/freescale/t1040qds/t1040qds.c | 12 ++++++++++++
 include/configs/T1040QDS.h          |  4 ++++
 2 files changed, 16 insertions(+)

diff --git a/board/freescale/t1040qds/t1040qds.c b/board/freescale/t1040qds/t1040qds.c
index 3dec447..f1d7cde 100644
--- a/board/freescale/t1040qds/t1040qds.c
+++ b/board/freescale/t1040qds/t1040qds.c
@@ -18,6 +18,7 @@
 #include <asm/fsl_portals.h>
 #include <asm/fsl_liodn.h>
 #include <fm_eth.h>
+#include <asm/mpc85xx_gpio.h>
 
 #include "../common/qixis.h"
 #include "t1040qds.h"
@@ -245,3 +246,14 @@ int board_need_mem_reset(void)
 {
 	return 1;
 }
+
+#ifdef CONFIG_DEEP_SLEEP
+void board_mem_sleep_setup(void)
+{
+	/* does not provide HW signals for power management */
+	QIXIS_WRITE(pwr_ctl[1], (QIXIS_READ(pwr_ctl[1]) & ~0x2));
+	/* Disable MCKE isolation */
+	gpio_set_value(2, 0);
+	udelay(1);
+}
+#endif
diff --git a/include/configs/T1040QDS.h b/include/configs/T1040QDS.h
index 030ea7e..745a2f2 100644
--- a/include/configs/T1040QDS.h
+++ b/include/configs/T1040QDS.h
@@ -43,6 +43,10 @@
 #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
-- 
1.8.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-23 22:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-17  7:33 [U-Boot] [PATCH 1/2] mpc85xx: Add deep sleep support on T1040QDS Tang Yuantian
2014-04-17  7:33 ` [U-Boot] [PATCH] mpc85xx: Add deep sleep support on T104xRDB Tang Yuantian
2014-04-23 22:40   ` York Sun
2014-04-17  7:33 ` [U-Boot] [PATCH v4] mpc85xx/t104x: Add deep sleep framework support Tang Yuantian
2014-04-23 22:39   ` York Sun
2014-04-23 22:39 ` [U-Boot] [PATCH 1/2] mpc85xx: Add deep sleep support on T1040QDS York Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox