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:
parent
801795d4dd
commit
866a0591f7
2 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
12
src/mainboard/siemens/mc_rpl/variants/mc_rpl1/ramstage.c
Normal file
12
src/mainboard/siemens/mc_rpl/variants/mc_rpl1/ramstage.c
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue