From 12631a3faba80f58f24086d6d9b561ab9b808025 Mon Sep 17 00:00:00 2001 From: Robin Gong Date: Fri, 15 Aug 2014 09:45:22 +0800 Subject: ENGR00326277-2 imx6: watchdog: use WDOG_B mode for wdog reset in ldo-bypass mode In ldo-bypass mode, we need trigger WDOG_B pin to reset pmic in ldo-bypass mode. Signed-off-by: Robin Gong --- board/freescale/mx6sabresd/mx6sabresd.c | 3 ++- board/freescale/mx6slevk/mx6slevk.c | 2 +- board/freescale/mx6sx_17x17_arm2/mx6sx_17x17_arm2.c | 2 +- board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c | 2 +- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) (limited to 'board') diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c index 994a9dd..c65b983 100644 --- a/board/freescale/mx6sabresd/mx6sabresd.c +++ b/board/freescale/mx6sabresd/mx6sabresd.c @@ -253,6 +253,7 @@ static void setup_iomux_uart(void) } #ifdef CONFIG_SYS_I2C_MXC + /* set all switches APS in normal and PFM mode in standby */ static int setup_pmic_mode(int chip) { @@ -456,7 +457,7 @@ void ldo_mode_set(int ldo_bypass) * VDDARM:1.175V@800M; VDDSOC:1.175V@800M * VDDARM:1.075V@400M; VDDSOC:1.175V@400M */ - is_400M = set_anatop_bypass(); + is_400M = set_anatop_bypass(2); if (is_400M) #if defined(CONFIG_MX6DL) vddarm = 0x1f; diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c index 21dc196..9ff49b4 100644 --- a/board/freescale/mx6slevk/mx6slevk.c +++ b/board/freescale/mx6slevk/mx6slevk.c @@ -787,7 +787,7 @@ void ldo_mode_set(int ldo_bypass) return; } - is_400M = set_anatop_bypass(); + is_400M = set_anatop_bypass(0); /* * MX6SL: VDDARM:1.175V@800M; VDDSOC:1.175V@800M diff --git a/board/freescale/mx6sx_17x17_arm2/mx6sx_17x17_arm2.c b/board/freescale/mx6sx_17x17_arm2/mx6sx_17x17_arm2.c index 8ddaded..c253a6d 100644 --- a/board/freescale/mx6sx_17x17_arm2/mx6sx_17x17_arm2.c +++ b/board/freescale/mx6sx_17x17_arm2/mx6sx_17x17_arm2.c @@ -737,7 +737,7 @@ void ldo_mode_set(int ldo_bypass) return; } - set_anatop_bypass(); + set_anatop_bypass(1); printf("switch to ldo_bypass mode!\n"); } diff --git a/board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c b/board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c index 70fe481..2d5c8fc 100644 --- a/board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c +++ b/board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c @@ -784,7 +784,7 @@ void ldo_mode_set(int ldo_bypass) return; } - set_anatop_bypass(); + set_anatop_bypass(1); printf("switch to ldo_bypass mode!\n"); } diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c index 8fa4329..a6552de 100644 --- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c +++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c @@ -801,7 +801,7 @@ void ldo_mode_set(int ldo_bypass) return; } - set_anatop_bypass(); + set_anatop_bypass(1); printf("switch to ldo_bypass mode!\n"); } -- cgit v1.1