imx8mm-somdevices: spl: Turn on display at boot.
authorJosep Orga <jorga@somdevices.com>
Fri, 1 Oct 2021 11:27:10 +0000 (13:27 +0200)
committerJosep Orga <jorga@somdevices.com>
Fri, 1 Oct 2021 11:27:10 +0000 (13:27 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
board/somdevices/imx8mm_somdevices/spl.c

index c4d404b..cc09666 100644 (file)
@@ -78,6 +78,7 @@ struct i2c_pads_info i2c_pad_info1 = {
 #define USDHC2_CD_GPIO IMX_GPIO_NR(2, 12)
 #define USDHC2_PWR_GPIO IMX_GPIO_NR(2, 19)
 #define LED_GPIO IMX_GPIO_NR(1, 10)
+#define PWM_GPIO IMX_GPIO_NR(1, 1)
 
 #define USDHC_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_HYS | PAD_CTL_PUE |PAD_CTL_PE | \
                         PAD_CTL_FSEL2)
@@ -287,6 +288,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);
+
        /* Clear the BSS. */
        memset(__bss_start, 0, __bss_end - __bss_start);