diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2020-07-02 15:20:47 +0200 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@st.com> | 2020-07-07 16:01:23 +0200 |
commit | 6826d0d82ba6ca2b466117aafdaa3305b666e37b (patch) | |
tree | 72ac17bc5e3a0c0d268c04c29481682bdfbe939b /board/dhelectronics | |
parent | 03fb03842a1e16f89477d4a968712cc2422be217 (diff) | |
download | u-boot-6826d0d82ba6ca2b466117aafdaa3305b666e37b.tar.gz u-boot-6826d0d82ba6ca2b466117aafdaa3305b666e37b.tar.xz u-boot-6826d0d82ba6ca2b466117aafdaa3305b666e37b.zip |
board: dh_stm32mp1: update the gpio hog support
This patch update the current gpio hog implementation with
the new API gpio_hog_probe_all() activated with CONFIG_GPIO_HOG.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'board/dhelectronics')
-rw-r--r-- | board/dhelectronics/dh_stm32mp1/board.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c index b2b4f3974d..b8625f25d3 100644 --- a/board/dhelectronics/dh_stm32mp1/board.c +++ b/board/dhelectronics/dh_stm32mp1/board.c @@ -523,17 +523,11 @@ static void board_init_fmc2(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 (CONFIG_IS_ENABLED(DM_GPIO_HOG)) + gpio_hog_probe_all(); board_key_check(); |