diff options
-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); |