Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/51363 )
Change subject: Makefile: export LANG LC_ALL TZ without using COREBOOT_EXPORTS
......................................................................
Makefile: export LANG LC_ALL TZ without using COREBOOT_EXPORTS
LANG LC_ALL TZ are required for reproducible builds. Those environment should
be always used for all builds in coreboot and for payloads.
By using COREBOOT_EXPORTS those would be removed in payload builds.
Change-Id: Iea965abbce23bf6ec408ef587da0a4c4ebc65a27
Signed-off-by: Alexander Couzens <lynxis(a)fe80.eu>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51363
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi(a)google.com>
---
M Makefile
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
build bot (Jenkins): Verified
Patrick Georgi: Looks good to me, approved
diff --git a/Makefile b/Makefile
index d942ee3..e307e1d 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,9 @@
LANG:=C
LC_ALL:=C
TZ:=UTC0
-COREBOOT_EXPORTS += LANG LC_ALL TZ
+# don't use COREBOOT_EXPORTS to ensure build steps outside the coreboot build system
+# are reproducible
+export LANG LC_ALL TZ
DOTCONFIG ?= $(top)/.config
KCONFIG_CONFIG = $(DOTCONFIG)
--
To view, visit https://review.coreboot.org/c/coreboot/+/51363
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iea965abbce23bf6ec408ef587da0a4c4ebc65a27
Gerrit-Change-Number: 51363
Gerrit-PatchSet: 6
Gerrit-Owner: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: merged
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/51973 )
Change subject: mb/google/asurada: early-init eMMC
......................................................................
mb/google/asurada: early-init eMMC
Some eMMCs need 80+ms for CMD1 to complete. And the payload may need to
access eMMC in the very early stage (for example, Depthcharge needs it
20ms after started) so we have to start initialization in coreboot.
On Hayato Chromebook this can save ~100ms in total.
BUG=b:177389446
TEST=emerge-asurada coreboot
BRANCH=asurada
Signed-off-by: Wenbin Mei <wenbin.mei(a)mediatek.com>
Change-Id: I2f58d203e969dc1a13a479d7dc63b1b162a9ae3f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51973
Reviewed-by: Hung-Te Lin <hungte(a)chromium.org>
Reviewed-by: Yu-Ping Wu <yupingso(a)google.com>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M src/mainboard/google/asurada/mainboard.c
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
build bot (Jenkins): Verified
Hung-Te Lin: Looks good to me, approved
Yu-Ping Wu: Looks good to me, but someone else must approve
diff --git a/src/mainboard/google/asurada/mainboard.c b/src/mainboard/google/asurada/mainboard.c
index 16325c8..86e8d5f 100644
--- a/src/mainboard/google/asurada/mainboard.c
+++ b/src/mainboard/google/asurada/mainboard.c
@@ -16,6 +16,7 @@
#include <soc/gpio.h>
#include <soc/gpio_common.h>
#include <soc/i2c.h>
+#include <soc/msdc.h>
#include <soc/mtcmos.h>
#include <soc/regulator.h>
#include <soc/spm.h>
@@ -25,6 +26,9 @@
#include <arm-trusted-firmware/include/export/plat/mediatek/common/plat_params_exp.h>
+#define MSDC0_BASE 0x11f60000
+#define MSDC0_TOP_BASE 0x11f50000
+
#define MSDC0_DRV_MASK 0x3fffffff
#define MSDC1_DRV_MASK 0x3ffff000
#define MSDC0_DRV_VALUE 0x24924924
@@ -154,6 +158,8 @@
/* set eMMC cmd/dat/clk/ds/rstb pins driving to 10mA */
clrsetbits32(gpio_base, MSDC0_DRV_MASK, MSDC0_DRV_VALUE);
+
+ mtk_emmc_early_init((void *)MSDC0_BASE, (void *)MSDC0_TOP_BASE);
}
static void configure_sdcard(void)
--
To view, visit https://review.coreboot.org/c/coreboot/+/51973
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2f58d203e969dc1a13a479d7dc63b1b162a9ae3f
Gerrit-Change-Number: 51973
Gerrit-PatchSet: 9
Gerrit-Owner: Wenbin Mei <wenbin.mei(a)mediatek.corp-partner.google.com>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: merged
Kangheui Won has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/52206 )
Change subject: mb/google/zork: make SSFC optional in FW_CONFIG
......................................................................
mb/google/zork: make SSFC optional in FW_CONFIG
We expanded FW_CONFIG to 64-bit after many devices are out of the
factory. Thus some devices miss SSFC in CBI and that makes whole
fw_config to unusable. Making SSFC optional for all zork platforms will
keep those device to use their fw_config.
BUG=b:184809649
TEST=boot Jelboz, check touchpad is fixed (was broken due to invalidated
fw_config)
BRANCH=zork
Signed-off-by: Kangheui Won <khwon(a)chromium.org>
Change-Id: Id713e108550049e0ca1750b0be47dbb63e7687eb
---
M src/mainboard/google/zork/Kconfig
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/52206/1
diff --git a/src/mainboard/google/zork/Kconfig b/src/mainboard/google/zork/Kconfig
index aff1898..c5c174c 100644
--- a/src/mainboard/google/zork/Kconfig
+++ b/src/mainboard/google/zork/Kconfig
@@ -26,6 +26,7 @@
select EC_GOOGLE_CHROMEEC_BOARDID
select EC_GOOGLE_CHROMEEC_ESPI
select EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG
+ select EC_GOOGLE_CHROMEEC_SSFC_OPTIONAL_IN_FW_CONFIG
select EC_GOOGLE_CHROMEEC_I2C_TUNNEL
select EC_GOOGLE_CHROMEEC_SKUID
select ELOG
--
To view, visit https://review.coreboot.org/c/coreboot/+/52206
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id713e108550049e0ca1750b0be47dbb63e7687eb
Gerrit-Change-Number: 52206
Gerrit-PatchSet: 1
Gerrit-Owner: Kangheui Won <khwon(a)chromium.org>
Gerrit-MessageType: newchange
Kangheui Won has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/52205 )
Change subject: chromeec: introduce SSFC_OPTIONAL_IN_FW_CONFIG
......................................................................
chromeec: introduce SSFC_OPTIONAL_IN_FW_CONFIG
When EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG is enabled and SSFC is
not set, all fw_config is invalidated. But for some platform this may
not be necessary, we can treat missing SSFC as zero and use other 32
bits of firmware config.
Add Kconfig option 'EC_GOOGLE_CHROMEEC_SSFC_OPTIONAL_IN_FW_CONFIG' to
make this possible.
BUG=b:184809649
TEST=build
BRANCH=zork
Signed-off-by: Kangheui Won <khwon(a)chromium.org>
Change-Id: I21c7b0d449a694d28ad7b3f14b035e3a5830030a
---
M src/ec/google/chromeec/Kconfig
M src/ec/google/chromeec/ec.c
2 files changed, 10 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/05/52205/1
diff --git a/src/ec/google/chromeec/Kconfig b/src/ec/google/chromeec/Kconfig
index 4bb0d65..d3a9faf 100644
--- a/src/ec/google/chromeec/Kconfig
+++ b/src/ec/google/chromeec/Kconfig
@@ -204,4 +204,11 @@
Fetch Second Source Factory Cache from CBI EEPROM and add it in the most significant
32 bits of firmware configuration.
+config EC_GOOGLE_CHROMEEC_SSFC_OPTIONAL_IN_FW_CONFIG
+ depends on EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG
+ bool
+ help
+ While adding Second Source Factory Cache to firmware configuration, ignore it if it
+ is not set properly instead of falling into UNDEFINED_FW_CONFIG.
+
source "src/ec/google/chromeec/*/Kconfig"
diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c
index affe66e..f0d2d94 100644
--- a/src/ec/google/chromeec/ec.c
+++ b/src/ec/google/chromeec/ec.c
@@ -854,10 +854,11 @@
* 32 bits.
*/
if (CONFIG(EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG)) {
- uint32_t ssfc;
+ uint32_t ssfc = 0;
if (google_chromeec_cbi_get_ssfc(&ssfc))
- return -1;
+ if (!CONFIG(EC_GOOGLE_CHROMEEC_SSFC_OPTIONAL_IN_FW_CONFIG))
+ return -1;
*fw_config |= (uint64_t)ssfc << 32;
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/52205
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I21c7b0d449a694d28ad7b3f14b035e3a5830030a
Gerrit-Change-Number: 52205
Gerrit-PatchSet: 1
Gerrit-Owner: Kangheui Won <khwon(a)chromium.org>
Gerrit-MessageType: newchange
Attention is currently required from: Bhanu Prakash Maiya, Ivy Jian, EricR Lai.
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52181 )
Change subject: mb/google/guybrush/var/guybrush: Add FPMCU configration
......................................................................
Patch Set 9:
(1 comment)
File src/mainboard/google/guybrush/variants/guybrush/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/52181/comment/105636e2_3cb68a27
PS9, Line 113: register "has_power_resource" = "1"
For GPIO_11, we will have to ensure that there is an external PD so that the default state is driven low at reset. GPIO_32 should have an external PD as well.
Can you please probe the signals from reset to see what they look like?
> => FP seems not working if not configuring GPIO_11(reset) to low in early_gpio_table
I think we should get the signals probed both with and withou GPIO_11 driven low in early_gpio_table. Driving GPIO_11 low in early_gpio_table will cause FPMCU to not work after S3 resume.
--
To view, visit https://review.coreboot.org/c/coreboot/+/52181
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7c56b0db193be6804d07c2f333445c2a1dbf9f59
Gerrit-Change-Number: 52181
Gerrit-PatchSet: 9
Gerrit-Owner: Ivy Jian <ivy_jian(a)compal.corp-partner.google.com>
Gerrit-Reviewer: Bhanu Prakash Maiya <bhanumaiya(a)google.com>
Gerrit-Reviewer: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Mathew King <mathewk(a)chromium.org>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Bhanu Prakash Maiya <bhanumaiya(a)google.com>
Gerrit-Attention: Ivy Jian <ivy_jian(a)compal.corp-partner.google.com>
Gerrit-Attention: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-Comment-Date: Fri, 09 Apr 2021 05:14:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Furquan Shaikh <furquan(a)google.com>
Comment-In-Reply-To: Ivy Jian <ivy_jian(a)compal.corp-partner.google.com>
Comment-In-Reply-To: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-MessageType: comment