From f73580f6242925487e9a39545ad84da7ec907453 Mon Sep 17 00:00:00 2001 From: Kevin Chiu Date: Wed, 18 Nov 2020 23:24:13 +0800 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/47717 Tested-by: build bot (Jenkins) Reviewed-by: Rob Barnes --- src/mainboard/google/zork/Kconfig | 2 ++ src/mainboard/google/zork/Kconfig.name | 4 +++ .../google/zork/variants/gumboz/Makefile.inc | 3 ++ .../variants/gumboz/include/variant/acpi/audio.asl | 3 ++ .../gumboz/include/variant/acpi/mainboard.asl | 3 ++ .../gumboz/include/variant/acpi/thermal.asl | 3 ++ .../zork/variants/gumboz/include/variant/ec.h | 3 ++ .../zork/variants/gumboz/include/variant/gpio.h | 3 ++ .../zork/variants/gumboz/include/variant/thermal.h | 3 ++ .../google/zork/variants/gumboz/overridetree.cb | 42 ++++++++++++++++++++++ .../google/zork/variants/gumboz/spd/Makefile.inc | 5 +++ .../zork/variants/gumboz/spd/dram_id.generated.txt | 1 + .../zork/variants/gumboz/spd/mem_parts_used.txt | 9 +++++ 13 files changed, 84 insertions(+) create mode 100644 src/mainboard/google/zork/variants/gumboz/Makefile.inc create mode 100644 src/mainboard/google/zork/variants/gumboz/include/variant/acpi/audio.asl create mode 100644 src/mainboard/google/zork/variants/gumboz/include/variant/acpi/mainboard.asl create mode 100644 src/mainboard/google/zork/variants/gumboz/include/variant/acpi/thermal.asl create mode 100644 src/mainboard/google/zork/variants/gumboz/include/variant/ec.h create mode 100644 src/mainboard/google/zork/variants/gumboz/include/variant/gpio.h create mode 100644 src/mainboard/google/zork/variants/gumboz/include/variant/thermal.h create mode 100644 src/mainboard/google/zork/variants/gumboz/overridetree.cb create mode 100644 src/mainboard/google/zork/variants/gumboz/spd/Makefile.inc create mode 100644 src/mainboard/google/zork/variants/gumboz/spd/dram_id.generated.txt create mode 100644 src/mainboard/google/zork/variants/gumboz/spd/mem_parts_used.txt diff --git a/src/mainboard/google/zork/Kconfig b/src/mainboard/google/zork/Kconfig index a0606cc59a..36824e651d 100644 --- a/src/mainboard/google/zork/Kconfig +++ b/src/mainboard/google/zork/Kconfig @@ -72,6 +72,7 @@ config VARIANT_DIR 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 @@ config MAINBOARD_PART_NUMBER 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 8ed43f0a8b..6c6657cecd 100644 --- a/src/mainboard/google/zork/Kconfig.name +++ b/src/mainboard/google/zork/Kconfig.name @@ -35,3 +35,7 @@ config BOARD_GOOGLE_DIRINBOZ 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 0000000000..295acd25c9 --- /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 0000000000..900e36f277 --- /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 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 0000000000..a1161edb5f --- /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 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 0000000000..7a793d8102 --- /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 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 0000000000..9e61a440cf --- /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 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 0000000000..dfaeec3ae1 --- /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 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 0000000000..2af647973d --- /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 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 0000000000..1cc2364f5e --- /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 0000000000..3edeb9606c --- /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 0000000000..fa247902ee --- /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 0000000000..106a705a36 --- /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) -- cgit v1.2.3