EricR Lai has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46566 )
Change subject: mb/google/zork: Fix get board version and get fw config issue
......................................................................
mb/google/zork: Fix get board version and get fw config issue
google_chromeec_cbi_get_board_version and google_chromeec_cbi_get_board_version
return 0 as sucess. Let's correct the logical for the false condition.
BUG=None
TEST=check with empty CBI value
Signed-off-by: Eric Lai <ericr_lai(a)compal.corp-partner.google.com>
Change-Id: Ia49ac1ee35302f8f6afe8c0eb8e13afdf36c5b2b
---
M src/mainboard/google/zork/variants/baseboard/helpers.c
M src/mainboard/google/zork/variants/berknip/gpio.c
M src/mainboard/google/zork/variants/dalboz/gpio.c
M src/mainboard/google/zork/variants/dirinboz/gpio.c
M src/mainboard/google/zork/variants/ezkinil/gpio.c
M src/mainboard/google/zork/variants/morphius/gpio.c
M src/mainboard/google/zork/variants/trembyle/gpio.c
M src/mainboard/google/zork/variants/vilboz/gpio.c
M src/mainboard/google/zork/variants/woomax/gpio.c
9 files changed, 12 insertions(+), 12 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/46566/1
diff --git a/src/mainboard/google/zork/variants/baseboard/helpers.c b/src/mainboard/google/zork/variants/baseboard/helpers.c
index d95ab82..9b824e1 100644
--- a/src/mainboard/google/zork/variants/baseboard/helpers.c
+++ b/src/mainboard/google/zork/variants/baseboard/helpers.c
@@ -57,7 +57,7 @@
return 0;
}
- if (google_chromeec_cbi_get_fw_config(&known_value)) {
+ if (google_chromeec_cbi_get_fw_config(&known_value) !=0) {
printk(BIOS_ERR, "FW_CONFIG not set in CBI\n");
return -1;
}
@@ -95,7 +95,7 @@
if (!CONFIG(VARIANT_SUPPORTS_PRE_V3_SCHEMATICS))
return true;
- if (google_chromeec_cbi_get_board_version(&board_version))
+ if (google_chromeec_cbi_get_board_version(&board_version) !=0)
return false;
if ((int)board_version < CONFIG_VARIANT_MIN_BOARD_ID_V3_SCHEMATICS)
@@ -111,7 +111,7 @@
if (!CONFIG(VARIANT_SUPPORTS_PRE_V3_6_SCHEMATICS))
return true;
- if (google_chromeec_cbi_get_board_version(&board_version))
+ if (google_chromeec_cbi_get_board_version(&board_version) !=0)
return false;
if ((int)board_version < CONFIG_VARIANT_MIN_BOARD_ID_V3_6_SCHEMATICS)
@@ -136,7 +136,7 @@
if (!CONFIG(VARIANT_SUPPORTS_WIFI_POWER_ACTIVE_HIGH))
return true;
- if (google_chromeec_cbi_get_board_version(&board_version))
+ if (google_chromeec_cbi_get_board_version(&board_version) !=0)
return false;
if ((int)board_version < CONFIG_VARIANT_MIN_BOARD_ID_WIFI_POWER_ACTIVE_LOW)
diff --git a/src/mainboard/google/zork/variants/berknip/gpio.c b/src/mainboard/google/zork/variants/berknip/gpio.c
index c8cb10f..53ae71c 100644
--- a/src/mainboard/google/zork/variants/berknip/gpio.c
+++ b/src/mainboard/google/zork/variants/berknip/gpio.c
@@ -61,7 +61,7 @@
* and so apply overrides. If board version is provided by the EC, then apply overrides
* if version < 2.
*/
- if (google_chromeec_cbi_get_board_version(&board_version))
+ if (google_chromeec_cbi_get_board_version(&board_version) !=0)
board_version = 1;
if (board_version <= 1) {
diff --git a/src/mainboard/google/zork/variants/dalboz/gpio.c b/src/mainboard/google/zork/variants/dalboz/gpio.c
index 7600d4c..ef04341 100644
--- a/src/mainboard/google/zork/variants/dalboz/gpio.c
+++ b/src/mainboard/google/zork/variants/dalboz/gpio.c
@@ -47,7 +47,7 @@
* and so apply overrides. If board version is provided by the EC, then apply overrides
* if version < 2.
*/
- if (google_chromeec_cbi_get_board_version(&board_version))
+ if (google_chromeec_cbi_get_board_version(&board_version) !=0)
board_version = 1;
if (board_version < 2) {
diff --git a/src/mainboard/google/zork/variants/dirinboz/gpio.c b/src/mainboard/google/zork/variants/dirinboz/gpio.c
index 8da85b6..0a3c0fc 100644
--- a/src/mainboard/google/zork/variants/dirinboz/gpio.c
+++ b/src/mainboard/google/zork/variants/dirinboz/gpio.c
@@ -36,7 +36,7 @@
* and so apply overrides. If board version is provided by the EC, then apply overrides
* if version < 2.
*/
- if (google_chromeec_cbi_get_board_version(&board_version))
+ if (google_chromeec_cbi_get_board_version(&board_version) !=0)
board_version = 1;
if (board_version < 2) {
diff --git a/src/mainboard/google/zork/variants/ezkinil/gpio.c b/src/mainboard/google/zork/variants/ezkinil/gpio.c
index 0ec1ab23..047c3e6 100644
--- a/src/mainboard/google/zork/variants/ezkinil/gpio.c
+++ b/src/mainboard/google/zork/variants/ezkinil/gpio.c
@@ -81,7 +81,7 @@
* and so apply overrides. If board version is provided by the EC, then apply overrides
* if version < 2.
*/
- if (google_chromeec_cbi_get_board_version(&board_version))
+ if (google_chromeec_cbi_get_board_version(&board_version) !=0)
board_version = 1;
if (board_version <= 1) {
diff --git a/src/mainboard/google/zork/variants/morphius/gpio.c b/src/mainboard/google/zork/variants/morphius/gpio.c
index 8da0de4..bbfde2a 100644
--- a/src/mainboard/google/zork/variants/morphius/gpio.c
+++ b/src/mainboard/google/zork/variants/morphius/gpio.c
@@ -69,7 +69,7 @@
* and so apply overrides. If board version is provided by the EC, then apply overrides
* if version < 2.
*/
- if (google_chromeec_cbi_get_board_version(&board_version))
+ if (google_chromeec_cbi_get_board_version(&board_version) !=0)
board_version = 1;
if (board_version <= 1) {
diff --git a/src/mainboard/google/zork/variants/trembyle/gpio.c b/src/mainboard/google/zork/variants/trembyle/gpio.c
index 9931479..eb5c28e 100644
--- a/src/mainboard/google/zork/variants/trembyle/gpio.c
+++ b/src/mainboard/google/zork/variants/trembyle/gpio.c
@@ -60,7 +60,7 @@
* and so apply overrides. If board version is provided by the EC, then apply overrides
* if version < 2.
*/
- if (google_chromeec_cbi_get_board_version(&board_version))
+ if (google_chromeec_cbi_get_board_version(&board_version) !=0)
board_version = 1;
if (board_version <= 2) {
diff --git a/src/mainboard/google/zork/variants/vilboz/gpio.c b/src/mainboard/google/zork/variants/vilboz/gpio.c
index 12b303a..2ed878c 100644
--- a/src/mainboard/google/zork/variants/vilboz/gpio.c
+++ b/src/mainboard/google/zork/variants/vilboz/gpio.c
@@ -25,7 +25,7 @@
* and so apply overrides. If board version is provided by the EC, then apply overrides
* if version < 2.
*/
- if (google_chromeec_cbi_get_board_version(&board_version))
+ if (google_chromeec_cbi_get_board_version(&board_version) !=0)
board_version = 1;
if (board_version < 2) {
diff --git a/src/mainboard/google/zork/variants/woomax/gpio.c b/src/mainboard/google/zork/variants/woomax/gpio.c
index ebbcbea..8da0742 100644
--- a/src/mainboard/google/zork/variants/woomax/gpio.c
+++ b/src/mainboard/google/zork/variants/woomax/gpio.c
@@ -60,7 +60,7 @@
uint32_t board_version;
/* If board version cannot be read, assume it is board_version 0. */
- if (google_chromeec_cbi_get_board_version(&board_version))
+ if (google_chromeec_cbi_get_board_version(&board_version) !=0)
board_version = 0;
if (board_version == 0) {
--
To view, visit https://review.coreboot.org/c/coreboot/+/46566
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia49ac1ee35302f8f6afe8c0eb8e13afdf36c5b2b
Gerrit-Change-Number: 46566
Gerrit-PatchSet: 1
Gerrit-Owner: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-MessageType: newchange
Xi Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46616 )
Change subject: soc/mediatek/mt8192: update descriptions for dram config
......................................................................
soc/mediatek/mt8192: update descriptions for dram config
MEMORY_TEST
MT8192_DRAM_DVFS
Signed-off-by: Xi Chen <xixi.chen(a)mediatek.com>
Change-Id: I2e714c0ce588e48bbe6bd8e59c03bdb69dea01e6
---
M src/soc/mediatek/mt8192/Kconfig
1 file changed, 7 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/46616/1
diff --git a/src/soc/mediatek/mt8192/Kconfig b/src/soc/mediatek/mt8192/Kconfig
index 1d1cf7b..0f42365 100644
--- a/src/soc/mediatek/mt8192/Kconfig
+++ b/src/soc/mediatek/mt8192/Kconfig
@@ -32,10 +32,15 @@
bool
default n
help
- This options enables DRAM calibration with multiple frequencies (low,
- medium and high) for DVFS feature.
+ This option enables DRAM calibration with multiple frequencies (low,
+ medium and high frequency group, total 7 freqencies) for DVFS feature.
+ All supported data rates are: 800, 1200, 1600, 1866, 2400, 3200, 4266.
config MEMORY_TEST
bool
default y
+ help
+ This option enables memory basic compare test to verify the dram read
+ or write is as expected.
+
endif
--
To view, visit https://review.coreboot.org/c/coreboot/+/46616
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2e714c0ce588e48bbe6bd8e59c03bdb69dea01e6
Gerrit-Change-Number: 46616
Gerrit-PatchSet: 1
Gerrit-Owner: Xi Chen <xixi.chen(a)mediatek.com>
Gerrit-MessageType: newchange