board: toradex: turn off lcd backlight before OS handover
[oweals/u-boot.git] / board / toradex / colibri_t30 / colibri_t30.c
index 8ea96188f621140cac7c7fc23a6914432d32a4b1..b6b00e3860d8df18e7d105a6b627f9503f2c2252 100644 (file)
@@ -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);
+}