imx8mn-somdevices: spl: Turn on display at boot.
authorJosep Orga <jorga@somdevices.com>
Thu, 7 Oct 2021 17:34:39 +0000 (19:34 +0200)
committerJosep Orga <jorga@somdevices.com>
Thu, 7 Oct 2021 17:34:39 +0000 (19:34 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
board/somdevices/imx8mn_somdevices/spl.c

index 3626f69..e6ed504 100644 (file)
@@ -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);