mb/siemens/mc_rpl1: Set coreboot ready LED

This mainboard has an LED that shows when coreboot has finished. The LED
is switched on via GPIO GPP_F4.

TEST=LED turns on when booting to Payload.

Change-Id: Ia292b10573d67df3f288b97fa2e92ae85ba7f27b
Signed-off-by: Kilian Krause <kilian.krause@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90201
Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Kilian Krause 2025-11-25 12:56:14 +01:00 committed by Matt DeVillier
commit 866a0591f7
2 changed files with 13 additions and 0 deletions

View file

@ -3,5 +3,6 @@
bootblock-y += early_gpio.c
ramstage-y += gpio.c
romstage-y += variant.c
ramstage-y += ramstage.c
all-$(CONFIG_NC_FPGA_POST_CODE) += post.c

View file

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <bootstate.h>
#include <gpio.h>
static void finalize_boot(void *unused)
{
/* Set coreboot ready LED. */
gpio_output(GPP_F4, 1);
}
BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_BOOT, BS_ON_ENTRY, finalize_boot, NULL);