[coreboot-gerrit] New patch to review for coreboot: mb/intel: Enable nuvoton serial in bootblock

Boon Tiong Teo (boon.tiong.teo@intel.com) gerrit at coreboot.org
Thu Nov 10 14:48:34 CET 2016


Boon Tiong Teo (boon.tiong.teo at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17360

-gerrit

commit c12642289a27d000ee1f566108eb2b69f17e6f1b
Author: Teo Boon Tiong <boon.tiong.teo at intel.com>
Date:   Fri Nov 11 05:41:56 2016 +0800

    mb/intel: Enable nuvoton serial in bootblock
    
    Change-Id: I56e7feddd7a582ad0cd898b7b0b45630d32c6300
    Signed-off-by: Teo Boon Tiong <boon.tiong.teo at intel.com>
---
 src/mainboard/intel/saddlebrook/Makefile.inc       | 16 ++++++++++
 .../intel/saddlebrook/bootblock_mainboard.c        | 37 ++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/src/mainboard/intel/saddlebrook/Makefile.inc b/src/mainboard/intel/saddlebrook/Makefile.inc
new file mode 100644
index 0000000..e3f481d
--- /dev/null
+++ b/src/mainboard/intel/saddlebrook/Makefile.inc
@@ -0,0 +1,16 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2013 Google Inc.
+## Copyright (C) 2016 Intel Corporation.
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; version 2 of the License.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+#bteo1-tmp bootblock-y += bootblock_mainboard.c
diff --git a/src/mainboard/intel/saddlebrook/bootblock_mainboard.c b/src/mainboard/intel/saddlebrook/bootblock_mainboard.c
new file mode 100644
index 0000000..1155249
--- /dev/null
+++ b/src/mainboard/intel/saddlebrook/bootblock_mainboard.c
@@ -0,0 +1,37 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ Copyright (C) 2016 Intel Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include <bootblock_common.h>
+
+#include "superio/nuvoton/common/nuvoton.h"
+#include <superio/nuvoton/nct6776/nct6776.h>
+
+#define SERIAL_DEV PNP_DEV(0x2e, NCT6776_SP1)
+
+static void early_config_gpio(void)
+{
+	//do nothing for now
+}
+
+void bootblock_mainboard_init(void)
+{
+	early_config_gpio();
+}
+
+void bootblock_mainboard_early_init(void)
+{
+	if (IS_ENABLED(CONFIG_SUPERIO_NUVOTON_NCT6776))
+		nuvoton_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
+}



More information about the coreboot-gerrit mailing list