Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32358
Change subject: mb/google/sarien: Enable UCSI device
......................................................................
mb/google/sarien: Enable UCSI device
Enable the UCSI driver in kconfig and add the device to the
mainboard devicetree with the specified path for the UCSI
device that is provided by the Wilco EC driver.
This was tested on a Sarien device with the linux kernel:
> cat /sys/class/typec/port0/usb_typec_revision
1.1
> cat /sys/class/typec/port0/port_type
[dual] source sink
Change-Id: I0fe33a8b63e04de883579a80aeb896b880da147a
Signed-off-by: Duncan Laurie <dlaurie(a)google.com>
---
M src/mainboard/google/sarien/Kconfig
M src/mainboard/google/sarien/variants/arcada/devicetree.cb
M src/mainboard/google/sarien/variants/sarien/devicetree.cb
3 files changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/32358/1
diff --git a/src/mainboard/google/sarien/Kconfig b/src/mainboard/google/sarien/Kconfig
index 9d658fa..6131149 100644
--- a/src/mainboard/google/sarien/Kconfig
+++ b/src/mainboard/google/sarien/Kconfig
@@ -7,6 +7,7 @@
select DRIVERS_INTEL_ISH if BOARD_GOOGLE_ARCADA
select DRIVERS_SPI_ACPI
select DRIVERS_USB_ACPI
+ select DRIVERS_USB_UCSI
select EC_GOOGLE_WILCO
select GENERIC_SPD_BIN
select GOOGLE_SMBIOS_MAINBOARD_VERSION
diff --git a/src/mainboard/google/sarien/variants/arcada/devicetree.cb b/src/mainboard/google/sarien/variants/arcada/devicetree.cb
index 9ecbf00..042d4f5 100644
--- a/src/mainboard/google/sarien/variants/arcada/devicetree.cb
+++ b/src/mainboard/google/sarien/variants/arcada/devicetree.cb
@@ -358,6 +358,10 @@
chip ec/google/wilco
device pnp 0c09.0 on end
end
+ chip drivers/usb/ucsi
+ register "path" = ""\\_SB.PCI0.LPCB.EC0.UCSI""
+ device pnp 0ca0.0 on end
+ end
end # LPC/eSPI
device pci 1f.1 on end # P2SB
device pci 1f.2 on end # Power Management Controller
diff --git a/src/mainboard/google/sarien/variants/sarien/devicetree.cb b/src/mainboard/google/sarien/variants/sarien/devicetree.cb
index 625655b..7b9f83e 100644
--- a/src/mainboard/google/sarien/variants/sarien/devicetree.cb
+++ b/src/mainboard/google/sarien/variants/sarien/devicetree.cb
@@ -391,6 +391,10 @@
chip ec/google/wilco
device pnp 0c09.0 on end
end
+ chip drivers/usb/ucsi
+ register "path" = ""\\_SB.PCI0.LPCB.EC0.UCSI""
+ device pnp 0ca0.0 on end
+ end
end # LPC/eSPI
device pci 1f.1 on end # P2SB
device pci 1f.2 on end # Power Management Controller
--
To view, visit https://review.coreboot.org/c/coreboot/+/32358
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0fe33a8b63e04de883579a80aeb896b880da147a
Gerrit-Change-Number: 32358
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-MessageType: newchange
Hello Nico Huber,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/31349
to review the following change.
Change subject: lib/bootblock: Sanitize CMOS after bootblock_*_early_init()
......................................................................
lib/bootblock: Sanitize CMOS after bootblock_*_early_init()
CMOS isn't used that early, but the chipset initialization may be
required to access it.
In one instance, Intel Apollo Lake, the sanitize_cmos() function
seems to hang if called before bootblock_soc_early_init(). The
missing step is fast_spi_early_init(). But even without, one might
expect sanitize_cmos() to return eventually (it didn't within
about 20min).
Change-Id: I6e1a029e4be7e109be43a3dad944bd7e05ea1f02
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
M src/lib/bootblock.c
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/49/31349/1
diff --git a/src/lib/bootblock.c b/src/lib/bootblock.c
index f2ada52..6b9ecbf 100644
--- a/src/lib/bootblock.c
+++ b/src/lib/bootblock.c
@@ -41,12 +41,12 @@
timestamps[i].entry_stamp);
}
- sanitize_cmos();
- cmos_post_init();
-
bootblock_soc_early_init();
bootblock_mainboard_early_init();
+ sanitize_cmos();
+ cmos_post_init();
+
if (IS_ENABLED(CONFIG_BOOTBLOCK_CONSOLE)) {
console_init();
exception_init();
--
To view, visit https://review.coreboot.org/c/coreboot/+/31349
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6e1a029e4be7e109be43a3dad944bd7e05ea1f02
Gerrit-Change-Number: 31349
Gerrit-PatchSet: 1
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-MessageType: newchange