arm: tegra: E1506 Tristate and pull down LCD pins
Prem Sasidharan [Tue, 26 Jun 2012 23:27:42 +0000 (16:27 -0700)]
Tristating and pulling down LCD_PCLK,LCD_WR_N,LCD_HSYNC,LCD_VSYNC
LCD_SCK,LCD_SDOUT and LCD_SCIN for E1506 DSI panel.

Bug 999702
Signed-off-by: Prem Sasidharan <psasidharan@nvidia.com>

Reviewed-on: http://git-master/r/111390
(cherry picked from commit 822a1c8ce2a50ff7b53cdd811c3ae1e47568d69d)

Change-Id: Icba97ddcbc4e7bd0b8c4744703e85bf8bc94ba69
Reviewed-on: http://git-master/r/117308
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

arch/arm/mach-tegra/board-cardhu-pinmux.c

index 9ecb2f2..09d7c89 100644 (file)
@@ -542,6 +542,16 @@ static __initdata struct tegra_pingroup_config unused_pins_lowpower[] = {
        DEFAULT_PINMUX(GMI_DQS,         NAND,           NORMAL,     TRISTATE,     OUTPUT),
 };
 
+static __initdata struct tegra_pingroup_config unused_pins_lowpower_e1506[] = {
+       DEFAULT_PINMUX(LCD_PCLK,        DISPLAYA,        PULL_DOWN,    TRISTATE,  OUTPUT),
+       DEFAULT_PINMUX(LCD_WR_N,        DISPLAYA,        PULL_DOWN,    TRISTATE,  OUTPUT),
+       DEFAULT_PINMUX(LCD_HSYNC,       DISPLAYA,        PULL_DOWN,    TRISTATE,  OUTPUT),
+       DEFAULT_PINMUX(LCD_VSYNC,       DISPLAYA,        PULL_DOWN,    TRISTATE,  OUTPUT),
+       DEFAULT_PINMUX(LCD_SCK,         DISPLAYA,        PULL_DOWN,    TRISTATE,  OUTPUT),
+       DEFAULT_PINMUX(LCD_SDOUT,       DISPLAYA,        PULL_DOWN,    TRISTATE,  OUTPUT),
+       DEFAULT_PINMUX(LCD_SDIN,        DISPLAYA,        PULL_DOWN,    TRISTATE,  OUTPUT),
+};
+
 static __initdata struct tegra_pingroup_config gmi_pins_269[] = {
        /* Continuation of table unused_pins_lowpower only for PM269 */
        DEFAULT_PINMUX(GMI_CS0_N,       NAND,           PULL_UP,    NORMAL,       OUTPUT),
@@ -692,6 +702,8 @@ int __init cardhu_pinmux_init(void)
                if (display_board_info.board_id == BOARD_DISPLAY_E1506) {
                        tegra_pinmux_config_table(cardhu_pinmux_pm269_e1506,
                                        ARRAY_SIZE(cardhu_pinmux_pm269_e1506));
+                       tegra_pinmux_config_table(unused_pins_lowpower_e1506,
+                                       ARRAY_SIZE(unused_pins_lowpower_e1506));
                }
 
                tegra_pinmux_config_table(unused_pins_lowpower,