Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49183 )
Change subject: mb/asrock/h110m: Drop DEVICETREE from Kconfig
......................................................................
mb/asrock/h110m: Drop DEVICETREE from Kconfig
Drop DEVICETREE from Kconfig since its value is the default.
Built with BUILD_TIMELESS=1, coreboot.rom remains the same.
Change-Id: Idbcd49cca6494ae2da0f364c24638d7ca11911da
Signed-off-by: Felix Singer <felixsinger(a)posteo.net>
---
M src/mainboard/asrock/h110m/Kconfig
1 file changed, 0 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/83/49183/1
diff --git a/src/mainboard/asrock/h110m/Kconfig b/src/mainboard/asrock/h110m/Kconfig
index d923c30..c4b48c3 100644
--- a/src/mainboard/asrock/h110m/Kconfig
+++ b/src/mainboard/asrock/h110m/Kconfig
@@ -33,10 +33,6 @@
int
default 8
-config DEVICETREE
- string
- default "devicetree.cb"
-
config PRERAM_CBMEM_CONSOLE_SIZE
hex
default 0xd00
--
To view, visit https://review.coreboot.org/c/coreboot/+/49183
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idbcd49cca6494ae2da0f364c24638d7ca11911da
Gerrit-Change-Number: 49183
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-MessageType: newchange
Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49138 )
Change subject: mb/clevo/cml-u: Drop VGA_BIOS_FILE from Kconfig
......................................................................
mb/clevo/cml-u: Drop VGA_BIOS_FILE from Kconfig
It doesn't make sense to configure that filename in Kconfig, since the
filename can be changed either and is chosen by the user. So remove it.
Change-Id: I3eed05637da29096bc1d134505d7335db5db1439
Signed-off-by: Felix Singer <felixsinger(a)posteo.net>
---
M src/mainboard/clevo/cml-u/Kconfig
1 file changed, 0 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/49138/1
diff --git a/src/mainboard/clevo/cml-u/Kconfig b/src/mainboard/clevo/cml-u/Kconfig
index f8bf1ba..5653fb4 100644
--- a/src/mainboard/clevo/cml-u/Kconfig
+++ b/src/mainboard/clevo/cml-u/Kconfig
@@ -66,10 +66,6 @@
int
default 512
-config VGA_BIOS_FILE
- string
- default "pci8086,9b41.rom"
-
config VGA_BIOS_ID
string
default "8086,9b41"
--
To view, visit https://review.coreboot.org/c/coreboot/+/49138
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3eed05637da29096bc1d134505d7335db5db1439
Gerrit-Change-Number: 49138
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-MessageType: newchange
Marco Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48791 )
Change subject: ec/google/chromeec: add SSFC CBI support
......................................................................
ec/google/chromeec: add SSFC CBI support
An API is added to get SSFC value from cros EC.
BUG=b:174118027
BRANCH=octopus
TEST=check SSFC value from EC is correct compared to value in CBI
Change-Id: Ifd521514bbc2e90c789f3760b72e8326e614e2b1
---
M src/ec/google/chromeec/ec.c
M src/ec/google/chromeec/ec.h
2 files changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/48791/1
diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c
index ed7f97d..fdbe582 100644
--- a/src/ec/google/chromeec/ec.c
+++ b/src/ec/google/chromeec/ec.c
@@ -863,6 +863,11 @@
return cbi_get_uint32(version, CBI_TAG_BOARD_VERSION);
}
+int google_chromeec_cbi_get_ssfc(uint32_t *ssfc)
+{
+ return cbi_get_uint32(ssfc, CBI_TAG_SSFC);
+}
+
static int cbi_get_string(char *buf, size_t bufsize, uint32_t tag)
{
struct ec_params_get_cbi params = {
diff --git a/src/ec/google/chromeec/ec.h b/src/ec/google/chromeec/ec.h
index c3c456f..7c41f04 100644
--- a/src/ec/google/chromeec/ec.h
+++ b/src/ec/google/chromeec/ec.h
@@ -89,6 +89,7 @@
/* version may be stored in CBI as a smaller integer width, but the EC code
handles it correctly. */
int google_chromeec_cbi_get_board_version(uint32_t *version);
+int google_chromeec_cbi_get_ssfc(uint32_t *ssfc);
#define CROS_SKU_UNKNOWN 0xFFFFFFFF
#define CROS_SKU_UNPROVISIONED 0x7FFFFFFF
--
To view, visit https://review.coreboot.org/c/coreboot/+/48791
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ifd521514bbc2e90c789f3760b72e8326e614e2b1
Gerrit-Change-Number: 48791
Gerrit-PatchSet: 1
Gerrit-Owner: Marco Chen <marcochen(a)google.com>
Gerrit-MessageType: newchange
Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49211 )
Change subject: soc/intel/common/uart: Restrict scope of uart_common_init to uart.c
......................................................................
soc/intel/common/uart: Restrict scope of uart_common_init to uart.c
uart_common_init is not used outside of
soc/intel/common/block/uart.c. This change restricts the scope to this
file and drops the declaration from uart.h
Change-Id: I499a53506f9b2e91ecc7334bf9b023d342e802fc
Signed-off-by: Furquan Shaikh <furquan(a)google.com>
---
M src/soc/intel/common/block/include/intelblocks/uart.h
M src/soc/intel/common/block/uart/uart.c
2 files changed, 1 insertion(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/49211/1
diff --git a/src/soc/intel/common/block/include/intelblocks/uart.h b/src/soc/intel/common/block/include/intelblocks/uart.h
index 87fdf68..fd65f4c 100644
--- a/src/soc/intel/common/block/include/intelblocks/uart.h
+++ b/src/soc/intel/common/block/include/intelblocks/uart.h
@@ -24,12 +24,6 @@
*/
/*
- * Common routine to initialize UART controller PCI config space, take it out of
- * reset and configure M/N dividers.
- */
-void uart_common_init(const struct device *dev, uintptr_t baseaddr);
-
-/*
* Check if UART debug controller is initialized
* Returns:
* true = If debug controller PCI config space is initialized and device is
diff --git a/src/soc/intel/common/block/uart/uart.c b/src/soc/intel/common/block/uart/uart.c
index 75c16d4..1e205ef 100644
--- a/src/soc/intel/common/block/uart/uart.c
+++ b/src/soc/intel/common/block/uart/uart.c
@@ -58,7 +58,7 @@
return UART_CONSOLE_INVALID_INDEX;
}
-void uart_common_init(const struct device *device, uintptr_t baseaddr)
+static void uart_common_init(const struct device *device, uintptr_t baseaddr)
{
#if defined(__SIMPLE_DEVICE__)
pci_devfn_t dev = PCI_BDF(device);
--
To view, visit https://review.coreboot.org/c/coreboot/+/49211
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I499a53506f9b2e91ecc7334bf9b023d342e802fc
Gerrit-Change-Number: 49211
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange
Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49210 )
Change subject: soc/intel/common: Pass in pci_devfn_t into lpss_set_power
......................................................................
soc/intel/common: Pass in pci_devfn_t into lpss_set_power
This change updates the parameter passed into `lpss_set_power()` from
struct device * to pci_devfn_t. This allows the users in the early
stages to use pci_devfn_t instead of having to walk the device tree
to get a pointer to the relevant device structure. It is important for
optimizing out unnecessary components of the device tree from the
early stages.
Change-Id: Ic9e32794da65348fe2a0a2791db47ab83b64cb0f
Signed-off-by: Furquan Shaikh <furquan(a)google.com>
---
M src/soc/intel/common/block/gspi/gspi.c
M src/soc/intel/common/block/i2c/i2c.c
M src/soc/intel/common/block/include/intelblocks/lpss.h
M src/soc/intel/common/block/lpss/lpss.c
M src/soc/intel/common/block/uart/uart.c
5 files changed, 10 insertions(+), 26 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/49210/1
diff --git a/src/soc/intel/common/block/gspi/gspi.c b/src/soc/intel/common/block/gspi/gspi.c
index 8363713..395a14d 100644
--- a/src/soc/intel/common/block/gspi/gspi.c
+++ b/src/soc/intel/common/block/gspi/gspi.c
@@ -448,7 +448,6 @@
int devfn;
uint32_t cs_ctrl, sscr0, sscr1, clocks, sitf, sirf, pol;
struct gspi_ctrlr_params params, *p = ¶ms;
- const struct device *device;
/* Only chip select 0 is supported. */
if (dev->cs != 0) {
@@ -468,14 +467,9 @@
}
devfn = gspi_soc_bus_to_devfn(p->gspi_bus);
- /*
- * devfn is already validated as part of gspi_ctrlr_params_init.
- * No need to revalidate it again.
- */
- device = pcidev_path_on_root(devfn);
/* Ensure controller is in D0 state */
- lpss_set_power_state(device, STATE_D0);
+ lpss_set_power_state(PCI_DEV(0, PCI_SLOT(devfn), PCI_FUNC(devfn)), STATE_D0);
/* Take controller out of reset, keeping DMA in reset. */
gspi_write_mmio_reg(p, RESETS, CTRLR_ACTIVE | DMA_RESET);
diff --git a/src/soc/intel/common/block/i2c/i2c.c b/src/soc/intel/common/block/i2c/i2c.c
index 5aa7729..57e5d5e 100644
--- a/src/soc/intel/common/block/i2c/i2c.c
+++ b/src/soc/intel/common/block/i2c/i2c.c
@@ -38,7 +38,6 @@
static int lpss_i2c_early_init_bus(unsigned int bus)
{
const struct dw_i2c_bus_config *config;
- const struct device *tree_dev;
pci_devfn_t dev;
int devfn;
uintptr_t base;
@@ -52,11 +51,6 @@
/* Look up the controller device in the devicetree */
dev = PCI_DEV(0, PCI_SLOT(devfn), PCI_FUNC(devfn));
- tree_dev = pcidev_path_on_root(devfn);
- if (!tree_dev || !tree_dev->enabled) {
- printk(BIOS_ERR, "I2C%u device not enabled\n", bus);
- return -1;
- }
/* Skip if not enabled for early init */
config = dw_i2c_get_soc_cfg(bus);
@@ -75,7 +69,7 @@
lpss_reset_release(base);
/* Ensure controller is in D0 state */
- lpss_set_power_state(tree_dev, STATE_D0);
+ lpss_set_power_state(dev, STATE_D0);
/* Initialize the controller */
if (dw_i2c_init(bus, config) < 0) {
@@ -153,7 +147,7 @@
return;
/* Ensure controller is in D0 state */
- lpss_set_power_state(dev, STATE_D0);
+ lpss_set_power_state(PCI_BDF(dev), STATE_D0);
/* Take device out of reset if its not done before */
if (lpss_is_controller_in_reset(base_address))
diff --git a/src/soc/intel/common/block/include/intelblocks/lpss.h b/src/soc/intel/common/block/include/intelblocks/lpss.h
index 145857c..8d22e7a 100644
--- a/src/soc/intel/common/block/include/intelblocks/lpss.h
+++ b/src/soc/intel/common/block/include/intelblocks/lpss.h
@@ -25,7 +25,7 @@
bool lpss_is_controller_in_reset(uintptr_t base);
/* Set controller power state to D0 or D3*/
-void lpss_set_power_state(const struct device *dev, enum lpss_pwr_state state);
+void lpss_set_power_state(pci_devfn_t devfn, enum lpss_pwr_state state);
/*
* Handler to get list of LPSS controllers. The SOC is expected to send out a
diff --git a/src/soc/intel/common/block/lpss/lpss.c b/src/soc/intel/common/block/lpss/lpss.c
index 74c7aa1..6e33c0f 100644
--- a/src/soc/intel/common/block/lpss/lpss.c
+++ b/src/soc/intel/common/block/lpss/lpss.c
@@ -65,16 +65,12 @@
}
/* Set controller power state to D0 or D3 */
-void lpss_set_power_state(const struct device *dev, enum lpss_pwr_state state)
+void lpss_set_power_state(pci_devfn_t devfn, enum lpss_pwr_state state)
{
-#if defined(__SIMPLE_DEVICE__)
- unsigned int devfn = dev->path.pci.devfn;
- pci_devfn_t lpss_dev = PCI_DEV(0, PCI_SLOT(devfn), PCI_FUNC(devfn));
-#else
- const struct device *lpss_dev = dev;
-#endif
-
- pci_update_config8(lpss_dev, PME_CTRL_STATUS, ~POWER_STATE_MASK, state);
+ uint8_t reg8 = pci_s_read_config8(devfn, PME_CTRL_STATUS);
+ reg8 &= ~POWER_STATE_MASK;
+ reg8 |= state;
+ pci_s_write_config8(devfn, PME_CTRL_STATUS, reg8);
}
bool is_dev_lpss(const struct device *dev)
diff --git a/src/soc/intel/common/block/uart/uart.c b/src/soc/intel/common/block/uart/uart.c
index 142a936..75c16d4 100644
--- a/src/soc/intel/common/block/uart/uart.c
+++ b/src/soc/intel/common/block/uart/uart.c
@@ -26,7 +26,7 @@
static void uart_lpss_init(const struct device *dev, uintptr_t baseaddr)
{
/* Ensure controller is in D0 state */
- lpss_set_power_state(dev, STATE_D0);
+ lpss_set_power_state(PCI_BDF(dev), STATE_D0);
/* Take UART out of reset */
lpss_reset_release(baseaddr);
--
To view, visit https://review.coreboot.org/c/coreboot/+/49210
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic9e32794da65348fe2a0a2791db47ab83b64cb0f
Gerrit-Change-Number: 49210
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange
John Zhao has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49052 )
Change subject: soc/intel/tigerlake: Enable USB2 port reset message on Type-C ports
......................................................................
soc/intel/tigerlake: Enable USB2 port reset message on Type-C ports
USB3 is in CPU and USB2 in PCH on Tigerlake. Cross die messaging is
implemented between CPU and PCH through the IOSF SB bridge. a PCH xHCI
USB2 port reset event issued by the xHCI driver shall trigger a message
upstream to CPU to wake it from the low power state which allows a USB3
device that downgraded to USB2 to upgrade back to USB3.
BUG=b:176575892
TEST=Built and booted to kernel on Voxel board.
Signed-off-by: John Zhao <john.zhao(a)intel.com>
Change-Id: I672f30a117980bc10bd71e9b77c5fa76286b9f5f
---
M src/soc/intel/tigerlake/fsp_params.c
M src/soc/intel/tigerlake/include/soc/usb.h
2 files changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/49052/1
diff --git a/src/soc/intel/tigerlake/fsp_params.c b/src/soc/intel/tigerlake/fsp_params.c
index ed34897..295f789 100644
--- a/src/soc/intel/tigerlake/fsp_params.c
+++ b/src/soc/intel/tigerlake/fsp_params.c
@@ -159,6 +159,9 @@
params->Usb2OverCurrentPin[i] = config->usb2_ports[i].ocpin;
else
params->Usb2OverCurrentPin[i] = 0xff;
+
+ if (config->usb2_ports[i].type_c)
+ params->PortResetMessageEnable[i] = 1;
}
for (i = 0; i < ARRAY_SIZE(config->usb3_ports); i++) {
diff --git a/src/soc/intel/tigerlake/include/soc/usb.h b/src/soc/intel/tigerlake/include/soc/usb.h
index 69b5ca8..5dea4bf 100644
--- a/src/soc/intel/tigerlake/include/soc/usb.h
+++ b/src/soc/intel/tigerlake/include/soc/usb.h
@@ -31,6 +31,7 @@
uint8_t tx_emp_enable;
uint8_t pre_emp_bias;
uint8_t pre_emp_bit;
+ uint8_t type_c;
};
/* USB Overcurrent pins definition */
@@ -112,6 +113,7 @@
.tx_emp_enable = USB2_PRE_EMP_ON, \
.pre_emp_bias = USB2_BIAS_56P3MV, \
.pre_emp_bit = USB2_HALF_BIT_PRE_EMP, \
+ .type_c = 1, \
}
struct usb3_port_config {
--
To view, visit https://review.coreboot.org/c/coreboot/+/49052
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I672f30a117980bc10bd71e9b77c5fa76286b9f5f
Gerrit-Change-Number: 49052
Gerrit-PatchSet: 1
Gerrit-Owner: John Zhao <john.zhao(a)intel.com>
Gerrit-MessageType: newchange