Commit 642c1f519a693989f07d1c43f50bd47bafb53422
Committed by
Stefano Babic
1 parent
faab193ea2
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
board: imx53: Always disable display before starting kernel
This patch prevents from the situation where we may end up with garbage displayed on the LCD panel. Such situation occurs when one performs "reboot -f" in Linux and then stop in U-boot (or observe the garbage on the screen during boot up). To prevent from such situation - the PWM pin is configured as GPIO and set to LOW. Signed-off-by: Lukasz Majewski <lukma@denx.de>
Showing 2 changed files with 10 additions and 0 deletions Side-by-side Diff
arch/arm/dts/imx53-kp.dts
board/k+p/kp_imx53/kp_imx53.c
... | ... | @@ -22,6 +22,7 @@ |
22 | 22 | #define VBUS_PWR_EN IMX_GPIO_NR(7, 8) |
23 | 23 | #define PHY_nRST IMX_GPIO_NR(7, 6) |
24 | 24 | #define BOOSTER_OFF IMX_GPIO_NR(2, 23) |
25 | +#define LCD_BACKLIGHT IMX_GPIO_NR(1, 1) | |
25 | 26 | |
26 | 27 | DECLARE_GLOBAL_DATA_PTR; |
27 | 28 | |
28 | 29 | |
... | ... | @@ -189,10 +190,17 @@ |
189 | 190 | udelay(50); |
190 | 191 | } |
191 | 192 | |
193 | +void board_disable_display(void) | |
194 | +{ | |
195 | + gpio_request(LCD_BACKLIGHT, "LCD_BACKLIGHT"); | |
196 | + gpio_direction_output(LCD_BACKLIGHT, 0); | |
197 | +} | |
198 | + | |
192 | 199 | int board_late_init(void) |
193 | 200 | { |
194 | 201 | int ret = 0; |
195 | 202 | |
203 | + board_disable_display(); | |
196 | 204 | setup_ups(); |
197 | 205 | |
198 | 206 | if (!power_init()) |