the following patch was just integrated into master:
commit 2ee650fb647c0cfad6db19cafdb62705d3035eb7
Author: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Date: Tue Feb 4 10:46:51 2014 -0600
crossgcc: Update IASL to latest version (20140114)
Change-Id: I2450cad4a43907b8ca6d8f4d35932d7f451f71ea
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
See http://review.coreboot.org/5116 for details.
-gerrit
Alec Ari (neotheuser(a)ymail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4589
-gerrit
commit 5df5159b24610dd950ac2c02cf2909f54b625d60
Author: Alec Ari <neotheuser(a)ymail.com>
Date: Sun Dec 29 23:48:38 2013 -0600
superio/nuvoton: Add support for Nuvoton NCT6779D
Adds initial support for the Nuvoton NCT6779D Super I/O
Change-Id: I03b3c39e4409bd57e8c0759d9c3fdd160f0376d4
Signed-off-by: Alec Ari <neotheuser(a)ymail.com>
---
src/superio/nuvoton/Kconfig | 2 +
src/superio/nuvoton/Makefile.inc | 1 +
src/superio/nuvoton/nct6779d/Makefile.inc | 23 ++++++++++
src/superio/nuvoton/nct6779d/early_serial.c | 45 +++++++++++++++++++
src/superio/nuvoton/nct6779d/nct6779d.h | 48 ++++++++++++++++++++
src/superio/nuvoton/nct6779d/superio.c | 68 +++++++++++++++++++++++++++++
6 files changed, 187 insertions(+)
diff --git a/src/superio/nuvoton/Kconfig b/src/superio/nuvoton/Kconfig
index 142738d..8bbfdb0 100644
--- a/src/superio/nuvoton/Kconfig
+++ b/src/superio/nuvoton/Kconfig
@@ -21,3 +21,5 @@ config SUPERIO_NUVOTON_WPCM450
bool
config SUPERIO_NUVOTON_NCT5104D
bool
+config SUPERIO_NUVOTON_NCT6779D
+ bool
diff --git a/src/superio/nuvoton/Makefile.inc b/src/superio/nuvoton/Makefile.inc
index 18025c9..d115bac 100644
--- a/src/superio/nuvoton/Makefile.inc
+++ b/src/superio/nuvoton/Makefile.inc
@@ -19,3 +19,4 @@
subdirs-$(CONFIG_SUPERIO_NUVOTON_WPCM450) += wpcm450
subdirs-$(CONFIG_SUPERIO_NUVOTON_NCT5104D) += nct5104d
+subdirs-$(CONFIG_SUPERIO_NUVOTON_NCT6779D) += nct6779d
diff --git a/src/superio/nuvoton/nct6779d/Makefile.inc b/src/superio/nuvoton/nct6779d/Makefile.inc
new file mode 100644
index 0000000..9b2ee9c
--- /dev/null
+++ b/src/superio/nuvoton/nct6779d/Makefile.inc
@@ -0,0 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2014 Alec Ari (neotheuser(a)ymail.com)
+##
+## 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; either version 2 of the License, or
+## (at your option) any later version.
+##
+## 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+##
+
+romstage-$(CONFIG_SUPERIO_NUVOTON_NCT6779D) += early_serial.c
+ramstage-$(CONFIG_SUPERIO_NUVOTON_NCT6779D) += superio.c
+
diff --git a/src/superio/nuvoton/nct6779d/early_serial.c b/src/superio/nuvoton/nct6779d/early_serial.c
new file mode 100644
index 0000000..e33abbc
--- /dev/null
+++ b/src/superio/nuvoton/nct6779d/early_serial.c
@@ -0,0 +1,45 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2014 Alec Ari <neotheuser(a)ymail.com>
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <arch/io.h>
+#include "nct6779d.h"
+
+static void pnp_enter_ext_func_mode(device_t dev)
+{
+ u16 port = dev >> 8;
+ outb(0x87, port);
+ outb(0x87, port);
+}
+
+static void pnp_exit_ext_func_mode(device_t dev)
+{
+ u16 port = dev >> 8;
+ outb(0xaa, port);
+}
+
+void nct6779d_enable_serial(device_t dev, u16 iobase)
+{
+ pnp_enter_ext_func_mode(dev);
+ pnp_set_logical_device(dev);
+ pnp_set_enable(dev, 0);
+ pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
+ pnp_set_enable(dev, 1);
+ pnp_exit_ext_func_mode(dev);
+}
diff --git a/src/superio/nuvoton/nct6779d/nct6779d.h b/src/superio/nuvoton/nct6779d/nct6779d.h
new file mode 100644
index 0000000..6013d87
--- /dev/null
+++ b/src/superio/nuvoton/nct6779d/nct6779d.h
@@ -0,0 +1,48 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2014 Alec Ari <neotheuser(a)ymail.com>
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef SUPERIO_NUVOTON_NCT6779D_NCT6779D_H
+#define SUPERIO_NUVOTON_NCT6779D_NCT6779D_H
+
+#define NCT6779D_PAR 0x01 /* Parallel Port */
+#define NCT6779D_SP1 0x02 /* Com1 */
+#define NCT6779D_SP2 0x03 /* Com2 (UART B & IR) */
+#define NCT6779D_KBC 0x05 /* Keyboard Controller */
+#define NCT6779D_CIR 0x06 /* CIR */
+#define NCT6779D_HWMN 0x0b /* Hw-mon / Front panel LED */
+
+#define NCT6779D_WDT_GPIO_V 0x08
+#define NCT6779D_GPIO_ALL_V 0x09
+
+#define NCT6779D_WDT1 ((0 << 8) | NCT6779D_WDT_GPIO_V)
+#define NCT6779D_GPIO0 ((1 << 8) | NCT6779D_WDT_GPIO_V)
+
+#define NCT6779D_GPIO1 ((1 << 8) | NCT6779D_GPIO_ALL_V)
+#define NCT6779D_GPIO2 ((2 << 8) | NCT6779D_GPIO_ALL_V)
+#define NCT6779D_GPIO3 ((3 << 8) | NCT6779D_GPIO_ALL_V)
+#define NCT6779D_GPIO4 ((4 << 8) | NCT6779D_GPIO_ALL_V)
+#define NCT6779D_GPIO5 ((5 << 8) | NCT6779D_GPIO_ALL_V)
+#define NCT6779D_GPIO6 ((6 << 8) | NCT6779D_GPIO_ALL_V)
+#define NCT6779D_GPIO7 ((7 << 8) | NCT6779D_GPIO_ALL_V)
+#define NCT6779D_GPIO8 ((0 << 8) | NCT6779D_GPIO_ALL_V)
+
+void nct6779d_enable_serial(device_t dev, u16 iobase);
+
+#endif /* SUPERIO_NUVOTON_NCT6779D_NCT6779D_H */
diff --git a/src/superio/nuvoton/nct6779d/superio.c b/src/superio/nuvoton/nct6779d/superio.c
new file mode 100644
index 0000000..eb15905
--- /dev/null
+++ b/src/superio/nuvoton/nct6779d/superio.c
@@ -0,0 +1,68 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2014 Alec Ari <neotheuser(a)ymail.com>
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <arch/io.h>
+#include <device/pnp.h>
+#include <superio/conf_mode.h>
+#include <stdlib.h>
+#include "nct6779d.h"
+
+static void nct6779d_init(device_t dev)
+{
+}
+
+static struct device_operations ops = {
+ .read_resources = pnp_read_resources,
+ .set_resources = pnp_set_resources,
+ .enable_resources = pnp_enable_resources,
+ .enable = pnp_alt_enable,
+ .init = nct6779d_init,
+ .ops_pnp_mode = &pnp_conf_mode_8787_aa,
+};
+
+static struct pnp_info pnp_dev_info[] = {
+ /* TODO: Some of the 0x07f8 etc. values may not be correct. */
+ { &ops, NCT6779D_PAR, PNP_IO0 | PNP_IRQ0 | PNP_MSC0, {0x07f8, 0}, },
+ { &ops, NCT6779D_SP1, PNP_IO0 | PNP_IRQ0 | PNP_MSC0, {0x07f8, 0}, },
+ { &ops, NCT6779D_SP2, PNP_IO0 | PNP_IRQ0 | PNP_MSC0 | PNP_MSC1, {0x07f8, 0}, },
+ { &ops, NCT6779D_KBC, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1 | PNP_MSC0, {0x07f8, 0}, },
+ { &ops, NCT6779D_CIR, PNP_IO0 | PNP_IRQ0 | PNP_MSC0 | PNP_MSC1, {0x07f8, 0}, },
+ { &ops, NCT6779D_HWMN, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_MSC0 | PNP_MSC1, {0x07f8, 0}, },
+ { &ops, NCT6779D_WDT1, PNP_IO0 | PNP_MSC0 | PNP_MSC1, {0x07f8, 0}, },
+ { &ops, NCT6779D_GPIO0, PNP_EN | PNP_MSC0 | PNP_MSC1, },
+ { &ops, NCT6779D_GPIO1, PNP_EN | PNP_MSC0 | PNP_MSC1, },
+ { &ops, NCT6779D_GPIO2, PNP_EN | PNP_MSC0 | PNP_MSC1, },
+ { &ops, NCT6779D_GPIO3, PNP_EN | PNP_MSC0 | PNP_MSC1, },
+ { &ops, NCT6779D_GPIO4, PNP_EN | PNP_MSC0 | PNP_MSC1, },
+ { &ops, NCT6779D_GPIO5, PNP_EN | PNP_MSC0 | PNP_MSC1, },
+ { &ops, NCT6779D_GPIO6, PNP_EN | PNP_MSC0 | PNP_MSC1, },
+ { &ops, NCT6779D_GPIO7, PNP_EN | PNP_MSC0 | PNP_MSC1, },
+ { &ops, NCT6779D_GPIO8, PNP_EN | PNP_MSC0 | PNP_MSC1, },
+};
+
+static void enable_dev(struct device *dev)
+{
+ pnp_enable_devices(dev, &ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
+}
+
+struct chip_operations superio_nuvoton_nct6779d_ops = {
+ CHIP_NAME("NUVOTON NCT6779D Super I/O")
+ .enable_dev = enable_dev,
+};
Alexandru Gagniuc (mr.nuke.me(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5219
-gerrit
commit bb3804969974c2df0d7be71b831cd9b9606a9f8a
Author: Alexandru Gagniuc <mr.nuk.me(a)gmail.com>
Date: Thu Feb 13 00:16:56 2014 +0100
google/rambi: Re-add option to hardcode location of spd.bin
This is a partial revert of:
* 76e25b6 google boards: Do not hardcode location of spd.bin
Hardcoding the location of spd.bin is apparently useful during
manufacturing. Exactly how and why is irrelevant for coreboot master,
but we try to be a good citizen and accomodate all reasonable use
cases. As such, allow the location of spd.bin to be specified when
running a CHROMEOS build.
Change-Id: Ic1412245125dd4241728e10fb340d801d86c5dcf
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
---
src/mainboard/google/rambi/Kconfig | 7 +++++++
src/mainboard/google/rambi/spd/Makefile.inc | 4 ++++
2 files changed, 11 insertions(+)
diff --git a/src/mainboard/google/rambi/Kconfig b/src/mainboard/google/rambi/Kconfig
index 1748862..d316feb 100644
--- a/src/mainboard/google/rambi/Kconfig
+++ b/src/mainboard/google/rambi/Kconfig
@@ -31,4 +31,11 @@ config HAVE_ME_BIN
bool
default n
+# Positioning spd.bin at a fixed address is useful during manufacturing, but
+# offers no benefit otherwise, hence only present the option with ChromeOS
+config SPD_CBFS_ADDRESS
+ depends on CHROMEOS
+ hex "Location of SPD in CBFS"
+ default 0xfffec000
+
endif # BOARD_INTEL_BAYLEYBAY
diff --git a/src/mainboard/google/rambi/spd/Makefile.inc b/src/mainboard/google/rambi/spd/Makefile.inc
index 36f4b66..0ec7b39 100644
--- a/src/mainboard/google/rambi/spd/Makefile.inc
+++ b/src/mainboard/google/rambi/spd/Makefile.inc
@@ -43,3 +43,7 @@ $(SPD_BIN): $(SPD_DEPS)
cbfs-files-y += spd.bin
spd.bin-file := $(SPD_BIN)
spd.bin-type := 0xab
+# See comment in rambi/Kconfig for why this is done like this
+ifeq ($(CONFIG_CHROMEOS),y)
+spd.bin-position := $(CONFIG_SPD_CBFS_ADDRESS)
+endif
Alexandru Gagniuc (mr.nuke.me(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5218
-gerrit
commit 97e93b22b1f51f86c0841667549e256158724fc2
Author: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Date: Thu Feb 13 14:33:08 2014 -0600
google/rambi: Do not select CHROMEOS in Kconfig
CHROMEOS is the meant to be selected by the user. The correct variable
for a mainboard to select is MAINBOARD_HAS_CHROMEOS. This will then
default to a CHROMEOS build, but when the mainboard selects CHROMEOS,
the user can no longer disable CHROMEOS.
Change-Id: I78fb15a0a9fef733e2de064d6c09cf774b7bce78
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
---
src/mainboard/google/rambi/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/mainboard/google/rambi/Kconfig b/src/mainboard/google/rambi/Kconfig
index 292d321..1748862 100644
--- a/src/mainboard/google/rambi/Kconfig
+++ b/src/mainboard/google/rambi/Kconfig
@@ -10,7 +10,6 @@ config BOARD_SPECIFIC_OPTIONS
select HAVE_OPTION_TABLE
select HAVE_ACPI_RESUME
select MAINBOARD_HAS_CHROMEOS
- select CHROMEOS
config MAINBOARD_DIR
string
Alexandru Gagniuc (mr.nuke.me(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5212
-gerrit
commit a3279df5bbb61cfbad44614a8028e270adf12849
Author: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Date: Thu Feb 13 00:16:56 2014 +0100
google/rambi: Re-add option to hardcode location of spd.bin
This is a partial revert of:
* 76e25b6 google boards: Do not hardcode location of spd.bin
Hardcoding the location of spd.bin is apparently useful during
manufacturing. Exactly how and why is irrelevant for coreboot master,
but we try to be a good citizen and accomodate all reasonable use
cases. As such, allow the location of spd.bin to be specified when
running a CHROMEOS build.
Change-Id: I6ca0238e9a11566ec1129a16b5cd507d9951cbd3
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
---
src/mainboard/google/rambi/Kconfig | 7 +++++++
src/mainboard/google/rambi/spd/Makefile.inc | 4 ++++
2 files changed, 11 insertions(+)
diff --git a/src/mainboard/google/rambi/Kconfig b/src/mainboard/google/rambi/Kconfig
index 1748862..d316feb 100644
--- a/src/mainboard/google/rambi/Kconfig
+++ b/src/mainboard/google/rambi/Kconfig
@@ -31,4 +31,11 @@ config HAVE_ME_BIN
bool
default n
+# Positioning spd.bin at a fixed address is useful during manufacturing, but
+# offers no benefit otherwise, hence only present the option with ChromeOS
+config SPD_CBFS_ADDRESS
+ depends on CHROMEOS
+ hex "Location of SPD in CBFS"
+ default 0xfffec000
+
endif # BOARD_INTEL_BAYLEYBAY
diff --git a/src/mainboard/google/rambi/spd/Makefile.inc b/src/mainboard/google/rambi/spd/Makefile.inc
index 36f4b66..0ec7b39 100644
--- a/src/mainboard/google/rambi/spd/Makefile.inc
+++ b/src/mainboard/google/rambi/spd/Makefile.inc
@@ -43,3 +43,7 @@ $(SPD_BIN): $(SPD_DEPS)
cbfs-files-y += spd.bin
spd.bin-file := $(SPD_BIN)
spd.bin-type := 0xab
+# See comment in rambi/Kconfig for why this is done like this
+ifeq ($(CONFIG_CHROMEOS),y)
+spd.bin-position := $(CONFIG_SPD_CBFS_ADDRESS)
+endif