projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c994b83
)
imx8mp-somdevices: spl: Turn on display at boot.
author
Josep Orga
<jorga@somdevices.com>
Tue, 12 Sep 2023 14:35:34 +0000
(16:35 +0200)
committer
Josep Orga
<jorga@somdevices.com>
Wed, 13 Sep 2023 07:30:33 +0000
(09:30 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
board/somdevices/imx8mp_somdevices/spl.c
patch
|
blob
|
history
diff --git
a/board/somdevices/imx8mp_somdevices/spl.c
b/board/somdevices/imx8mp_somdevices/spl.c
index
2c0b2a7
..
7cc836b
100644
(file)
--- a/
board/somdevices/imx8mp_somdevices/spl.c
+++ b/
board/somdevices/imx8mp_somdevices/spl.c
@@
-68,6
+68,7
@@
void spl_dram_init(void)
}
#define LED_GPIO IMX_GPIO_NR(3, 19)
+#define PWM_GPIO IMX_GPIO_NR(1, 1)
#if CONFIG_IS_ENABLED(DM_PMIC_PCA9450)
int power_init_board(void)
@@
-79,6
+80,10
@@
int power_init_board(void)
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 = pmic_get("pca9450@25", &dev);
if (ret == -ENODEV) {
puts("No pca9450@25\n");