diff options
Diffstat (limited to 'board/toradex/colibri_imx7/colibri_imx7.c')
-rw-r--r-- | board/toradex/colibri_imx7/colibri_imx7.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/board/toradex/colibri_imx7/colibri_imx7.c index 392fda92da..61bf8bfd58 100644 --- a/board/toradex/colibri_imx7/colibri_imx7.c +++ b/board/toradex/colibri_imx7/colibri_imx7.c @@ -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 |