diff options
author | Tang Yuantian <yuantian.tang@freescale.com> | 2014-04-17 15:33:44 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-04-22 17:58:49 -0700 |
commit | 48f6a9a2bfffb77d00444865b40681aa5b41c6c7 (patch) | |
tree | 4d1e4c80c4e95b3817b7cf6a64031326e93a332d /board/freescale | |
parent | aade20046b7ab5bd9b2afe84ccb31f0adf0c5e1e (diff) | |
download | u-boot-imx-48f6a9a2bfffb77d00444865b40681aa5b41c6c7.zip u-boot-imx-48f6a9a2bfffb77d00444865b40681aa5b41c6c7.tar.gz u-boot-imx-48f6a9a2bfffb77d00444865b40681aa5b41c6c7.tar.bz2 |
mpc85xx: Add deep sleep support on T1040QDS
Add deep sleep support on T1040QDS platform.
Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/t1040qds/t1040qds.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 |