Attention is currently required from: Hung-Te Lin, Paul Menzel, Yu-Ping Wu, Felix Held.
Hello Hung-Te Lin, build bot (Jenkins), Yu-Ping Wu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/58640
to look at the new patch set (#7).
Change subject: soc/mediatek/mt8186: Add a stub implementation of the MT8186 SoC
......................................................................
soc/mediatek/mt8186: Add a stub implementation of the MT8186 SoC
Add new folder and basic drivers for Mediatek SoC 'MT8186'.
Difference of modules including in this patch between MT8186 and existing SoCs:
Timer:
Similar to MT8195, MT8186 uses v2 timer.
EMI/PLL/SPI:
Different from existing SoCs.
TEST=boot from SPI-NOR and show uart log on MT8186 EVB
BUG=b:200134633
Signed-off-by: Rex-BC Chen <rex-bc.chen(a)mediatek.com>
Change-Id: I579f79c15f4bf5e1daf6b35c70cfd00a985a0b81
---
A src/soc/mediatek/mt8186/Kconfig
A src/soc/mediatek/mt8186/Makefile.inc
A src/soc/mediatek/mt8186/bootblock.c
A src/soc/mediatek/mt8186/emi.c
A src/soc/mediatek/mt8186/include/soc/addressmap.h
A src/soc/mediatek/mt8186/include/soc/emi.h
A src/soc/mediatek/mt8186/include/soc/memlayout.ld
A src/soc/mediatek/mt8186/include/soc/pll.h
A src/soc/mediatek/mt8186/include/soc/spi.h
A src/soc/mediatek/mt8186/include/soc/timer.h
A src/soc/mediatek/mt8186/soc.c
A src/soc/mediatek/mt8186/spi.c
12 files changed, 318 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/40/58640/7
--
To view, visit https://review.coreboot.org/c/coreboot/+/58640
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I579f79c15f4bf5e1daf6b35c70cfd00a985a0b81
Gerrit-Change-Number: 58640
Gerrit-PatchSet: 7
Gerrit-Owner: Rex-BC Chen <rex-bc.chen(a)mediatek.corp-partner.google.com>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Rex-BC Chen <rex-bc.chen(a)mediatek.corp-partner.google.com>
Gerrit-Reviewer: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-MessageType: newpatchset
Wonkyu Kim has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/58833 )
Change subject: src/lib: Support fallback option for fw_config
......................................................................
Patch Set 2:
(1 comment)
File src/lib/fw_config.c:
https://review.coreboot.org/c/coreboot/+/58833/comment/f95cb66b_19fd3115
PS1, Line 29: printk(BIOS_WARNING, "%s: Could not get fw_config from CBI\n", __func__);
> line over 96 characters
Please fix.
--
To view, visit https://review.coreboot.org/c/coreboot/+/58833
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I215c13a4fcb9dc3b94f73c770e704d4e353e9cff
Gerrit-Change-Number: 58833
Gerrit-PatchSet: 2
Gerrit-Owner: Wonkyu Kim <wonkyu.kim(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Tue, 02 Nov 2021 05:28:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Wonkyu Kim.
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/58833
to look at the new patch set (#2).
Change subject: src/lib: Support fallback option for fw_config
......................................................................
src/lib: Support fallback option for fw_config
To support both non-chrome EC platform and chrome EC platform in
single coreboot binary, need to support fallback option.
Make reading fw_config from CBI and support other options as
fallback options and support backward compatiblity to support only one
option as before.
TEST=select both configs and check fallback behavior.
1. select both FW_CONFIG_SOURCE_CHROMEEC_CBI and FW_CONFIG_SOURCE_CBFS
2. check Coreboot tries to read CBI and CBFS
Signed-off-by: Wonkyu Kim <wonkyu.kim(a)intel.com>
Change-Id: I215c13a4fcb9dc3b94f73c770e704d4e353e9cff
---
M src/Kconfig
M src/lib/fw_config.c
2 files changed, 29 insertions(+), 27 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/58833/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/58833
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I215c13a4fcb9dc3b94f73c770e704d4e353e9cff
Gerrit-Change-Number: 58833
Gerrit-PatchSet: 2
Gerrit-Owner: Wonkyu Kim <wonkyu.kim(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Wonkyu Kim <wonkyu.kim(a)intel.com>
Gerrit-MessageType: newpatchset
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/58833 )
Change subject: src/lib: Support fallback option for fw_config
......................................................................
Patch Set 1:
(1 comment)
File src/lib/fw_config.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-131957):
https://review.coreboot.org/c/coreboot/+/58833/comment/799b926d_a68060c1
PS1, Line 29: printk(BIOS_WARNING, "%s: Could not get fw_config from CBI\n", __func__);
line over 96 characters
--
To view, visit https://review.coreboot.org/c/coreboot/+/58833
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I215c13a4fcb9dc3b94f73c770e704d4e353e9cff
Gerrit-Change-Number: 58833
Gerrit-PatchSet: 1
Gerrit-Owner: Wonkyu Kim <wonkyu.kim(a)intel.com>
Gerrit-CC: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Tue, 02 Nov 2021 05:23:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Wonkyu Kim has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/58833 )
Change subject: src/lib: Support fallback option for fw_config
......................................................................
src/lib: Support fallback option for fw_config
To support both non-chrome EC platform and chrome EC platform in
single coreboot binary, need to support fallback option.
Make reading fw_config from CBI and support other options as
fallback options and support backward compatiblity to support only one
option as before.
TEST=select both configs and check fallback behavior.
1. select both FW_CONFIG_SOURCE_CHROMEEC_CBI and FW_CONFIG_SOURCE_CBFS
2. check Coreboot tries to read CBI and CBFS
Signed-off-by: Wonkyu Kim <wonkyu.kim(a)intel.com>
Change-Id: I215c13a4fcb9dc3b94f73c770e704d4e353e9cff
---
M src/Kconfig
M src/lib/fw_config.c
2 files changed, 24 insertions(+), 23 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/58833/1
diff --git a/src/Kconfig b/src/Kconfig
index be269b6..797819b 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -395,16 +395,6 @@
Enable support for probing devices with fw_config. This is a simple
bitmask broken into fields and options for probing.
-config FW_CONFIG_SOURCE_CBFS
- bool "Obtain Firmware Configuration value from CBFS"
- depends on FW_CONFIG
- default n
- help
- With this option enabled coreboot will look for the 32bit firmware
- configuration value in CBFS at the selected prefix with the file name
- "fw_config". This option will override other sources and allow the
- local image to preempt the mainboard selected source.
-
config FW_CONFIG_SOURCE_CHROMEEC_CBI
bool "Obtain Firmware Configuration value from Google Chrome EC CBI"
depends on FW_CONFIG && EC_GOOGLE_CHROMEEC
@@ -415,6 +405,17 @@
is not tried if FW_CONFIG_SOURCE_CBFS is enabled and the value was
found in CBFS.
+config FW_CONFIG_SOURCE_CBFS
+ bool "Obtain Firmware Configuration value from CBFS"
+ depends on FW_CONFIG
+ default n
+ help
+ With this option enabled coreboot will look for the 32bit firmware
+ configuration value in CBFS at the selected prefix with the file name
+ "fw_config". This option will override other sources and allow the
+ local image to preempt the mainboard selected source and and can be used as
+ FW_CONFIG_SOURCE_CHROMEEC_CBI fallback option.
+
config HAVE_RAMPAYLOAD
bool
diff --git a/src/lib/fw_config.c b/src/lib/fw_config.c
index 8e45c00..e5edb4c 100644
--- a/src/lib/fw_config.c
+++ b/src/lib/fw_config.c
@@ -21,30 +21,30 @@
if (fw_config_value_initialized)
return fw_config_value;
fw_config_value_initialized = true;
+ fw_config_value = UNDEFINED_FW_CONFIG;
+
+ /* Read the value from EC CBI. */
+ if (CONFIG(FW_CONFIG_SOURCE_CHROMEEC_CBI)) {
+ if (google_chromeec_cbi_get_fw_config(&fw_config_value)) {
+ printk(BIOS_WARNING, "%s: Could not get fw_config from CBI\n", __func__);
+ fw_config_value = UNDEFINED_FW_CONFIG;
+ } else
+ printk(BIOS_INFO, "FW_CONFIG value from CBI is 0x%" PRIx64 "\n",
+ fw_config_value);
+ }
/* Look in CBFS to allow override of value. */
- if (CONFIG(FW_CONFIG_SOURCE_CBFS)) {
+ if (CONFIG(FW_CONFIG_SOURCE_CBFS) && fw_config_value == UNDEFINED_FW_CONFIG) {
if (cbfs_load(CONFIG_CBFS_PREFIX "/fw_config", &fw_config_value,
sizeof(fw_config_value)) != sizeof(fw_config_value)) {
printk(BIOS_WARNING, "%s: Could not get fw_config from CBFS\n",
__func__);
fw_config_value = UNDEFINED_FW_CONFIG;
- } else {
+ } else
printk(BIOS_INFO, "FW_CONFIG value from CBFS is 0x%" PRIx64 "\n",
fw_config_value);
- return fw_config_value;
- }
}
- /* Read the value from EC CBI. */
- if (CONFIG(FW_CONFIG_SOURCE_CHROMEEC_CBI)) {
- if (google_chromeec_cbi_get_fw_config(&fw_config_value)) {
- printk(BIOS_WARNING, "%s: Could not get fw_config from EC\n", __func__);
- fw_config_value = UNDEFINED_FW_CONFIG;
- }
- }
-
- printk(BIOS_INFO, "FW_CONFIG value is 0x%" PRIx64 "\n", fw_config_value);
return fw_config_value;
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/58833
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I215c13a4fcb9dc3b94f73c770e704d4e353e9cff
Gerrit-Change-Number: 58833
Gerrit-PatchSet: 1
Gerrit-Owner: Wonkyu Kim <wonkyu.kim(a)intel.com>
Gerrit-MessageType: newchange
Attention is currently required from: Tim Wawrzynczak.
Hello build bot (Jenkins), Tim Wawrzynczak,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/58831
to look at the new patch set (#2).
Change subject: mb/google/brya/variants/primus: disable LTR for PCIe-eMMC bridge
......................................................................
mb/google/brya/variants/primus: disable LTR for PCIe-eMMC bridge
disable LTR for PCIe-eMMC bridge
BUG=b:204469567
TEST=Boot into eMMC storage and perform suspend stress 100 cycle passed
Signed-off-by: Casper Chang <casper_chang(a)wistron.corp-partner.google.com>
Change-Id: I7236fc7f3318d07f0d9e9d9da7cd463ef3dde1a0
---
M src/mainboard/google/brya/variants/primus/gpio.c
M src/mainboard/google/brya/variants/primus/overridetree.cb
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/31/58831/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/58831
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7236fc7f3318d07f0d9e9d9da7cd463ef3dde1a0
Gerrit-Change-Number: 58831
Gerrit-PatchSet: 2
Gerrit-Owner: Casper Chang <casper_chang(a)wistron.corp-partner.google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Ariel Fang <ariel_fang(a)wistron.corp-partner.google.com>
Gerrit-CC: Malik Hsu <malik_hsu(a)wistron.corp-partner.google.com>
Gerrit-CC: Scott Chao <scott_chao(a)wistron.corp-partner.google.com>
Gerrit-CC: Terry Chen <terry_chen(a)wistron.corp-partner.google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: newpatchset