Hello Kevin Chiu,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/47717
to review the following change.
Change subject: zork: Create gumboz variant
......................................................................
zork: Create gumboz variant
Create the gumboz variant of the dalboz reference board by copying
the template files to a new directory named for the variant.
(Auto-Generated by create_coreboot_variant.sh version 4.2.0).
BUG=b:173536689
BRANCH=zork
TEST=util/abuild/abuild -p none -t google/zork -x -a
make sure the build includes GOOGLE_GUMBOZ
Change-Id: I48db7eba7864c18e7307b45fe9f84073bfca0155
Signed-off-by: Kevin Chiu <kevin.chiu(a)quantatw.com>
---
M src/mainboard/google/zork/Kconfig
M src/mainboard/google/zork/Kconfig.name
A src/mainboard/google/zork/variants/gumboz/Makefile.inc
A src/mainboard/google/zork/variants/gumboz/include/variant/acpi/audio.asl
A src/mainboard/google/zork/variants/gumboz/include/variant/acpi/mainboard.asl
A src/mainboard/google/zork/variants/gumboz/include/variant/acpi/thermal.asl
A src/mainboard/google/zork/variants/gumboz/include/variant/ec.h
A src/mainboard/google/zork/variants/gumboz/include/variant/gpio.h
A src/mainboard/google/zork/variants/gumboz/include/variant/thermal.h
A src/mainboard/google/zork/variants/gumboz/overridetree.cb
A src/mainboard/google/zork/variants/gumboz/spd/Makefile.inc
A src/mainboard/google/zork/variants/gumboz/spd/dram_id.generated.txt
A src/mainboard/google/zork/variants/gumboz/spd/mem_parts_used.txt
13 files changed, 84 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/47717/1
diff --git a/src/mainboard/google/zork/Kconfig b/src/mainboard/google/zork/Kconfig
index a0606cc..36824e6 100644
--- a/src/mainboard/google/zork/Kconfig
+++ b/src/mainboard/google/zork/Kconfig
@@ -72,6 +72,7 @@
default "woomax" if BOARD_GOOGLE_WOOMAX
default "dirinboz" if BOARD_GOOGLE_DIRINBOZ
default "shuboz" if BOARD_GOOGLE_SHUBOZ
+ default "gumboz" if BOARD_GOOGLE_GUMBOZ
config MAINBOARD_PART_NUMBER
string
@@ -84,6 +85,7 @@
default "Woomax" if BOARD_GOOGLE_WOOMAX
default "Dirinboz" if BOARD_GOOGLE_DIRINBOZ
default "Shuboz" if BOARD_GOOGLE_SHUBOZ
+ default "Gumboz" if BOARD_GOOGLE_GUMBOZ
config DEVICETREE
string
diff --git a/src/mainboard/google/zork/Kconfig.name b/src/mainboard/google/zork/Kconfig.name
index 8ed43f0..6c6657c 100644
--- a/src/mainboard/google/zork/Kconfig.name
+++ b/src/mainboard/google/zork/Kconfig.name
@@ -35,3 +35,7 @@
config BOARD_GOOGLE_SHUBOZ
bool "-> Shuboz"
select BOARD_GOOGLE_BASEBOARD_DALBOZ
+
+config BOARD_GOOGLE_GUMBOZ
+ bool "-> Gumboz"
+ select BOARD_GOOGLE_BASEBOARD_DALBOZ
diff --git a/src/mainboard/google/zork/variants/gumboz/Makefile.inc b/src/mainboard/google/zork/variants/gumboz/Makefile.inc
new file mode 100644
index 0000000..295acd2
--- /dev/null
+++ b/src/mainboard/google/zork/variants/gumboz/Makefile.inc
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+subdirs-y += ./spd
diff --git a/src/mainboard/google/zork/variants/gumboz/include/variant/acpi/audio.asl b/src/mainboard/google/zork/variants/gumboz/include/variant/acpi/audio.asl
new file mode 100644
index 0000000..900e36f
--- /dev/null
+++ b/src/mainboard/google/zork/variants/gumboz/include/variant/acpi/audio.asl
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/acpi/audio.asl>
diff --git a/src/mainboard/google/zork/variants/gumboz/include/variant/acpi/mainboard.asl b/src/mainboard/google/zork/variants/gumboz/include/variant/acpi/mainboard.asl
new file mode 100644
index 0000000..a1161ed
--- /dev/null
+++ b/src/mainboard/google/zork/variants/gumboz/include/variant/acpi/mainboard.asl
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/acpi/mainboard.asl>
diff --git a/src/mainboard/google/zork/variants/gumboz/include/variant/acpi/thermal.asl b/src/mainboard/google/zork/variants/gumboz/include/variant/acpi/thermal.asl
new file mode 100644
index 0000000..7a793d8
--- /dev/null
+++ b/src/mainboard/google/zork/variants/gumboz/include/variant/acpi/thermal.asl
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/acpi/thermal.asl>
diff --git a/src/mainboard/google/zork/variants/gumboz/include/variant/ec.h b/src/mainboard/google/zork/variants/gumboz/include/variant/ec.h
new file mode 100644
index 0000000..9e61a44
--- /dev/null
+++ b/src/mainboard/google/zork/variants/gumboz/include/variant/ec.h
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/ec.h>
diff --git a/src/mainboard/google/zork/variants/gumboz/include/variant/gpio.h b/src/mainboard/google/zork/variants/gumboz/include/variant/gpio.h
new file mode 100644
index 0000000..dfaeec3
--- /dev/null
+++ b/src/mainboard/google/zork/variants/gumboz/include/variant/gpio.h
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/gpio.h>
diff --git a/src/mainboard/google/zork/variants/gumboz/include/variant/thermal.h b/src/mainboard/google/zork/variants/gumboz/include/variant/thermal.h
new file mode 100644
index 0000000..2af6479
--- /dev/null
+++ b/src/mainboard/google/zork/variants/gumboz/include/variant/thermal.h
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/thermal.h>
diff --git a/src/mainboard/google/zork/variants/gumboz/overridetree.cb b/src/mainboard/google/zork/variants/gumboz/overridetree.cb
new file mode 100644
index 0000000..1cc2364
--- /dev/null
+++ b/src/mainboard/google/zork/variants/gumboz/overridetree.cb
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+chip soc/amd/picasso
+
+ # Start : OPN Performance Configuration
+ # See devhub #56670 Chapter 5 for documentation
+ # For the below fields, 0 indicates use SOC default
+
+ # System config index
+ register "system_config" = "1"
+
+ # Set STAPM confiuration. All of these fields must be set >0 to take affect
+ register "slow_ppt_limit_mW" = "6000"
+ register "fast_ppt_limit_mW" = "9000"
+ register "slow_ppt_time_constant_s" = "5"
+ register "stapm_time_constant_s" = "2500"
+ register "sustained_power_limit_mW" = "4800"
+
+ # End : OPN Performance Configuration
+
+ # I2C2 for touchscreen and trackpad
+
+ register "i2c[2]" = "{
+ .speed = I2C_SPEED_FAST,
+ }"
+
+ # I2C3 for H1
+
+ register "i2c[3]" = "{
+ .speed = I2C_SPEED_FAST,
+ .early_init = true,
+ }"
+
+ # See AMD 55570-B1 Table 13: PCI Device ID Assignments.
+ device domain 0 on
+ subsystemid 0x1022 0x1510 inherit
+ end # domain
+
+ device mmio 0xfedc4000 on # APU_I2C2_BASE
+ end # device
+
+end # chip soc/amd/picasso
diff --git a/src/mainboard/google/zork/variants/gumboz/spd/Makefile.inc b/src/mainboard/google/zork/variants/gumboz/spd/Makefile.inc
new file mode 100644
index 0000000..3edeb96
--- /dev/null
+++ b/src/mainboard/google/zork/variants/gumboz/spd/Makefile.inc
@@ -0,0 +1,5 @@
+## SPDX-License-Identifier: GPL-2.0-or-later
+## This is an auto-generated file. Do not edit!!
+## Add memory parts in mem_parts_used.txt and run spd_tools to regenerate.
+
+SPD_SOURCES = ddr4-spd-empty.hex
diff --git a/src/mainboard/google/zork/variants/gumboz/spd/dram_id.generated.txt b/src/mainboard/google/zork/variants/gumboz/spd/dram_id.generated.txt
new file mode 100644
index 0000000..fa24790
--- /dev/null
+++ b/src/mainboard/google/zork/variants/gumboz/spd/dram_id.generated.txt
@@ -0,0 +1 @@
+DRAM Part Name ID to assign
diff --git a/src/mainboard/google/zork/variants/gumboz/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/gumboz/spd/mem_parts_used.txt
new file mode 100644
index 0000000..106a705
--- /dev/null
+++ b/src/mainboard/google/zork/variants/gumboz/spd/mem_parts_used.txt
@@ -0,0 +1,9 @@
+# This is a CSV file containing a list of memory parts used by this variant.
+# One part per line with an optional fixed ID in column 2.
+# Only include a fixed ID if it is required for legacy reasons!
+# Each part must also be listed in util/spd_tools/ddr4/global_ddr4_mem_parts.json.txt.
+# Generate an updated Makefile.inc and dram_id.generated.txt by running the
+# gen_part_id tool from util/spd_tools/ddr4.
+# See util/spd_tools/ddr4/README.md for more details and instructions.
+
+# Part Name, Fixed ID (optional)
--
To view, visit https://review.coreboot.org/c/coreboot/+/47717
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I48db7eba7864c18e7307b45fe9f84073bfca0155
Gerrit-Change-Number: 47717
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Chiu <kevin.chiu.17802(a)gmail.com>
Gerrit-Reviewer: Kevin Chiu <Kevin.Chiu(a)quantatw.com>
Gerrit-MessageType: newchange
John Su has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47691 )
Change subject: mb/google/dedede/variants/madoo: Increase TCC offset from 5 to 10
......................................................................
mb/google/dedede/variants/madoo: Increase TCC offset from 5 to 10
Increase TCC offset value from 5 to 10 for Thermal Control Circuit (TCC)
activation.
BUG=b:171531244
TEST=build and verify by thermal team
Signed-off-by: John Su <john_su(a)compal.corp-partner.google.com>
Change-Id: Ic2822b059f166779e1f0bcf92e753dad1078783c
---
M src/mainboard/google/dedede/variants/madoo/overridetree.cb
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/47691/1
diff --git a/src/mainboard/google/dedede/variants/madoo/overridetree.cb b/src/mainboard/google/dedede/variants/madoo/overridetree.cb
index 1be1012..1bf90e7 100644
--- a/src/mainboard/google/dedede/variants/madoo/overridetree.cb
+++ b/src/mainboard/google/dedede/variants/madoo/overridetree.cb
@@ -59,7 +59,7 @@
.tdp_pl2_override = 20,
}"
- register "tcc_offset" = "5" # TCC of 95C
+ register "tcc_offset" = "10" # TCC of 90C
device domain 0 on
device pci 04.0 on
--
To view, visit https://review.coreboot.org/c/coreboot/+/47691
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic2822b059f166779e1f0bcf92e753dad1078783c
Gerrit-Change-Number: 47691
Gerrit-PatchSet: 1
Gerrit-Owner: John Su <john_su(a)compal.corp-partner.google.com>
Gerrit-MessageType: newchange
Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47719 )
Change subject: mb/google/zork: Remove 50ms WIFI delay
......................................................................
mb/google/zork: Remove 50ms WIFI delay
As a part of trying to get our boot time as low as possible, any delays
in the code should try to be refactored out. This removes the 50ms
delay in the WIFI sequence by enabling power and putting the wifi module
into reset in bootblock, then bringing it out of reset in ramstage.
This is significantly longer than the 50ms requirement. The reset GPIO
was already being set high in ramstage, so that code didn't need to be
added.
BUG=b:171513520
TEST=Boot on boards with different module types, WIFI works on both.
BRANCH=Zork
Signed-off-by: Martin Roth <martinroth(a)chromium.org>
Change-Id: I211d3da338ad368d1f011f03cf7d05121c057075
---
M src/mainboard/google/zork/variants/baseboard/gpio_baseboard_trembyle.c
1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/47719/1
diff --git a/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_trembyle.c b/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_trembyle.c
index 14b85b0..73f6314 100644
--- a/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_trembyle.c
+++ b/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_trembyle.c
@@ -199,8 +199,8 @@
* Configure WiFi GPIOs such that:
* - WIFI_AUX_RESET_L is configured first to assert PERST# to WiFi device.
* - Enable power to WiFi using EN_PWR_WIFI_L.
- * - Wait for 50ms after power to WiFi is enabled.
- * - Deassert WIFI_AUX_RESET_L.
+ * - Wait for >50ms after power to WiFi is enabled. (Time between bootblock & ramstage)
+ * - Deassert WIFI_AUX_RESET_L in mainboard_configure_gpios
*/
static const struct soc_amd_gpio v3_wifi_table[] = {
/* WIFI_AUX_RESET_L */
@@ -210,8 +210,6 @@
};
program_gpios(v3_wifi_table, ARRAY_SIZE(v3_wifi_table));
- mdelay(50);
- gpio_set(GPIO_86, 1);
}
static void wifi_power_reset_configure_active_high_power(void)
--
To view, visit https://review.coreboot.org/c/coreboot/+/47719
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I211d3da338ad368d1f011f03cf7d05121c057075
Gerrit-Change-Number: 47719
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-MessageType: newchange