From: Josep Orga Date: Thu, 7 Oct 2021 17:34:39 +0000 (+0200) Subject: imx8mn-somdevices: spl: Turn on display at boot. X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~9 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=fed7ce354617506cbb23a57b18d83b4532f0a980;p=u-boot.git imx8mn-somdevices: spl: Turn on display at boot. Signed-off-by: Josep Orga --- diff --git a/board/somdevices/imx8mn_somdevices/spl.c b/board/somdevices/imx8mn_somdevices/spl.c index 3626f69d0d..e6ed504c40 100644 --- a/board/somdevices/imx8mn_somdevices/spl.c +++ b/board/somdevices/imx8mn_somdevices/spl.c @@ -68,6 +68,7 @@ void spl_dram_init(void) } #define LED_GPIO IMX_GPIO_NR(1, 10) +#define PWM_GPIO IMX_GPIO_NR(1, 1) #if CONFIG_IS_ENABLED(DM_PMIC_BD71837) int power_init_board(void) @@ -212,6 +213,10 @@ void board_init_f(ulong dummy) gpio_request(LED_GPIO, "led"); gpio_direction_output(LED_GPIO, 1); + /* Turn on display */ + gpio_request(PWM_GPIO, "pwm"); + gpio_direction_output(PWM_GPIO, 1); + ret = uclass_get_device_by_name(UCLASS_CLK, "clock-controller@30380000", &dev);