]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc/t104xrdb: Toggle deep sleep management signals after resume
authorTang Yuantian <yuantian.tang@freescale.com>
Wed, 7 May 2014 02:25:06 +0000 (10:25 +0800)
committerYork Sun <yorksun@freescale.com>
Fri, 16 May 2014 21:24:26 +0000 (16:24 -0500)
T104xrdb has several sleep management signals that are used for deep
sleep. They are enabled by OS to enter deep sleep and should be
disabled by u-boot when cores wake up.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/t104xrdb/t104xrdb.c

index fb5b84940eaebdefcd7ac1bcd282f610e431377b..a5e5fffac4c8fc48da640d8a89b59d389acf234b 100644 (file)
@@ -109,6 +109,8 @@ void ft_board_setup(void *blob, bd_t *bd)
 #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);