]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: st: add missing gpio_request() for stm32f429-discovery
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 26 Jun 2019 08:26:41 +0000 (10:26 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Fri, 12 Jul 2019 09:50:58 +0000 (11:50 +0200)
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

index 8320ad4fac299154cfbae1de92351d53ce41064d..ae6df78f56f26ff0058e16482e02c2893667e561 100644 (file)
@@ -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);
 }