diff options
author | Gerard Salvatella <gerard.salvatella@toradex.com> | 2018-08-31 09:47:44 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-09-13 14:06:50 +0200 |
commit | 5717b9a050a123d3e1eafa7c0883810847e74d2c (patch) | |
tree | 679d577c617588db0b29754a0a70619ec2dd895f /board/toradex/apalis_t30 | |
parent | 71c46c0c7531467a8387d3a686aef66397abd94c (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>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'board/toradex/apalis_t30')
-rw-r--r-- | board/toradex/apalis_t30/apalis_t30.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/toradex/apalis_t30/apalis_t30.c b/board/toradex/apalis_t30/apalis_t30.c index 7dcd6648e3..a03bc22ab5 100644 --- a/board/toradex/apalis_t30/apalis_t30.c +++ b/board/toradex/apalis_t30/apalis_t30.c @@ -213,3 +213,12 @@ void tegra_pcie_board_port_reset(struct tegra_pcie_port *port) #endif /* CONFIG_APALIS_T30_PCIE_EVALBOARD_INIT */ } #endif /* CONFIG_PCI_TEGRA */ + +/* + * Backlight off before OS handover + */ +void board_preboot_os(void) +{ + gpio_request(TEGRA_GPIO(V, 2), "BKL1_ON"); + gpio_direction_output(TEGRA_GPIO(V, 2), 0); +} |