diff mbox series

[U-Boot] board: st: add missing gpio_request() for stm32f429-discovery

Message ID 20190626082641.13869-1-patrice.chotard@st.com
State Accepted
Commit 291f00bb3ea7e9f9acdddbe680991e76313732d6
Delegated to: Patrick Delaunay
Headers show
Series [U-Boot] board: st: add missing gpio_request() for stm32f429-discovery | expand

Commit Message

Patrice CHOTARD June 26, 2019, 8:26 a.m. UTC
This fixes the following error message:

U-Boot 2019.07-rc4-00103-g5eea874b5e (Jun 25 2019 - 15:09:31 +0200)

DRAM:  8 MiB
gpio@40021800: dir_output: error: gpio GPIOG14 not reserved
gpio@40021800: dir_output: error: gpio GPIOG13 not reserved
gpio@40021800: set_value: error: gpio GPIOG14 not reserved
Flash: 2 MiB
....

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
---

 board/st/stm32f429-discovery/led.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Patrick DELAUNAY July 12, 2019, 1:06 p.m. UTC | #1
Hi,

> From: Patrice CHOTARD <patrice.chotard@st.com>
> Sent: mercredi 26 juin 2019 10:27
> 
> This fixes the following error message:
> 
> U-Boot 2019.07-rc4-00103-g5eea874b5e (Jun 25 2019 - 15:09:31 +0200)
> 
> DRAM:  8 MiB
> gpio@40021800: dir_output: error: gpio GPIOG14 not reserved
> gpio@40021800: dir_output: error: gpio GPIOG13 not reserved
> gpio@40021800: set_value: error: gpio GPIOG14 not reserved
> Flash: 2 MiB
> ....
> 
> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
> ---
> 
>  board/st/stm32f429-discovery/led.c | 2 ++
>  1 file changed, 2 insertions(+)
> 

Applied to u-boot-stm32/master, thanks!

Patrick
diff mbox series

Patch

diff --git a/board/st/stm32f429-discovery/led.c b/board/st/stm32f429-discovery/led.c
index 8320ad4fac..ae6df78f56 100644
--- a/board/st/stm32f429-discovery/led.c
+++ b/board/st/stm32f429-discovery/led.c
@@ -9,7 +9,9 @@ 
 
 void coloured_LED_init(void)
 {
+	gpio_request(CONFIG_RED_LED, "red led");
 	gpio_direction_output(CONFIG_RED_LED, 0);
+	gpio_request(CONFIG_GREEN_LED, "green led");
 	gpio_direction_output(CONFIG_GREEN_LED, 0);
 }