Skip to content
Snippets Groups Projects
Commit 0c344e6e authored by Andrew Shadura's avatar Andrew Shadura Committed by Stefano Babic
Browse files

board: ge: bx50v3: don't configure the backlight when there's no display


Don't try to configure the backlight when CONFIG_VIDEO_IPUV3 isn't set.

Signed-off-by: default avatarAndrew Shadura <andrew.shadura@collabora.co.uk>
parent 9f8fa184
Branches
Tags
No related merge requests found
...@@ -601,6 +601,8 @@ int board_late_init(void) ...@@ -601,6 +601,8 @@ int board_late_init(void)
#ifdef CONFIG_CMD_BMODE #ifdef CONFIG_CMD_BMODE
add_board_boot_modes(board_boot_modes); add_board_boot_modes(board_boot_modes);
#endif #endif
#ifdef CONFIG_VIDEO_IPUV3
/* We need at least 200ms between power on and backlight on /* We need at least 200ms between power on and backlight on
* as per specifications from CHI MEI */ * as per specifications from CHI MEI */
mdelay(250); mdelay(250);
...@@ -615,6 +617,7 @@ int board_late_init(void) ...@@ -615,6 +617,7 @@ int board_late_init(void)
gpio_direction_output(LVDS_BACKLIGHT_GP, 1); gpio_direction_output(LVDS_BACKLIGHT_GP, 1);
pwm_enable(0); pwm_enable(0);
#endif
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment