Martin Roth (martinroth@google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17360
-gerrit
commit deb7350da3ddb0704ca63db669f5fecf421abf17 Author: Teo Boon Tiong boon.tiong.teo@intel.com Date: Fri Nov 11 05:41:56 2016 +0800
mb/intel/saddlebrook: Enable nuvoton serial in bootblock
Change-Id: I56e7feddd7a582ad0cd898b7b0b45630d32c6300 Signed-off-by: Teo Boon Tiong boon.tiong.teo@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..8b5378a --- /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. +## +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..3c85792 --- /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); +}