diff options
author | Patrice Chotard <patrice.chotard@st.com> | 2019-03-11 11:13:17 +0100 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@st.com> | 2019-04-12 16:09:13 +0200 |
commit | 8b4afe8070ebc0aed60210c16449385e34481e1b (patch) | |
tree | b7cc51d08012af0c7783b8084ff825b563f54284 /board/st/stm32mp1 | |
parent | 8c3ff9ba02bb71e405b936913707ec147c4bb6d1 (diff) |
board: stm32mp1: Force pinctrl driver probe in board_init()
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.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'board/st/stm32mp1')
-rw-r--r-- | board/st/stm32mp1/stm32mp1.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index ff7790e310..24d299ac33 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -543,9 +543,18 @@ static void sysconf_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); + } + board_key_check(); sysconf_init(); |