aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Shadura2016-05-24 15:56:17 +0200
committerStefano Babic2016-06-07 18:13:05 +0200
commit0c344e6e7a05a83556bbd291c39f8456b287abca (patch)
tree93f20180eaa5190c55a783da4e94c02fabe48129
parent9f8fa184fc1acb6fe8e15e3bbbfcb916e6bc4cc1 (diff)
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: Andrew Shadura <andrew.shadura@collabora.co.uk>
-rw-r--r--board/ge/bx50v3/bx50v3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c
index ff8f4d7b972..d45ed44c684 100644
--- a/board/ge/bx50v3/bx50v3.c
+++ b/board/ge/bx50v3/bx50v3.c
@@ -601,6 +601,8 @@ int board_late_init(void)
#ifdef CONFIG_CMD_BMODE
add_board_boot_modes(board_boot_modes);
#endif
+
+#ifdef CONFIG_VIDEO_IPUV3
/* We need at least 200ms between power on and backlight on
* as per specifications from CHI MEI */
mdelay(250);
@@ -615,6 +617,7 @@ int board_late_init(void)
gpio_direction_output(LVDS_BACKLIGHT_GP, 1);
pwm_enable(0);
+#endif
return 0;
}