Philipp Deppenwiese has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29744 )
Change subject: util/cbfstool: Add optional argument ibb
......................................................................
Patch Set 23: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/29744
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idb4857c894b9ee1edc464c0a1216cdda29937bbd
Gerrit-Change-Number: 29744
Gerrit-PatchSet: 23
Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Amol N Sukerkar <amol.n.sukerkar(a)intel.com>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Jens Drenhaus <jens.drenhaus(a)9elements.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Kai Michaelis <kai.michaelis(a)9elements.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Roy Wen <rgzwen(a)arista.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Fri, 18 Oct 2019 14:44:01 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35626 )
Change subject: superio: add support for IT8380
......................................................................
Patch Set 3: Code-Review+1
(1 comment)
looks good to me, but the board using this currently doesn't pass the build test yet, so only +1 for now
https://review.coreboot.org/c/coreboot/+/35626/2/src/superio/ite/Makefile.i…
File src/superio/ite/Makefile.inc:
https://review.coreboot.org/c/coreboot/+/35626/2/src/superio/ite/Makefile.i…
PS2, Line 36: subdirs-y += it8380
> please put this at the beginning of this block, so that the list is sorted
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/35626
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ife2bafa073d714d58756510018632e97d86aa280
Gerrit-Change-Number: 35626
Gerrit-PatchSet: 3
Gerrit-Owner: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Fri, 18 Oct 2019 14:04:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-MessageType: comment
Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36119 )
Change subject: superio/smsc: Restore sio1036
......................................................................
superio/smsc: Restore sio1036
Change d3a1a417 "src/superio: Remove unused superio chips" removed
all unused devices except for ones used on mainboards still under
review. The SMSC 1036 was inadvertenly also removed as well. This
device is used in debug cards that may be connected to AMD CRBs.
This patch restores the smsc1036 directory as-is and then corrects
the following lint messages.
* WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
* ERROR: else should follow close brace '}'
* WARNING: braces {} are not necessary for single statement blocks
Change-Id: I851826e12032f802b9b2ff86d5a0eb99871bee6d
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
---
A src/superio/smsc/sio1036/Kconfig
A src/superio/smsc/sio1036/Makefile.inc
A src/superio/smsc/sio1036/sio1036.h
A src/superio/smsc/sio1036/sio1036_early_init.c
A src/superio/smsc/sio1036/superio.c
5 files changed, 213 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/36119/1
diff --git a/src/superio/smsc/sio1036/Kconfig b/src/superio/smsc/sio1036/Kconfig
new file mode 100644
index 0000000..df519de
--- /dev/null
+++ b/src/superio/smsc/sio1036/Kconfig
@@ -0,0 +1,18 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2009 Ronald G. Minnich
+## Copyright (C) 2012 Advanced Micro Devices, Inc.
+##
+## 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.
+##
+
+config SUPERIO_SMSC_SIO1036
+ bool
diff --git a/src/superio/smsc/sio1036/Makefile.inc b/src/superio/smsc/sio1036/Makefile.inc
new file mode 100644
index 0000000..e9fdae2
--- /dev/null
+++ b/src/superio/smsc/sio1036/Makefile.inc
@@ -0,0 +1,18 @@
+#
+# This file is part of the coreboot project.
+#
+# Copyright (C) 2012 Advanced Micro Devices, Inc.
+#
+# 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-$(CONFIG_SUPERIO_SMSC_SIO1036) += sio1036_early_init.c
+romstage-$(CONFIG_SUPERIO_SMSC_SIO1036) += sio1036_early_init.c
+ramstage-$(CONFIG_SUPERIO_SMSC_SIO1036) += superio.c
diff --git a/src/superio/smsc/sio1036/sio1036.h b/src/superio/smsc/sio1036/sio1036.h
new file mode 100644
index 0000000..610beba
--- /dev/null
+++ b/src/superio/smsc/sio1036/sio1036.h
@@ -0,0 +1,30 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2012 Advanced Micro Devices, Inc.
+ *
+ * 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.
+ */
+
+#ifndef SUPERIO_SMSC_SIO1306_H
+#define SUPERIO_SMSC_SIO1306_H
+
+#define SIO1036_SP1 0 /* Com1 */
+
+#define UART_POWER_DOWN (1 << 7)
+#define LPT_POWER_DOWN (1 << 2)
+#define IR_OUTPUT_MUX (1 << 6)
+
+#include <device/pnp_type.h>
+#include <stdint.h>
+
+void sio1036_enable_serial(pnp_devfn_t dev, u16 iobase);
+
+#endif /* SUPERIO_SMSC_SIO1306_H */
diff --git a/src/superio/smsc/sio1036/sio1036_early_init.c b/src/superio/smsc/sio1036/sio1036_early_init.c
new file mode 100644
index 0000000..26a2a3e
--- /dev/null
+++ b/src/superio/smsc/sio1036/sio1036_early_init.c
@@ -0,0 +1,95 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2012 Advanced Micro Devices, Inc.
+ *
+ * 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.
+ */
+
+/* Pre-RAM driver for the SMSC KBC1100 Super I/O chip */
+
+#include <arch/io.h>
+#include <device/pnp_ops.h>
+#include <stdint.h>
+
+#include "sio1036.h"
+
+static inline void sio1036_enter_conf_state(pnp_devfn_t dev)
+{
+ u8 port = dev >> 8;
+ outb(0x55, port);
+}
+
+static inline void sio1036_exit_conf_state(pnp_devfn_t dev)
+{
+ u8 port = dev >> 8;
+ outb(0xaa, port);
+}
+
+/* Detect SMSC SIO1036 LPC Debug Card status */
+static u8 detect_sio1036_chip(unsigned int port)
+{
+ pnp_devfn_t dev = PNP_DEV(port, SIO1036_SP1);
+ u8 data;
+
+ sio1036_enter_conf_state(dev);
+ data = pnp_read_config(dev, 0x0D);
+ sio1036_exit_conf_state(dev);
+
+ /* Detect SMSC SIO1036 chip */
+ if (data == 0x82) {
+ /* Found SMSC SIO1036 chip */
+ return 0;
+ } else {
+ return 1;
+ };
+}
+
+void sio1036_enable_serial(pnp_devfn_t dev, u16 iobase)
+{
+ unsigned int port = dev >> 8;
+
+ if (detect_sio1036_chip(port) != 0)
+ return;
+
+ sio1036_enter_conf_state(dev);
+
+ /* Enable SMSC UART 0 */
+ /* Valid configuration cycle */
+ pnp_write_config(dev, 0x00, 0x28);
+
+ /* PP power/mode/cr lock */
+ pnp_write_config(dev, 0x01, 0x98 | LPT_POWER_DOWN);
+ pnp_write_config(dev, 0x02, 0x08 | UART_POWER_DOWN);
+
+ /*Auto power management*/
+ pnp_write_config(dev, 0x07, 0x00);
+
+ /*ECP FIFO threhod */
+ pnp_write_config(dev, 0x0A, 0x00 | IR_OUTPUT_MUX);
+
+ /*GPIO direction register 2 */
+ pnp_write_config(dev, 0x033, 0x00);
+
+ /*UART Mode */
+ pnp_write_config(dev, 0x0C, 0x02);
+
+ /* GPIO polarity regisgter 2 */
+ pnp_write_config(dev, 0x034, 0x00);
+
+ /* Enable SMSC UART 0 */
+ /*Set base io address */
+ pnp_write_config(dev, 0x25, (u8)(iobase >> 2));
+
+ /* Set UART IRQ onto 0x04 */
+ pnp_write_config(dev, 0x28, 0x04);
+
+ sio1036_exit_conf_state(dev);
+}
diff --git a/src/superio/smsc/sio1036/superio.c b/src/superio/smsc/sio1036/superio.c
new file mode 100644
index 0000000..dc8a551
--- /dev/null
+++ b/src/superio/smsc/sio1036/superio.c
@@ -0,0 +1,52 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2012 Advanced Micro Devices, Inc.
+ *
+ * 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.
+ */
+
+/* RAM driver for the SMSC SIO1036 Super I/O chip */
+
+#include <device/device.h>
+#include <device/pnp.h>
+#include <superio/conf_mode.h>
+#include <stdlib.h>
+
+#include "sio1036.h"
+
+static void sio1036_init(struct device *dev)
+{
+ if (!dev->enabled)
+ return;
+}
+
+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 = sio1036_init,
+ .ops_pnp_mode = &pnp_conf_mode_55_aa,
+};
+
+static struct pnp_info pnp_dev_info[] = {
+ { NULL, SIO1036_SP1, PNP_IO0 | PNP_IRQ0, 0x07f8, },
+};
+
+static void enable_dev(struct device *dev)
+{
+ pnp_enable_devices(dev, &ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
+}
+
+struct chip_operations superio_smsc_sio1036_ops = {
+ CHIP_NAME("SMSC SIO1036 Super I/O")
+ .enable_dev = enable_dev
+};
--
To view, visit https://review.coreboot.org/c/coreboot/+/36119
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I851826e12032f802b9b2ff86d5a0eb99871bee6d
Gerrit-Change-Number: 36119
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange
Hello Angel Pons, Arthur Heymans,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/libgfxinit/+/35999
to review the following change.
Change subject: gma: Fix GTT size reading for Gen8+
......................................................................
gma: Fix GTT size reading for Gen8+
It seems the GTT size is not given in MiB any more but as a power
of 2 of MiB.
Change-Id: I13e40ad1d389d389c6fab6b2b42895179649f6da
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M common/hw-gfx-gma.adb
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/99/35999/1
diff --git a/common/hw-gfx-gma.adb b/common/hw-gfx-gma.adb
index 3221e3e..0d4cf15 100644
--- a/common/hw-gfx-gma.adb
+++ b/common/hw-gfx-gma.adb
@@ -690,8 +690,10 @@
function Stolen_Size_Gen6 (GGC : Word16) return Stolen_Size_Range is
(Stolen_Size_Range (Shift_Right (GGC, 3) and 16#1f#) * 32 * 2 ** 20);
+ function GGMS_Gen8 (GGC : Word16) return Natural is
+ (Natural (Shift_Right (GGC, 6) and 16#03#));
function GTT_Size_Gen8 (GGC : Word16) return Natural is
- (Natural (Shift_Right (GGC, 6) and 16#03#) * 2 ** 20);
+ (if GGMS_Gen8 (GGC) /= 0 then 2 ** (20 + GGMS_Gen8 (GGC)) else 0);
function GMS_Gen8 (GGC : Word16) return Stolen_Size_Range is
(Stolen_Size_Range (Shift_Right (GGC, 8) and 16#ff#));
--
To view, visit https://review.coreboot.org/c/libgfxinit/+/35999
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-Change-Id: I13e40ad1d389d389c6fab6b2b42895179649f6da
Gerrit-Change-Number: 35999
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange
Nico Huber has submitted this change. ( https://review.coreboot.org/c/libgfxinit/+/35720 )
Change subject: gma display_probing: Add Hotplug_Events()
......................................................................
gma display_probing: Add Hotplug_Events()
The Hotplug_Events() procedure returns a list of ports with hotplug
events. The events are automatically cleared, so it's the caller's
responsibility to act accordingly (e.g. run Update_Outputs() with
updated configurations).
Change-Id: Iff5e812d3119bfd44f5ea58e5086aa3ccba7c0bf
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
Reviewed-on: https://review.coreboot.org/c/libgfxinit/+/35720
Reviewed-by: Arthur Heymans <arthur(a)aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus(a)gmail.com>
Reviewed-by: Matt DeVillier <matt.devillier(a)gmail.com>
---
M common/hw-gfx-gma-display_probing.adb
M common/hw-gfx-gma-display_probing.ads
2 files changed, 19 insertions(+), 0 deletions(-)
Approvals:
Nico Huber: Verified
Matt DeVillier: Looks good to me, but someone else must approve
Arthur Heymans: Looks good to me, approved
Angel Pons: Looks good to me, approved
diff --git a/common/hw-gfx-gma-display_probing.adb b/common/hw-gfx-gma-display_probing.adb
index 74e2ad8..0d7cd37 100644
--- a/common/hw-gfx-gma-display_probing.adb
+++ b/common/hw-gfx-gma-display_probing.adb
@@ -19,6 +19,7 @@
with HW.GFX.GMA.I2C;
with HW.GFX.GMA.DP_Aux_Ch;
with HW.GFX.GMA.Panel;
+with HW.GFX.GMA.Port_Detect;
with HW.GFX.GMA.Power_And_Clocks;
with HW.Debug;
@@ -215,4 +216,20 @@
end if;
end Scan_Ports;
+ procedure Hotplug_Events (Ports : out Port_List)
+ is
+ I : Port_List_Range := Port_List_Range'First;
+ Detected : Boolean;
+ begin
+ Ports := (others => Disabled);
+ for P in Active_Port_Type loop
+ Port_Detect.Hotplug_Detect (P, Detected);
+ if Detected then
+ Ports (I) := P;
+ exit when I = Port_List_Range'Last;
+ I := Port_List_Range'Succ (I);
+ end if;
+ end loop;
+ end Hotplug_Events;
+
end HW.GFX.GMA.Display_Probing;
diff --git a/common/hw-gfx-gma-display_probing.ads b/common/hw-gfx-gma-display_probing.ads
index e51de88..5e8abe4 100644
--- a/common/hw-gfx-gma-display_probing.ads
+++ b/common/hw-gfx-gma-display_probing.ads
@@ -35,4 +35,6 @@
Max_Pipe : in Pipe_Index := Pipe_Index'Last;
Keep_Power : in Boolean := False);
+ procedure Hotplug_Events (Ports : out Port_List);
+
end HW.GFX.GMA.Display_Probing;
--
To view, visit https://review.coreboot.org/c/libgfxinit/+/35720
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-Change-Id: Iff5e812d3119bfd44f5ea58e5086aa3ccba7c0bf
Gerrit-Change-Number: 35720
Gerrit-PatchSet: 7
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Thomas Heijligen <src(a)posteo.de>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: merged