summaryrefslogtreecommitdiff
path: root/board/freescale/t1040qds/t1040qds.c
diff options
context:
space:
mode:
authortang yuantian <Yuantian.Tang@freescale.com>2014-12-18 10:20:07 +0800
committerYork Sun <yorksun@freescale.com>2015-01-16 09:31:36 -0800
commit7d0e97a2945c9da47ad4655f2e3de7e36b5cd7ac (patch)
treea763aa6ea5b7182be4d4159938acb6a5a44a2d92 /board/freescale/t1040qds/t1040qds.c
parent2c537642e98969e1810c6fdeff3099584f674a66 (diff)
downloadu-boot-imx-7d0e97a2945c9da47ad4655f2e3de7e36b5cd7ac.zip
u-boot-imx-7d0e97a2945c9da47ad4655f2e3de7e36b5cd7ac.tar.gz
u-boot-imx-7d0e97a2945c9da47ad4655f2e3de7e36b5cd7ac.tar.bz2
mpc85xx/t1040qds: convert deep sleep to generic board interface
A new deep sleep interface is introduced to support generic board structure. Converts it to use new interface. Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale/t1040qds/t1040qds.c')
-rw-r--r--board/freescale/t1040qds/t1040qds.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/board/freescale/t1040qds/t1040qds.c b/board/freescale/t1040qds/t1040qds.c
index 13285be..eaca57f 100644
--- a/board/freescale/t1040qds/t1040qds.c
+++ b/board/freescale/t1040qds/t1040qds.c
@@ -19,8 +19,8 @@
#include <asm/fsl_liodn.h>
#include <fm_eth.h>
#include <hwconfig.h>
-#include <asm/mpc85xx_gpio.h>
+#include "../common/sleep.h"
#include "../common/qixis.h"
#include "t1040qds.h"
#include "t1040qds_qixis.h"
@@ -115,6 +115,16 @@ static void qe_board_setup(void)
}
}
+int board_early_init_f(void)
+{
+#if defined(CONFIG_DEEP_SLEEP)
+ if (is_warm_boot())
+ fsl_dp_disable_console();
+#endif
+
+ return 0;
+}
+
int board_early_init_r(void)
{
#ifdef CONFIG_SYS_FLASH_BASE
@@ -281,14 +291,3 @@ 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