From d6e287f41055e8893da6c6b663f60913a878ee92 Mon Sep 17 00:00:00 2001 From: Daniel Peng Date: Mon, 19 Feb 2024 21:42:28 +0800 Subject: mb/google/brya: Create glassway variant Create the glassway variant of the nivviks reference board by copying the template files to a new directory named for the variant. BUG=b:319071869 BRANCH=firmware-nissa-15217.B TEST=None Change-Id: I597666a5be6f71b82c7baddbe343da3d5117dd1c Signed-off-by: Daniel Peng Reviewed-on: https://review.coreboot.org/c/coreboot/+/80636 Tested-by: build bot (Jenkins) Reviewed-by: Kapil Porwal Reviewed-by: Daniel Peng Reviewed-by: Subrata Banik Reviewed-by: Eric Lai --- src/mainboard/google/brya/Kconfig | 6 ++++++ src/mainboard/google/brya/Kconfig.name | 3 +++ .../google/brya/variants/glassway/include/variant/ec.h | 8 ++++++++ .../google/brya/variants/glassway/include/variant/gpio.h | 8 ++++++++ .../google/brya/variants/glassway/memory/Makefile.mk | 5 +++++ .../brya/variants/glassway/memory/dram_id.generated.txt | 1 + .../google/brya/variants/glassway/memory/mem_parts_used.txt | 11 +++++++++++ src/mainboard/google/brya/variants/glassway/overridetree.cb | 6 ++++++ 8 files changed, 48 insertions(+) create mode 100644 src/mainboard/google/brya/variants/glassway/include/variant/ec.h create mode 100644 src/mainboard/google/brya/variants/glassway/include/variant/gpio.h create mode 100644 src/mainboard/google/brya/variants/glassway/memory/Makefile.mk create mode 100644 src/mainboard/google/brya/variants/glassway/memory/dram_id.generated.txt create mode 100644 src/mainboard/google/brya/variants/glassway/memory/mem_parts_used.txt create mode 100644 src/mainboard/google/brya/variants/glassway/overridetree.cb (limited to 'src/mainboard') diff --git a/src/mainboard/google/brya/Kconfig b/src/mainboard/google/brya/Kconfig index 4a38af5f2c..eb937523c8 100644 --- a/src/mainboard/google/brya/Kconfig +++ b/src/mainboard/google/brya/Kconfig @@ -234,6 +234,9 @@ config BOARD_GOOGLE_GLADIOS select INTEL_GMA_HAVE_VBT select SOC_INTEL_RAPTORLAKE +config BOARD_GOOGLE_GLASSWAY + select BOARD_GOOGLE_BASEBOARD_NISSA + config BOARD_GOOGLE_GOTHRAX select BOARD_GOOGLE_BASEBOARD_NISSA select DRIVERS_GENERIC_GPIO_KEYS @@ -590,6 +593,7 @@ config DRIVER_TPM_I2C_BUS default 0x0 if BOARD_GOOGLE_QUANDISO default 0x0 if BOARD_GOOGLE_ANRAGGAR default 0x1 if BOARD_GOOGLE_XOL + default 0x0 if BOARD_GOOGLE_GLASSWAY config DRIVER_TPM_I2C_ADDR hex @@ -673,6 +677,7 @@ config MAINBOARD_PART_NUMBER default "Dochi" if BOARD_GOOGLE_DOCHI default "Anraggar" if BOARD_GOOGLE_ANRAGGAR default "Xol" if BOARD_GOOGLE_XOL + default "Glassway" if BOARD_GOOGLE_GLASSWAY config VARIANT_DIR default "brya0" if BOARD_GOOGLE_BRYA0 @@ -727,6 +732,7 @@ config VARIANT_DIR default "dochi" if BOARD_GOOGLE_DOCHI default "anraggar" if BOARD_GOOGLE_ANRAGGAR default "xol" if BOARD_GOOGLE_XOL + default "glassway" if BOARD_GOOGLE_GLASSWAY config VBOOT select VBOOT_EARLY_EC_SYNC if !BOARD_GOOGLE_BASEBOARD_NISSA diff --git a/src/mainboard/google/brya/Kconfig.name b/src/mainboard/google/brya/Kconfig.name index 4371597858..bea92b6676 100644 --- a/src/mainboard/google/brya/Kconfig.name +++ b/src/mainboard/google/brya/Kconfig.name @@ -56,6 +56,9 @@ config BOARD_GOOGLE_GIMBLE4ES config BOARD_GOOGLE_GLADIOS bool "-> Gladios" +config BOARD_GOOGLE_GLASSWAY + bool "-> Glassway" + config BOARD_GOOGLE_GOTHRAX bool "-> Gothrax" diff --git a/src/mainboard/google/brya/variants/glassway/include/variant/ec.h b/src/mainboard/google/brya/variants/glassway/include/variant/ec.h new file mode 100644 index 0000000000..7a2a6ff8b7 --- /dev/null +++ b/src/mainboard/google/brya/variants/glassway/include/variant/ec.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef __VARIANT_EC_H__ +#define __VARIANT_EC_H__ + +#include + +#endif diff --git a/src/mainboard/google/brya/variants/glassway/include/variant/gpio.h b/src/mainboard/google/brya/variants/glassway/include/variant/gpio.h new file mode 100644 index 0000000000..c4fe342621 --- /dev/null +++ b/src/mainboard/google/brya/variants/glassway/include/variant/gpio.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef VARIANT_GPIO_H +#define VARIANT_GPIO_H + +#include + +#endif diff --git a/src/mainboard/google/brya/variants/glassway/memory/Makefile.mk b/src/mainboard/google/brya/variants/glassway/memory/Makefile.mk new file mode 100644 index 0000000000..eace2e443e --- /dev/null +++ b/src/mainboard/google/brya/variants/glassway/memory/Makefile.mk @@ -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 = placeholder diff --git a/src/mainboard/google/brya/variants/glassway/memory/dram_id.generated.txt b/src/mainboard/google/brya/variants/glassway/memory/dram_id.generated.txt new file mode 100644 index 0000000000..fa247902ee --- /dev/null +++ b/src/mainboard/google/brya/variants/glassway/memory/dram_id.generated.txt @@ -0,0 +1 @@ +DRAM Part Name ID to assign diff --git a/src/mainboard/google/brya/variants/glassway/memory/mem_parts_used.txt b/src/mainboard/google/brya/variants/glassway/memory/mem_parts_used.txt new file mode 100644 index 0000000000..2499005682 --- /dev/null +++ b/src/mainboard/google/brya/variants/glassway/memory/mem_parts_used.txt @@ -0,0 +1,11 @@ +# 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! +# Generated IDs are dependent on the order of parts in this file, +# so new parts must always be added at the end of the file! +# +# Generate an updated Makefile.mk and dram_id.generated.txt by running the +# part_id_gen tool from util/spd_tools. +# See util/spd_tools/README.md for more details and instructions. + +# Part Name diff --git a/src/mainboard/google/brya/variants/glassway/overridetree.cb b/src/mainboard/google/brya/variants/glassway/overridetree.cb new file mode 100644 index 0000000000..4f2c04a57a --- /dev/null +++ b/src/mainboard/google/brya/variants/glassway/overridetree.cb @@ -0,0 +1,6 @@ +chip soc/intel/alderlake + + device domain 0 on + end + +end -- cgit v1.2.3