board: dh_stm32mp1: update the gpio hog support
PATCH 1/1 board: dh_stm32mp1: update the gpio hog support
This patch update the current gpio hog implementation with the new API gpio_hog_probe_all() actviated with CONFIG_GPIO_HOG.
Signed-off-by Patrick Delaunay <[email protected]>
---
board/dhelectronics/dh_stm32mp1/board.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
board/dhelectronics/dh_stm32mp1/board.c +2 -8
@@ -513,17 +513,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 ();
Signature · 1 line
2.17.1
PATCH 1/1 board: dh_stm32mp1: update the gpio hog support
Hi Patrick
Quoted 2 lines · Patrick Delaunay
This patch update the current gpio hog implementation with the new API
gpio_hog_probe_all()actviated withCONFIG_GPIO_HOG.
s/actviated/activated
Quoted 21 lines
Signed-off-by Patrick Delaunay <[email protected]>---
board/dhelectronics/dh_stm32mp1/board.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)board/dhelectronics/dh_stm32mp1/board.c +0
-3@@ -513,17 +513,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 */
board/dhelectronics/dh_stm32mp1/board.c static void board_init_fmc2(void) · line 523
Quoted 10 lines
board/dhelectronics/dh_stm32mp1/board.c +2
-5-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 ();
You can add my reviewed-by with the typo fixed
Thanks