diff options
author | Gerard Salvatella <gerard.salvatella@toradex.com> | 2018-11-19 15:54:10 +0100 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2019-02-20 09:01:45 -0700 |
commit | a3c9021771608f5b514c75874fa0d8fbee2873d6 (patch) | |
tree | de9dd8d381fdcecc7c8be000b7edc8782febcad1 /board/toradex/apalis-tk1/apalis-tk1.c | |
parent | 146680003a776d9217d6d351ca4186f416a77226 (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/apalis-tk1/apalis-tk1.c')
-rw-r--r-- | board/toradex/apalis-tk1/apalis-tk1.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/toradex/apalis-tk1/apalis-tk1.c b/board/toradex/apalis-tk1/apalis-tk1.c index d6a736d8aa..b87e9e7a3e 100644 --- a/board/toradex/apalis-tk1/apalis-tk1.c +++ b/board/toradex/apalis-tk1/apalis-tk1.c @@ -240,3 +240,12 @@ void tegra_pcie_board_port_reset(struct tegra_pcie_port *port) } } #endif /* CONFIG_PCI_TEGRA */ + +/* + * Backlight off before OS handover + */ +void board_preboot_os(void) +{ + gpio_request(TEGRA_GPIO(BB, 5), "BL_ON"); + gpio_direction_output(TEGRA_GPIO(BB, 5), 0); +} |