]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: st: Drop old LED code from stm32f429-disco
authorSimon Glass <sjg@chromium.org>
Fri, 14 Nov 2025 16:23:35 +0000 (17:23 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 5 Dec 2025 10:39:40 +0000 (11:39 +0100)
This predates the LED framework, so drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
board/st/stm32f429-discovery/Makefile
board/st/stm32f429-discovery/led.c [deleted file]

index 6b02c0fddecf480c1034cdd810603a251a207a87..233eafdad3d53f39861b41eae4a1e162895251cf 100644 (file)
@@ -7,4 +7,3 @@
 # Kamil Lulko, <kamil.lulko@gmail.com>
 
 obj-y  := stm32f429-discovery.o
-obj-y  += led.o
diff --git a/board/st/stm32f429-discovery/led.c b/board/st/stm32f429-discovery/led.c
deleted file mode 100644 (file)
index 4b80383..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2015
- * Kamil Lulko, <kamil.lulko@gmail.com>
- */
-
-#include <status_led.h>
-#include <asm-generic/gpio.h>
-
-#define RED_LED                        110
-#define GREEN_LED              109
-
-void coloured_LED_init(void)
-{
-       gpio_request(RED_LED, "red led");
-       gpio_direction_output(RED_LED, 0);
-       gpio_request(GREEN_LED, "green led");
-       gpio_direction_output(GREEN_LED, 0);
-}
-
-void red_led_off(void)
-{
-       gpio_set_value(RED_LED, 0);
-}
-
-void green_led_off(void)
-{
-       gpio_set_value(GREEN_LED, 0);
-}
-
-void red_led_on(void)
-{
-       gpio_set_value(RED_LED, 1);
-}
-
-void green_led_on(void)
-{
-       gpio_set_value(GREEN_LED, 1);
-}