[coreboot-gerrit] Change in coreboot[master]: siemens/mc_apl1: Set coreboot ready LED

Mario Scheithauer (Code Review) gerrit at coreboot.org
Mon Oct 23 14:39:01 CEST 2017


Mario Scheithauer has uploaded this change for review. ( https://review.coreboot.org/22136


Change subject: siemens/mc_apl1: Set coreboot ready LED
......................................................................

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 at siemens.com>
---
M src/mainboard/siemens/mc_apl1/mainboard.c
1 file changed, 10 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/22136/1

diff --git a/src/mainboard/siemens/mc_apl1/mainboard.c b/src/mainboard/siemens/mc_apl1/mainboard.c
index f77ef75..2994be5 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>
@@ -169,7 +170,16 @@
 	printk(BIOS_NOTICE, "done!\n");
 }
 
+static void finalize_boot(void *unused)
+{
+	/* Set coreboot ready LED. */
+	gpio_output(CNV_RGI_DT, 1);
+	printk(BIOS_INFO, "MC_APL1: coreboot is now finished.\n");
+}
+
+
 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,

-- 
To view, visit https://review.coreboot.org/22136
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I179d013746c1334337dc9e6b7f09ac54eff0cd77
Gerrit-Change-Number: 22136
Gerrit-PatchSet: 1
Gerrit-Owner: Mario Scheithauer <mario.scheithauer at siemens.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171023/17126e74/attachment.html>


More information about the coreboot-gerrit mailing list