diff options
author | Kevin Huang <kevinh@nvidia.com> | 2011-08-19 03:50:04 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:48:29 -0800 |
commit | 9b6623a5c6442011f0c5ef5a969a5af6ba0c379a (patch) | |
tree | 380c59d0fc85bdad767a26968ada9c9977fb374a | |
parent | d60b11fca824516de361f341a75f5edb51c6fc8f (diff) |
ARM: tegra: enterprise: Fix mode check in board config file.
Original-Change-Id: Ia19646893c7a25a42538a5aafab2a13bd6bbc5dc
Reviewed-on: http://git-master/r/48128
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R438422dae0d5de38ffc0dfc92179f76535fdab9c
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise-panel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-panel.c b/arch/arm/mach-tegra/board-enterprise-panel.c index e76a44572699..0d1a8e97a017 100644 --- a/arch/arm/mach-tegra/board-enterprise-panel.c +++ b/arch/arm/mach-tegra/board-enterprise-panel.c @@ -503,7 +503,7 @@ static int enterprise_dsi_panel_postsuspend(void) static struct tegra_dsi_cmd dsi_init_cmd[]= { DSI_CMD_SHORT(0x05, 0x11, 0x00), DSI_DLY_MS(150), -#if(DC_CTRL_MODE == TEGRA_DC_OUT_ONE_SHOT_MODE) +#if(DC_CTRL_MODE & TEGRA_DC_OUT_ONE_SHOT_MODE) DSI_CMD_SHORT(0x15, 0x35, 0x00), #endif DSI_CMD_SHORT(0x05, 0x29, 0x00), @@ -513,13 +513,13 @@ static struct tegra_dsi_cmd dsi_init_cmd[]= { static struct tegra_dsi_cmd dsi_early_suspend_cmd[] = { DSI_CMD_SHORT(0x05, 0x28, 0x00), DSI_DLY_MS(20), -#if(DC_CTRL_MODE == TEGRA_DC_OUT_ONE_SHOT_MODE) +#if(DC_CTRL_MODE & TEGRA_DC_OUT_ONE_SHOT_MODE) DSI_CMD_SHORT(0x05, 0x34, 0x00), #endif }; static struct tegra_dsi_cmd dsi_late_resume_cmd[] = { -#if(DC_CTRL_MODE == TEGRA_DC_OUT_ONE_SHOT_MODE) +#if(DC_CTRL_MODE & TEGRA_DC_OUT_ONE_SHOT_MODE) DSI_CMD_SHORT(0x15, 0x35, 0x00), #endif DSI_CMD_SHORT(0x05, 0x29, 0x00), @@ -529,7 +529,7 @@ static struct tegra_dsi_cmd dsi_late_resume_cmd[] = { static struct tegra_dsi_cmd dsi_suspend_cmd[] = { DSI_CMD_SHORT(0x05, 0x28, 0x00), DSI_DLY_MS(20), -#if(DC_CTRL_MODE == TEGRA_DC_OUT_ONE_SHOT_MODE) +#if(DC_CTRL_MODE & TEGRA_DC_OUT_ONE_SHOT_MODE) DSI_CMD_SHORT(0x05, 0x34, 0x00), #endif DSI_CMD_SHORT(0x05, 0x10, 0x00), @@ -706,7 +706,7 @@ int __init enterprise_panel_init(void) gpio_direction_output(enterprise_lcd_swp_pl, 0); enterprise_stereo_set_orientation(enterprise_stereo.orientation); -#if(DC_CTRL_MODE != TEGRA_DC_OUT_ONE_SHOT_MODE) +#if !(DC_CTRL_MODE & TEGRA_DC_OUT_ONE_SHOT_MODE) tegra_gpio_enable(enterprise_lcd_te); gpio_request(enterprise_lcd_swp_pl, "lcd_te"); gpio_direction_input(enterprise_lcd_te); |