diff options
author | Mario Scheithauer <mario.scheithauer@siemens.com> | 2017-10-23 14:37:14 +0200 |
---|---|---|
committer | Werner Zeh <werner.zeh@siemens.com> | 2017-11-03 07:11:55 +0000 |
commit | dda58a2a3c68707f0113606f2b014581ca363c41 (patch) | |
tree | 75f0562acd577e27a219f9ad160010c7b243722f | |
parent | d958300590023fe5aedbe1cfae6ea0f62b2e207f (diff) |
siemens/mc_apl1: Set coreboot ready LED
This mainboard has its own coreboot ready LED. The LED is switched on
via GPIO CNV_RGI_DT.
Change-Id: I179d013746c1334337dc9e6b7f09ac54eff0cd77
Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-on: https://review.coreboot.org/22136
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
-rw-r--r-- | src/mainboard/siemens/mc_apl1/mainboard.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/siemens/mc_apl1/mainboard.c b/src/mainboard/siemens/mc_apl1/mainboard.c index 60a62a7874..fd19cd13ae 100644 --- a/src/mainboard/siemens/mc_apl1/mainboard.c +++ b/src/mainboard/siemens/mc_apl1/mainboard.c @@ -18,6 +18,7 @@ #include <device/device.h> #include <device/pci.h> #include <device/pci_ids.h> +#include <gpio.h> #include <hwilib.h> #include <i210.h> #include <intelblocks/lpc_lib.h> @@ -177,7 +178,14 @@ static void wait_for_legacy_dev(void *unused) printk(BIOS_NOTICE, "done!\n"); } +static void finalize_boot(void *unused) +{ + /* Set coreboot ready LED. */ + gpio_output(CNV_RGI_DT, 1); +} + BOOT_STATE_INIT_ENTRY(BS_DEV_ENUMERATE, BS_ON_ENTRY, wait_for_legacy_dev, NULL); +BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_BOOT, BS_ON_ENTRY, finalize_boot, NULL); struct chip_operations mainboard_ops = { .init = mainboard_init, |