aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMarek Vasut2022-04-22 15:41:42 +0200
committerTom Rini2022-04-28 09:26:44 -0400
commit69245e406e919012d45d40f045f9b7369086ce17 (patch)
tree619309725c1c57e41de72d7aa320887e638a4a1d /board
parent01074697801bc0709ac2ca915250096311ec1b7e (diff)
led: Drop led_default_state()
This function is empty, drop it. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Cc: Sean Anderson <seanga2@gmail.com> Cc: Simon Glass <sjg@chromium.org> Cc: Steven Lawrance <steven.lawrance@softathome.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'board')
-rw-r--r--board/aristainetos/aristainetos.c1
-rw-r--r--board/bosch/guardian/board.c3
-rw-r--r--board/dhelectronics/dh_stm32mp1/board.c3
-rw-r--r--board/gardena/smart-gateway-at91sam/board.c3
-rw-r--r--board/gardena/smart-gateway-mt7688/board.c3
-rw-r--r--board/gateworks/venice/venice.c2
-rw-r--r--board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c3
-rw-r--r--board/mscc/jr2/jr2.c4
-rw-r--r--board/mscc/luton/luton.c4
-rw-r--r--board/mscc/ocelot/ocelot.c4
-rw-r--r--board/mscc/serval/serval.c4
-rw-r--r--board/mscc/servalt/servalt.c4
-rw-r--r--board/phytec/pcm052/pcm052.c3
-rw-r--r--board/sandbox/sandbox.c3
-rw-r--r--board/siemens/capricorn/board.c4
-rw-r--r--board/st/stm32mp1/stm32mp1.c3
16 files changed, 0 insertions, 51 deletions
diff --git a/board/aristainetos/aristainetos.c b/board/aristainetos/aristainetos.c
index 19af59606da..514cb60d5ba 100644
--- a/board/aristainetos/aristainetos.c
+++ b/board/aristainetos/aristainetos.c
@@ -418,7 +418,6 @@ int board_late_init(void)
int x, y;
int ret;
- led_default_state();
splash_get_pos(&x, &y);
bmp_display((ulong)&bmp_logo_bitmap[0], x, y);
diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c
index 105b75e65e9..68f2744610b 100644
--- a/board/bosch/guardian/board.c
+++ b/board/bosch/guardian/board.c
@@ -327,9 +327,6 @@ int board_late_init(void)
int ret;
struct udevice *cdev;
-#ifdef CONFIG_LED_GPIO
- led_default_state();
-#endif
set_bootmode_env();
ret = uclass_get_device(UCLASS_PANEL, 0, &cdev);
diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c
index f44afb01e27..67273f90992 100644
--- a/board/dhelectronics/dh_stm32mp1/board.c
+++ b/board/dhelectronics/dh_stm32mp1/board.c
@@ -607,9 +607,6 @@ int board_init(void)
board_init_fmc2();
- if (CONFIG_IS_ENABLED(LED))
- led_default_state();
-
return 0;
}
diff --git a/board/gardena/smart-gateway-at91sam/board.c b/board/gardena/smart-gateway-at91sam/board.c
index 3f402cfeee8..c6eb11e9326 100644
--- a/board/gardena/smart-gateway-at91sam/board.c
+++ b/board/gardena/smart-gateway-at91sam/board.c
@@ -24,9 +24,6 @@ int board_late_init(void)
{
at91_prepare_cpu_var();
- if (IS_ENABLED(CONFIG_LED))
- led_default_state();
-
return 0;
}
diff --git a/board/gardena/smart-gateway-mt7688/board.c b/board/gardena/smart-gateway-mt7688/board.c
index 8a3a6e34825..aa833a030fd 100644
--- a/board/gardena/smart-gateway-mt7688/board.c
+++ b/board/gardena/smart-gateway-mt7688/board.c
@@ -183,9 +183,6 @@ err_free:
int board_late_init(void)
{
- if (IS_ENABLED(CONFIG_LED))
- led_default_state();
-
factory_data_env_config();
return 0;
diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c
index 4290a698077..f1efabb203d 100644
--- a/board/gateworks/venice/venice.c
+++ b/board/gateworks/venice/venice.c
@@ -128,8 +128,6 @@ int board_late_init(void)
u8 enetaddr[6];
char fdt[64];
- led_default_state();
-
/* Set board serial/model */
if (!env_get("serial#"))
env_set_ulong("serial#", eeprom_get_serial());
diff --git a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
index 110496d9950..e6877e4c070 100644
--- a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
+++ b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
@@ -137,9 +137,6 @@ int board_late_init(void)
add_board_boot_modes(board_boot_modes);
#endif
- if (IS_ENABLED(CONFIG_LED))
- led_default_state();
-
env_set("boardname", "kp-tpc");
env_set("boardsoc", "imx6q");
return 0;
diff --git a/board/mscc/jr2/jr2.c b/board/mscc/jr2/jr2.c
index 1c516aacd88..6abf08bd24c 100644
--- a/board/mscc/jr2/jr2.c
+++ b/board/mscc/jr2/jr2.c
@@ -30,10 +30,6 @@ int board_early_init_r(void)
/* Address of boot parameters */
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
- /* LED setup */
- if (IS_ENABLED(CONFIG_LED))
- led_default_state();
-
return 0;
}
diff --git a/board/mscc/luton/luton.c b/board/mscc/luton/luton.c
index 038902d08a9..76e3f2ebbce 100644
--- a/board/mscc/luton/luton.c
+++ b/board/mscc/luton/luton.c
@@ -31,10 +31,6 @@ int board_early_init_r(void)
/* Address of boot parameters */
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
- /* LED setup */
- if (IS_ENABLED(CONFIG_LED))
- led_default_state();
-
return 0;
}
diff --git a/board/mscc/ocelot/ocelot.c b/board/mscc/ocelot/ocelot.c
index c462890bb85..2a75ec281cb 100644
--- a/board/mscc/ocelot/ocelot.c
+++ b/board/mscc/ocelot/ocelot.c
@@ -79,10 +79,6 @@ int board_early_init_r(void)
/* Address of boot parameters */
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
- /* LED setup */
- if (IS_ENABLED(CONFIG_LED))
- led_default_state();
-
return 0;
}
diff --git a/board/mscc/serval/serval.c b/board/mscc/serval/serval.c
index 94c1c42b79b..87e79076574 100644
--- a/board/mscc/serval/serval.c
+++ b/board/mscc/serval/serval.c
@@ -24,10 +24,6 @@ int board_early_init_r(void)
/* Address of boot parameters */
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
- /* LED setup */
- if (IS_ENABLED(CONFIG_LED))
- led_default_state();
-
return 0;
}
diff --git a/board/mscc/servalt/servalt.c b/board/mscc/servalt/servalt.c
index 252d8e3156d..bd8c7e8b700 100644
--- a/board/mscc/servalt/servalt.c
+++ b/board/mscc/servalt/servalt.c
@@ -24,10 +24,6 @@ int board_early_init_r(void)
/* Address of boot parameters */
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
- /* LED setup */
- if (IS_ENABLED(CONFIG_LED))
- led_default_state();
-
return 0;
}
diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c
index f9cf4abd474..0f7235979b0 100644
--- a/board/phytec/pcm052/pcm052.c
+++ b/board/phytec/pcm052/pcm052.c
@@ -360,9 +360,6 @@ int board_late_init(void)
struct src *psrc = (struct src *)SRC_BASE_ADDR;
u32 reg;
- if (IS_ENABLED(CONFIG_LED))
- led_default_state();
-
/*
* BK4r1 handle emergency/service SD card boot
* Checking the SBMR1 register BOOTCFG1 byte:
diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c
index 28ad6efd136..e054f300c4a 100644
--- a/board/sandbox/sandbox.c
+++ b/board/sandbox/sandbox.c
@@ -107,9 +107,6 @@ int dram_init(void)
int board_init(void)
{
- if (IS_ENABLED(CONFIG_LED))
- led_default_state();
-
return 0;
}
diff --git a/board/siemens/capricorn/board.c b/board/siemens/capricorn/board.c
index dcbab8e4d21..4a02d64aec3 100644
--- a/board/siemens/capricorn/board.c
+++ b/board/siemens/capricorn/board.c
@@ -244,10 +244,6 @@ static int board_led_init(void)
u8 pca_led[2] = { 0x00, 0x00 };
int ret;
- /* init all GPIO LED's */
- if (IS_ENABLED(CONFIG_LED))
- led_default_state();
-
/* enable all leds on PCA9552 */
ret = uclass_get_device_by_seq(UCLASS_I2C, PCA9552_1_I2C_BUS, &bus);
if (ret) {
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index fff1880e5b0..7466e1c732a 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -666,9 +666,6 @@ int board_init(void)
if (IS_ENABLED(CONFIG_ARMV7_NONSEC))
sysconf_init();
- if (CONFIG_IS_ENABLED(LED))
- led_default_state();
-
setup_led(LEDST_ON);
return 0;