summaryrefslogtreecommitdiff
path: root/board/st/stm32f429-discovery
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2019-06-26 10:26:41 +0200
committerPatrick Delaunay <patrick.delaunay@st.com>2019-07-12 11:50:58 +0200
commit291f00bb3ea7e9f9acdddbe680991e76313732d6 (patch)
treed28b983dd4cf478a9592074ac0d131694af9dcc0 /board/st/stm32f429-discovery
parent60bc487666bd9cbe8d1ab4e7c2290b08fe1b9e1d (diff)
board: st: add missing gpio_request() for stm32f429-discovery
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>
Diffstat (limited to 'board/st/stm32f429-discovery')
-rw-r--r--board/st/stm32f429-discovery/led.c2
1 files changed, 2 insertions, 0 deletions
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);
}