]> Git Repo - J-u-boot.git/commitdiff
board: dh_stm32mp1: update the gpio hog support
authorPatrick Delaunay <[email protected]>
Thu, 2 Jul 2020 13:20:47 +0000 (15:20 +0200)
committerPatrick Delaunay <[email protected]>
Tue, 7 Jul 2020 14:01:23 +0000 (16:01 +0200)
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 <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
board/dhelectronics/dh_stm32mp1/board.c

index b2b4f3974d22baabd1c19318763f63e2be13dc64..b8625f25d3e7e69b95b1fade5a3ae99ea2d0ae22 100644 (file)
@@ -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();
 
This page took 0.036006 seconds and 4 git commands to generate.