Chen Wisley has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42929 )
Change subject: mb/google/dedede/var/drawcia: support internal usb camera
......................................................................
mb/google/dedede/var/drawcia: support internal usb camera
BUG=none
TEST=build drawcia, and check camera can be regconized
Change-Id: I67bee9773b53451653abd76088d1d4062fe3da8f
Signed-off-by: Wisley Chen <wisley.chen(a)quantatw.com>
---
M src/mainboard/google/dedede/variants/drawcia/overridetree.cb
1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/42929/1
diff --git a/src/mainboard/google/dedede/variants/drawcia/overridetree.cb b/src/mainboard/google/dedede/variants/drawcia/overridetree.cb
index 38690f7..bc10e1f 100644
--- a/src/mainboard/google/dedede/variants/drawcia/overridetree.cb
+++ b/src/mainboard/google/dedede/variants/drawcia/overridetree.cb
@@ -1,5 +1,8 @@
chip soc/intel/jasperlake
+ # USB Port Configuration
+ register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Camera
+
# Intel Common SoC Config
#+-------------------+---------------------------+
#| Field | Value |
@@ -37,6 +40,17 @@
}"
device domain 0 on
+ device pci 14.0 on
+ chip drivers/usb/acpi
+ device usb 0.0 on
+ chip drivers/usb/acpi
+ register "desc" = ""Camera""
+ register "type" = "UPC_TYPE_INTERNAL"
+ device usb 2.5 on end
+ end
+ end
+ end
+ end # USB xHCI
device pci 15.0 on
chip drivers/i2c/generic
register "hid" = ""ELAN0000""
--
To view, visit https://review.coreboot.org/c/coreboot/+/42929
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I67bee9773b53451653abd76088d1d4062fe3da8f
Gerrit-Change-Number: 42929
Gerrit-PatchSet: 1
Gerrit-Owner: Chen Wisley <wisley.chen(a)quantatw.com>
Gerrit-MessageType: newchange
Johnny Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42903 )
Change subject: mb/ocp/deltalake: Use VPD data to configure FSP UPD at romstage
......................................................................
mb/ocp/deltalake: Use VPD data to configure FSP UPD at romstage
Read VPD variable 'FSP_LOG' to decide enabling FSP log or not.
With VPD_RW_THEN_RO, VPD_RW takes precedence over VPD_RO, and
would be set to enabled if both places cannot find it.
Tested=On OCP Delta Lake, use vpd to create and set FSP_LOG
and verified the results are expected.
Change-Id: I0b3463acedd90e8e17f7e4eedc2fab63644f87e1
Signed-off-by: Johnny Lin <johnny_lin(a)wiwynn.com>
---
M src/mainboard/ocp/deltalake/romstage.c
1 file changed, 24 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/42903/1
diff --git a/src/mainboard/ocp/deltalake/romstage.c b/src/mainboard/ocp/deltalake/romstage.c
index f56f7c7..5bca0bd 100644
--- a/src/mainboard/ocp/deltalake/romstage.c
+++ b/src/mainboard/ocp/deltalake/romstage.c
@@ -2,6 +2,7 @@
#include <console/console.h>
#include <drivers/ipmi/ipmi_kcs.h>
+#include <drivers/vpd/vpd.h>
#include <fsp/api.h>
#include <FspmUpd.h>
#include <soc/romstage.h>
@@ -9,6 +10,28 @@
#include "cpxsp_dl_iio.h"
#include "ipmi.h"
+/* Define the VPD keys for UPD variables that can be overwritten */
+#define FSP_LOG "FSP_LOG"
+
+/*
+ * Search for VPD_RW first then VPD_RO for UPD config variables,
+ * overwrites them from VPD if it's found.
+ */
+static void mainboard_config_upd(FSPM_UPD *mupd)
+{
+ uint8_t val;
+
+ /* Send FSP log message to SOL */
+ if (vpd_get_bool(FSP_LOG, VPD_RW_THEN_RO, &val))
+ mupd->FspmConfig.SerialIoUartDebugEnable = val;
+ else {
+ printk(BIOS_ERR, "Failed to get VPD %s, default set SerialIoUartDebugEnable to 1\n",
+ FSP_LOG);
+ mupd->FspmConfig.SerialIoUartDebugEnable = 1;
+ }
+ mupd->FspmConfig.SerialIoUartDebugIoBase = 0x2f8;
+}
+
/* Update bifurcation settings according to different Configs */
static void oem_update_iio(FSPM_UPD *mupd)
{
@@ -54,10 +77,6 @@
static void mainboard_config_iio(FSPM_UPD *mupd)
{
- /* Send FSP log message to SOL */
- mupd->FspmConfig.SerialIoUartDebugEnable = 1;
- mupd->FspmConfig.SerialIoUartDebugIoBase = 0x2f8;
-
/* Enable only PCH: PCIE[8:11] */
for (uint8_t i = 0; i < 20; i++) {
if (i >= 8 && i <= 11)
@@ -102,4 +121,5 @@
mainboard_config_gpios(mupd);
mainboard_config_iio(mupd);
+ mainboard_config_upd(mupd);
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/42903
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0b3463acedd90e8e17f7e4eedc2fab63644f87e1
Gerrit-Change-Number: 42903
Gerrit-PatchSet: 1
Gerrit-Owner: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-MessageType: newchange
John Zhao has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/41762 )
Change subject: soc/intel/tigerlake: Add Type-C IOM device
......................................................................
soc/intel/tigerlake: Add Type-C IOM device
This adds Type-C IO Manageability Engine device with HID INTC1072.
It provides MMIO range from 0xfbc10000 with size 0x1600. Kernel IOM
driver refers to this memory resource for port operations.
BUG=:b:156016218
TEST=Built and booted on Volteer.
Signed-off-by: John Zhao <john.zhao(a)intel.com>
Change-Id: Ic733e831643bda6e052edf797ba0e6206eb4ddd3
---
M src/soc/intel/tigerlake/acpi/tcss.asl
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/62/41762/1
diff --git a/src/soc/intel/tigerlake/acpi/tcss.asl b/src/soc/intel/tigerlake/acpi/tcss.asl
index abdcb51..6ae5582 100644
--- a/src/soc/intel/tigerlake/acpi/tcss.asl
+++ b/src/soc/intel/tigerlake/acpi/tcss.asl
@@ -130,6 +130,18 @@
Scope (\_SB.PCI0)
{
+ Device (IOM)
+ {
+ Name (_HID, "INTC1072")
+ Name (_DDN, "Intel(R) Tiger Lake IO Manageability Engine")
+ /*
+ * IOM preserved MMIO range from 0xFBC10000 to 0xFBC11600.
+ */
+ Name (_CRS, ResourceTemplate () {
+ Memory32Fixed (ReadWrite, IOM_BASE_ADDRESS, IOM_BASE_SIZE)
+ })
+ }
+
/*
* Operation region defined to access the IOM REGBAR. Get the MCHBAR in offset
* 0x48 in B0:D0:F0. REGBAR Base address is in offset 0x7110 of MCHBAR.
--
To view, visit https://review.coreboot.org/c/coreboot/+/41762
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic733e831643bda6e052edf797ba0e6206eb4ddd3
Gerrit-Change-Number: 41762
Gerrit-PatchSet: 1
Gerrit-Owner: John Zhao <john.zhao(a)intel.com>
Gerrit-MessageType: newchange
John Zhao has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/41759 )
Change subject: soc/intel/tigerlake: Configure Type-C IOM base address and size
......................................................................
soc/intel/tigerlake: Configure Type-C IOM base address and size
This adds Type-C IO Manageability engine base address and size. IOM
register base is in offset 0x7110 from MCHBAR and its port ID is 0xc1.
IOM has base address 0xfbc10000 with size 0x1600.
BUG=:b:156016218
TEST=Built and booted on Volteer.
Signed-off-by: John Zhao <john.zhao(a)intel.com>
Change-Id: I70d88ba318087f7acacd1ee84609c9db5b65f907
---
M src/soc/intel/tigerlake/include/soc/iomap.h
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/59/41759/1
diff --git a/src/soc/intel/tigerlake/include/soc/iomap.h b/src/soc/intel/tigerlake/include/soc/iomap.h
index 282092f..cd964f0 100644
--- a/src/soc/intel/tigerlake/include/soc/iomap.h
+++ b/src/soc/intel/tigerlake/include/soc/iomap.h
@@ -84,6 +84,8 @@
#define EARLY_I2C_BASE_ADDRESS 0xfe020000
#define EARLY_I2C_BASE(x) (EARLY_I2C_BASE_ADDRESS + (0x2000 * (x)))
+#define IOM_BASE_ADDRESS 0xfbc10000
+#define IOM_BASE_SIZE 0x1600
/*
* I/O port address space
--
To view, visit https://review.coreboot.org/c/coreboot/+/41759
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I70d88ba318087f7acacd1ee84609c9db5b65f907
Gerrit-Change-Number: 41759
Gerrit-PatchSet: 1
Gerrit-Owner: John Zhao <john.zhao(a)intel.com>
Gerrit-MessageType: newchange