* [PATCH] board: dh_stm32mp1: update the gpio hog support
@ 2020-05-29 16:33 Patrick Delaunay
2020-07-02 8:04 ` [Uboot-stm32] " Patrice CHOTARD
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Delaunay @ 2020-05-29 16:33 UTC (permalink / raw)
To: u-boot
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 <patrick.delaunay@st.com>
---
board/dhelectronics/dh_stm32mp1/board.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c
index 26e827bc38..ac9dc4b52c 100644
--- a/board/dhelectronics/dh_stm32mp1/board.c
+++ b/board/dhelectronics/dh_stm32mp1/board.c
@@ -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();
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Uboot-stm32] [PATCH] board: dh_stm32mp1: update the gpio hog support
2020-05-29 16:33 [PATCH] board: dh_stm32mp1: update the gpio hog support Patrick Delaunay
@ 2020-07-02 8:04 ` Patrice CHOTARD
0 siblings, 0 replies; 2+ messages in thread
From: Patrice CHOTARD @ 2020-07-02 8:04 UTC (permalink / raw)
To: u-boot
Hi Patrick
On 5/29/20 6:33 PM, Patrick Delaunay wrote:
> This patch update the current gpio hog implementation with
> the new API gpio_hog_probe_all() actviated with CONFIG_GPIO_HOG.
s/actviated/activated
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---
>
> board/dhelectronics/dh_stm32mp1/board.c | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c
> index 26e827bc38..ac9dc4b52c 100644
> --- a/board/dhelectronics/dh_stm32mp1/board.c
> +++ b/board/dhelectronics/dh_stm32mp1/board.c
> @@ -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();
>
You can add my reviewed-by with the typo fixed
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-02 8:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-29 16:33 [PATCH] board: dh_stm32mp1: update the gpio hog support Patrick Delaunay
2020-07-02 8:04 ` [Uboot-stm32] " Patrice CHOTARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox