In order to insure that hog GPIOs are configured early during
the boot process, force all pinctrl driver probing in board_init().

Signed-off-by: Patrick Delaunay <patrick.delau...@st.com>
Signed-off-by: Patrice Chotard <patrice.chot...@st.com>
---

 board/st/stm32mp1/stm32mp1.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 253094e6b418..7b3383547b1c 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -372,9 +372,18 @@ int board_late_init(void)
 /* board dependent setup after realloc */
 int board_init(void)
 {
+       struct udevice *dev;
+
        /* address of boot parameters */
        gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
 
+       /* probe all PINCTRL for hog */
+       for (uclass_first_device(UCLASS_PINCTRL, &dev);
+            dev;
+            uclass_next_device(&dev)) {
+               pr_debug("probe pincontrol = %s\n", dev->name);
+       }
+
        if (IS_ENABLED(CONFIG_LED))
                led_default_state();
 
-- 
1.9.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to