From: Patrice CHOTARD <patrice.chotard@st.com>
To: u-boot@lists.denx.de
Subject: [Uboot-stm32] [PATCH] board: dh_stm32mp1: update the gpio hog support
Date: Thu, 2 Jul 2020 08:04:51 +0000 [thread overview]
Message-ID: <da2ffab6-e99d-424b-1ef4-95cdf5a77ff4@st.com> (raw)
In-Reply-To: <20200529163325.30892-1-patrick.delaunay@st.com>
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
prev parent reply other threads:[~2020-07-02 8:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-29 16:33 [PATCH] board: dh_stm32mp1: update the gpio hog support Patrick Delaunay
2020-07-02 8:04 ` Patrice CHOTARD [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=da2ffab6-e99d-424b-1ef4-95cdf5a77ff4@st.com \
--to=patrice.chotard@st.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.