aboutsummaryrefslogtreecommitdiff
path: root/board/toradex/colibri_t30
diff options
context:
space:
mode:
authorGerard Salvatella2018-11-19 15:54:10 +0100
committerTom Warren2019-02-20 09:01:45 -0700
commita3c9021771608f5b514c75874fa0d8fbee2873d6 (patch)
treede9dd8d381fdcecc7c8be000b7edc8782febcad1 /board/toradex/colibri_t30
parent146680003a776d9217d6d351ca4186f416a77226 (diff)
board: toradex: turn off lcd backlight before OS handover
U-Boot typically tears down the display controller before handing control over to Linux. On LCD displays disabling pixel clock leads to a fading out effect with vertical/horizontal lines. Make sure to disable back light before booting Linux. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com> Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'board/toradex/colibri_t30')
-rw-r--r--board/toradex/colibri_t30/colibri_t30.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/toradex/colibri_t30/colibri_t30.c b/board/toradex/colibri_t30/colibri_t30.c
index 8ea96188f62..b6b00e3860d 100644
--- a/board/toradex/colibri_t30/colibri_t30.c
+++ b/board/toradex/colibri_t30/colibri_t30.c
@@ -66,3 +66,12 @@ void pin_mux_usb(void)
udelay(5);
gpio_set_value(TEGRA_GPIO(DD, 0), 1);
}
+
+/*
+ * Backlight off before OS handover
+ */
+void board_preboot_os(void)
+{
+ gpio_request(TEGRA_GPIO(V, 2), "BL_ON");
+ gpio_direction_output(TEGRA_GPIO(V, 2), 0);
+}