board: toradex: turn off lcd backlight before OS handover
[oweals/u-boot.git] / board / toradex / colibri_imx7 / colibri_imx7.c
index 392fda92daee987a957a36d55b48d5568f682e3e..61bf8bfd58f3b4235fdc42b381662d1d9f472114 100644 (file)
@@ -150,6 +150,15 @@ static int setup_lcd(void)
 }
 #endif
 
+/*
+ * Backlight off before OS handover
+ */
+void board_preboot_os(void)
+{
+       gpio_direction_output(GPIO_PWM_A, 1);
+       gpio_direction_output(GPIO_BL_ON, 0);
+}
+
 #ifdef CONFIG_FEC_MXC
 static iomux_v3_cfg_t const fec1_pads[] = {
 #ifndef CONFIG_COLIBRI_IMX7_EXT_PHYCLK