summaryrefslogtreecommitdiff
path: root/board/freescale/t104xrdb/t104xrdb.c
diff options
context:
space:
mode:
authorTang Yuantian <Yuantian.Tang@freescale.com>2014-11-21 11:17:16 +0800
committerYork Sun <yorksun@freescale.com>2014-12-15 09:17:12 -0800
commit00233528559c913e4bfafb1505ebf65f78e02976 (patch)
tree40606ab17bcdda7be1dc110624731476523ae775 /board/freescale/t104xrdb/t104xrdb.c
parent9c7c86f431866ee102cc68e6b5152f63250f49dc (diff)
downloadu-boot-imx-00233528559c913e4bfafb1505ebf65f78e02976.zip
u-boot-imx-00233528559c913e4bfafb1505ebf65f78e02976.tar.gz
u-boot-imx-00233528559c913e4bfafb1505ebf65f78e02976.tar.bz2
mpc85xx/t104xrdb: convert deep sleep to generic board interface
A new 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/t104xrdb/t104xrdb.c')
-rw-r--r--board/freescale/t104xrdb/t104xrdb.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/board/freescale/t104xrdb/t104xrdb.c b/board/freescale/t104xrdb/t104xrdb.c
index 4734f9d..9cd5e15 100644
--- a/board/freescale/t104xrdb/t104xrdb.c
+++ b/board/freescale/t104xrdb/t104xrdb.c
@@ -17,8 +17,7 @@
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
#include <fm_eth.h>
-#include <asm/mpc85xx_gpio.h>
-
+#include "../common/sleep.h"
#include "t104xrdb.h"
#include "cpld.h"
@@ -44,6 +43,16 @@ int checkboard(void)
return 0;
}
+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
@@ -113,14 +122,3 @@ int ft_board_setup(void *blob, bd_t *bd)
return 0;
}
-
-#ifdef CONFIG_DEEP_SLEEP
-void board_mem_sleep_setup(void)
-{
- /* does not provide HW signals for power management */
- CPLD_WRITE(misc_ctl_status, (CPLD_READ(misc_ctl_status) & ~0x40));
- /* Disable MCKE isolation */
- gpio_set_value(2, 0);
- udelay(1);
-}
-#endif