summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNitin Garg <nitin.garg@freescale.com>2012-05-21 08:02:46 -0500
committerNitin Garg <nitin.garg@freescale.com>2012-05-21 08:17:15 -0500
commit8a946cb9855f1327aeb8df28c7450530c3ef62e8 (patch)
tree98d2b289e8ada57d7b99ef9eecec157528ce6ec3
parent332279b3b86c98883cbb9cb87b94c53ff87f0eb5 (diff)
ENGR00176657: Power off: Sometimes screen is lighten after system shutdown.
Shutdown the DCDC5V supply on system shutdown to avoid LVDS being ON after shutdown. Also disable the Audio AMP to avoid noise after shutdown. Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
-rwxr-xr-xarch/arm/mach-mx5/board-mx53_smd.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_smd.c b/arch/arm/mach-mx5/board-mx53_smd.c
index 249cea44bfa5..b7487c4fb88c 100755
--- a/arch/arm/mach-mx5/board-mx53_smd.c
+++ b/arch/arm/mach-mx5/board-mx53_smd.c
@@ -1135,6 +1135,15 @@ static void __init fixup_mxc_board(struct machine_desc *desc, struct tag *tags,
static void mx53_smd_power_off(void)
{
+ /* Drive DCDC5V_BB_EN low to disable LVDS0/1 power */
+ gpio_direction_output(MX53_SMD_DCDC5V_BB_EN, 0);
+ /* Drive DCDC1V8_BB_EN low to disable 1V8 voltage */
+ gpio_direction_output(MX53_SMD_DCDC1V8_EN, 0);
+
+ /* Disable the Audio AMP to avoid noise after shutdown */
+ gpio_request(MX53_SMD_AUD_AMP_STBY_B, "amp-standby");
+ gpio_direction_output(MX53_SMD_AUD_AMP_STBY_B, 0);
+
/* power off by sending shutdown command to da9053*/
da9053_power_off();
}
@@ -1164,6 +1173,10 @@ static void __init mx53_smd_board_init(void)
gpio_direction_output(MX53_SMD_DCDC1V8_EN, 1);
gpio_set_value(MX53_SMD_DCDC1V8_EN, 1);
+ /* Enable MX53_SMD_DCDC5V_EN */
+ gpio_request(MX53_SMD_DCDC5V_BB_EN, "dcdc5v_bb_en");
+ gpio_direction_output(MX53_SMD_DCDC5V_BB_EN, 1);
+
/* Sii902x HDMI controller */
gpio_request(MX53_SMD_HDMI_RESET_B, "disp0-pwr-en");
gpio_direction_output(MX53_SMD_HDMI_RESET_B, 0);