Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45997 )
Change subject: soc/intel/common/block/acpi: Factor out common gfx.asl
......................................................................
soc/intel/common/block/acpi: Factor out common gfx.asl
This patch moves gfx.asl into common block acpi directory to
avoid duplicating the same ASL code block across SoC directory.
TEST=Able to build and boot CML platform.
1) Dump and disassemble DSDT, verify GFX0 device present inside
common gfx.asl is still there.
2) Verify no ACPI error seen while running 'dmesg` from console.
Signed-off-by: Subrata Banik <subrata.banik(a)intel.com>
Change-Id: Ie34181a6783d348265cf4299dec5c41e7f4f736f
---
M src/soc/intel/cannonlake/acpi/southbridge.asl
R src/soc/intel/common/block/acpi/acpi/gfx.asl
2 files changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/45997/1
diff --git a/src/soc/intel/cannonlake/acpi/southbridge.asl b/src/soc/intel/cannonlake/acpi/southbridge.asl
index 0c092e1..35dc196 100644
--- a/src/soc/intel/cannonlake/acpi/southbridge.asl
+++ b/src/soc/intel/cannonlake/acpi/southbridge.asl
@@ -17,7 +17,7 @@
#endif
/* GFX 00:02.0 */
-#include "gfx.asl"
+#include <soc/intel/common/block/acpi/acpi/gfx.asl>
/* LPC 0:1f.0 */
#include <soc/intel/common/block/acpi/acpi/lpc.asl>
diff --git a/src/soc/intel/cannonlake/acpi/gfx.asl b/src/soc/intel/common/block/acpi/acpi/gfx.asl
similarity index 100%
rename from src/soc/intel/cannonlake/acpi/gfx.asl
rename to src/soc/intel/common/block/acpi/acpi/gfx.asl
--
To view, visit https://review.coreboot.org/c/coreboot/+/45997
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie34181a6783d348265cf4299dec5c41e7f4f736f
Gerrit-Change-Number: 45997
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-MessageType: newchange
Hello Chris Wang,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/46041
to review the following change.
Change subject: soc/amd/picasso: Remove xhci0_force_gen1 from soc config
......................................................................
soc/amd/picasso: Remove xhci0_force_gen1 from soc config
To remvoe the xhci0_force_gen1 and use usb3_port_force_gen1 instead.
The xhci0_force_gen1 is used for force all port on xhci0 to USB3 GEN1.
Now variant can use the usb3_port_force_gen1 to custmzied which port
it needs to limit.
BUG=b:167651308
BRANCH=zork
TEST=Build, verify the USB3 speed in gen1
Signed-off-by: Chris Wang <chris.wang(a)amd.corp-partner.google.com>
Change-Id: If5f0c1f22d8c98c4461f09d074bf082c340b14d9
---
M src/mainboard/google/zork/variants/baseboard/devicetree_dalboz.cb
M src/mainboard/google/zork/variants/baseboard/devicetree_trembyle.cb
M src/soc/amd/picasso/chip.h
M src/soc/amd/picasso/fsp_params.c
4 files changed, 1 insertion(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/46041/1
diff --git a/src/mainboard/google/zork/variants/baseboard/devicetree_dalboz.cb b/src/mainboard/google/zork/variants/baseboard/devicetree_dalboz.cb
index 4004243..0346fd2 100644
--- a/src/mainboard/google/zork/variants/baseboard/devicetree_dalboz.cb
+++ b/src/mainboard/google/zork/variants/baseboard/devicetree_dalboz.cb
@@ -44,8 +44,6 @@
.timing = SD_EMMC_EMMC_HS400,
}"
- register "xhci0_force_gen1" = "0"
-
register "has_usb2_phy_tune_params" = "1"
# Controller0 Port0 Default
diff --git a/src/mainboard/google/zork/variants/baseboard/devicetree_trembyle.cb b/src/mainboard/google/zork/variants/baseboard/devicetree_trembyle.cb
index 8d475e9..f5cdc2f 100644
--- a/src/mainboard/google/zork/variants/baseboard/devicetree_trembyle.cb
+++ b/src/mainboard/google/zork/variants/baseboard/devicetree_trembyle.cb
@@ -44,8 +44,6 @@
.timing = SD_EMMC_EMMC_HS400,
}"
- register "xhci0_force_gen1" = "0"
-
register "has_usb2_phy_tune_params" = "1"
# Controller0 Port0 Default
diff --git a/src/soc/amd/picasso/chip.h b/src/soc/amd/picasso/chip.h
index 0039479..2b85f11 100644
--- a/src/soc/amd/picasso/chip.h
+++ b/src/soc/amd/picasso/chip.h
@@ -169,8 +169,7 @@
SD_EMMC_EMMC_HS300,
} timing;
} emmc_config;
- /* set xhci0 from gen2 to gen1 */
- uint8_t xhci0_force_gen1;
+
/* Force USB3 port to gen1, bit0 - controller0 Port0, bit1 - Port1 */
struct usb3_port_force_gen1 usb3_port_force_gen1;
diff --git a/src/soc/amd/picasso/fsp_params.c b/src/soc/amd/picasso/fsp_params.c
index bacdbb0..1473d0b 100644
--- a/src/soc/amd/picasso/fsp_params.c
+++ b/src/soc/amd/picasso/fsp_params.c
@@ -105,7 +105,6 @@
/* each OC mapping in xhci_oc_pin_select is 4 bit per USB port */
ASSERT(2 * sizeof(scfg->xhci_oc_pin_select) >= USB_PORT_COUNT);
- scfg->xhci0_force_gen1 = cfg->xhci0_force_gen1;
scfg->fch_usb_3_port_force_gen1 = cfg->usb3_port_force_gen1.usb3_port_force_gen1_en;
if (cfg->has_usb2_phy_tune_params) {
--
To view, visit https://review.coreboot.org/c/coreboot/+/46041
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If5f0c1f22d8c98c4461f09d074bf082c340b14d9
Gerrit-Change-Number: 46041
Gerrit-PatchSet: 1
Gerrit-Owner: chris wang <Chris.Wang(a)amd.com>
Gerrit-Reviewer: Chris Wang <chris.wang(a)amd.corp-partner.google.com>
Gerrit-MessageType: newchange
Hello Chris Wang,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/45334
to review the following change.
Change subject: mb/google/zork:Set USB3 typeA port to force gen1 for morphius
......................................................................
mb/google/zork:Set USB3 typeA port to force gen1 for morphius
In morphius, the USBA port needs to set to gen1.So set the corresponding
setting to usb3 port force gen1 to force USB3 to Gen1.
BUG=b:167651308
BRANCH=zork
TEST=Build,verify the USB3 speed in gen1
Signed-off-by: Chris Wang <chris.wang(a)amd.corp-partner.google.com>
Change-Id: I10419b91fe86fe3e06de36ddfe0d1769c1031f8e
---
M src/mainboard/google/zork/variants/morphius/overridetree.cb
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/45334/1
diff --git a/src/mainboard/google/zork/variants/morphius/overridetree.cb b/src/mainboard/google/zork/variants/morphius/overridetree.cb
index ceacc70..acce883 100644
--- a/src/mainboard/google/zork/variants/morphius/overridetree.cb
+++ b/src/mainboard/google/zork/variants/morphius/overridetree.cb
@@ -22,6 +22,9 @@
# End : OPN Performance Configuration
+ # Force USB3 port to gen1, bit0 - controller0 Port0, bit1 - Port1, etc
+ register "usb3_port_force_gen1" = "0x6" #0110b
+
# Enable I2C2 for trackpad, touchscreen, pen at 400kHz
register "i2c[2]" = "{
.speed = I2C_SPEED_FAST,
--
To view, visit https://review.coreboot.org/c/coreboot/+/45334
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I10419b91fe86fe3e06de36ddfe0d1769c1031f8e
Gerrit-Change-Number: 45334
Gerrit-PatchSet: 1
Gerrit-Owner: chris wang <Chris.Wang(a)amd.com>
Gerrit-Reviewer: Chris Wang <chris.wang(a)amd.corp-partner.google.com>
Gerrit-MessageType: newchange
Hello Chris Wang,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/45333
to review the following change.
Change subject: soc/amd/picasso: Add Upd for support force USB3 to Gen1 by port
......................................................................
soc/amd/picasso: Add Upd for support force USB3 to Gen1 by port
add upd usb3_port_force_gen1 for support USB3 port to gen1
BUG=b:167651308
BRANCH=zork
TEST=Build,verify the USB3 speed in gen1
Signed-off-by: Chris Wang <chris.wang(a)amd.corp-partner.google.com>
Change-Id: I896c185988c3ea5dbdd72957b363ebdaa2747cff
---
M src/soc/amd/picasso/chip.h
M src/soc/amd/picasso/fsp_params.c
2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/45333/1
diff --git a/src/soc/amd/picasso/chip.h b/src/soc/amd/picasso/chip.h
index e3da255..9868220 100644
--- a/src/soc/amd/picasso/chip.h
+++ b/src/soc/amd/picasso/chip.h
@@ -168,7 +168,7 @@
USB_OC_PIN_5 = 0x5,
USB_OC_NONE = 0xf,
} usb_port_overcurrent_pin[USB_PORT_COUNT];
-
+ uint32_t usb3_port_force_gen1;
/* The array index is the general purpose PCIe clock output number. */
enum gpp_clk_req_setting gpp_clk_config[GPP_CLK_OUTPUT_COUNT];
};
diff --git a/src/soc/amd/picasso/fsp_params.c b/src/soc/amd/picasso/fsp_params.c
index b21f237..e36ebd0 100644
--- a/src/soc/amd/picasso/fsp_params.c
+++ b/src/soc/amd/picasso/fsp_params.c
@@ -106,6 +106,7 @@
ASSERT(2 * sizeof(scfg->xhci_oc_pin_select) >= USB_PORT_COUNT);
scfg->xhci0_force_gen1 = cfg->xhci0_force_gen1;
+ scfg->fch_usb_3_port_force_gen1 = cfg->usb3_port_force_gen1;
if (cfg->has_usb2_phy_tune_params) {
for (i = 0; i < FSPS_UPD_USB2_PORT_COUNT; i++) {
--
To view, visit https://review.coreboot.org/c/coreboot/+/45333
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I896c185988c3ea5dbdd72957b363ebdaa2747cff
Gerrit-Change-Number: 45333
Gerrit-PatchSet: 1
Gerrit-Owner: chris wang <Chris.Wang(a)amd.com>
Gerrit-Reviewer: Chris Wang <chris.wang(a)amd.corp-partner.google.com>
Gerrit-MessageType: newchange
Kangheui Won has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46060 )
Change subject: console: change header when vboot starts before bootblock
......................................................................
console: change header when vboot starts before bootblock
VBOOT_STARTS_VEFORE_BOOTBLOCK indicates that verstage starts before
bootblock. However "cbmem -1" will first try to match "bootblock
starting" to find out the beginning of console for current boot.
In case "cbmem -1" cannot find "bootblock starting", it will fall back
to find "verstage starting". Replace "bootblock starting" to
"bootblock-after-verstage starting" in header to let cbmem utility
find for "verstage starting" for beginning of console.
BUG=b:159220781
TEST=flash and boot, check `cbmem -1`
BRANCH=zork
Signed-off-by: Kangheui Won <khwon(a)chromium.org>
Change-Id: Ica38f6bfeb05605caadac208e790fd072b352732
---
M src/console/init.c
1 file changed, 13 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/46060/1
diff --git a/src/console/init.c b/src/console/init.c
index 1dba9ad..adf6239 100644
--- a/src/console/init.c
+++ b/src/console/init.c
@@ -74,7 +74,17 @@
console_inited = 1;
- printk(BIOS_NOTICE, "\n\ncoreboot-%s%s %s " ENV_STRING " starting (log level: %i)...\n",
- coreboot_version, coreboot_extra_version, coreboot_build,
- get_log_level());
+ printk(BIOS_NOTICE, "\n\ncoreboot-%s%s %s " ENV_STRING,
+ coreboot_version, coreboot_extra_version, coreboot_build);
+
+ /*
+ * if verstage runs before bootblock and we're in bootblock,
+ * append something to ENV_STRING not to be matched against
+ * "bootblock starting". This will let cbmem utility to
+ * look for "verstage starting" for start of the log.
+ */
+ if (CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK) && ENV_BOOTBLOCK)
+ printk(BIOS_NOTICE, "-after-verstage");
+
+ printk(BIOS_NOTICE, " starting (log level: %i)...\n", get_log_level());
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/46060
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ica38f6bfeb05605caadac208e790fd072b352732
Gerrit-Change-Number: 46060
Gerrit-PatchSet: 1
Gerrit-Owner: Kangheui Won <khwon(a)chromium.org>
Gerrit-MessageType: newchange