summaryrefslogtreecommitdiffstats
path: root/board/freescale/t102xrdb/spl.c
diff options
context:
space:
mode:
authortang yuantian <Yuantian.Tang@freescale.com>2014-12-17 15:42:54 +0800
committerYork Sun <yorksun@freescale.com>2015-01-16 09:31:06 -0800
commitf49b8c1b5d9db6d349000b25312c672a1f6627b8 (patch)
treeff9c7ec4bf97adea1f0e8ecb670e6d64bd9ce484 /board/freescale/t102xrdb/spl.c
parent026f64f636e93f4d8298ab9a3ac3815ccbdb38c0 (diff)
downloadtalos-obmc-uboot-f49b8c1b5d9db6d349000b25312c672a1f6627b8.tar.gz
talos-obmc-uboot-f49b8c1b5d9db6d349000b25312c672a1f6627b8.zip
mpc85xx/t102xrdb: 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. Besides, added SPI/SD/NAND boot deep sleep support. Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale/t102xrdb/spl.c')
-rw-r--r--board/freescale/t102xrdb/spl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/freescale/t102xrdb/spl.c b/board/freescale/t102xrdb/spl.c
index dd2dec4412..1a3a996439 100644
--- a/board/freescale/t102xrdb/spl.c
+++ b/board/freescale/t102xrdb/spl.c
@@ -11,6 +11,7 @@
#include <mmc.h>
#include <fsl_esdhc.h>
#include <spi_flash.h>
+#include "../common/sleep.h"
DECLARE_GLOBAL_DATA_PTR;
@@ -42,6 +43,12 @@ void board_init_f(ulong bootflag)
console_init_f();
+#ifdef CONFIG_DEEP_SLEEP
+ /* disable the console if boot from deep sleep */
+ if (is_warm_boot())
+ fsl_dp_disable_console();
+#endif
+
/* initialize selected port with appropriate baud rate */
sys_clk = get_board_sys_clk();
plat_ratio = (in_be32(&gur->rcwsr[0]) >> 25) & 0x1f;
OpenPOWER on IntegriCloud