From 45145ba805a83d89de8888b7dc9f06db0a636b06 Mon Sep 17 00:00:00 2001 From: Eren Peng Date: Mon, 1 Apr 2024 11:12:02 +0800 Subject: mb/google/brox: Create greenbayupoc variant Create the greenbayupoc variant of the brox reference board by copying the template files to a new directory named for the variant. BUG=b:329530883 BRANCH=None TEST=util/abuild/abuild -p none -t google/brox -x -a make sure the build includes GOOGLE_GREENBAYUPOC. Change-Id: I90936d97b41e59c49dd92997146caf580bce1f4f Signed-off-by: Eren Peng Reviewed-on: https://review.coreboot.org/c/coreboot/+/81565 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Karthik Ramasubramanian Reviewed-by: Shelley Chen --- src/mainboard/google/brox/Kconfig | 5 +++++ src/mainboard/google/brox/Kconfig.name | 3 +++ .../google/brox/variants/greenbayupoc/include/variant/ec.h | 8 ++++++++ .../google/brox/variants/greenbayupoc/include/variant/gpio.h | 8 ++++++++ .../google/brox/variants/greenbayupoc/memory/Makefile.mk | 5 +++++ .../brox/variants/greenbayupoc/memory/dram_id.generated.txt | 6 ++++++ .../brox/variants/greenbayupoc/memory/mem_parts_used.txt | 11 +++++++++++ .../google/brox/variants/greenbayupoc/overridetree.cb | 6 ++++++ 8 files changed, 52 insertions(+) create mode 100644 src/mainboard/google/brox/variants/greenbayupoc/include/variant/ec.h create mode 100644 src/mainboard/google/brox/variants/greenbayupoc/include/variant/gpio.h create mode 100644 src/mainboard/google/brox/variants/greenbayupoc/memory/Makefile.mk create mode 100644 src/mainboard/google/brox/variants/greenbayupoc/memory/dram_id.generated.txt create mode 100644 src/mainboard/google/brox/variants/greenbayupoc/memory/mem_parts_used.txt create mode 100644 src/mainboard/google/brox/variants/greenbayupoc/overridetree.cb (limited to 'src/mainboard/google/brox') diff --git a/src/mainboard/google/brox/Kconfig b/src/mainboard/google/brox/Kconfig index e7f965a152..9bc71ca0fb 100644 --- a/src/mainboard/google/brox/Kconfig +++ b/src/mainboard/google/brox/Kconfig @@ -64,6 +64,9 @@ config BOARD_GOOGLE_BROX_EC_ISH select CHROMEOS_WIFI_SAR if CHROMEOS select SOC_INTEL_STORE_ISH_FW_VERSION +config BOARD_GOOGLE_GREENBAYUPOC + select BOARD_GOOGLE_BASEBOARD_BROX + if BOARD_GOOGLE_BROX_COMMON config BASEBOARD_DIR @@ -114,9 +117,11 @@ config MAINBOARD_FAMILY config MAINBOARD_PART_NUMBER default "Brox_Ec_Ish" if BOARD_GOOGLE_BROX_EC_ISH default "Brox" if BOARD_GOOGLE_BROX + default "Greenbayupoc" if BOARD_GOOGLE_GREENBAYUPOC config VARIANT_DIR default "brox" if BOARD_GOOGLE_BROX || BOARD_GOOGLE_BROX_EC_ISH + default "greenbayupoc" if BOARD_GOOGLE_GREENBAYUPOC config VBOOT select VBOOT_LID_SWITCH diff --git a/src/mainboard/google/brox/Kconfig.name b/src/mainboard/google/brox/Kconfig.name index 2ad34571f3..37fc310b9a 100644 --- a/src/mainboard/google/brox/Kconfig.name +++ b/src/mainboard/google/brox/Kconfig.name @@ -7,3 +7,6 @@ config BOARD_GOOGLE_BROX config BOARD_GOOGLE_BROX_EC_ISH bool "-> Brox EC ISH" + +config BOARD_GOOGLE_GREENBAYUPOC + bool "-> Greenbayupoc" diff --git a/src/mainboard/google/brox/variants/greenbayupoc/include/variant/ec.h b/src/mainboard/google/brox/variants/greenbayupoc/include/variant/ec.h new file mode 100644 index 0000000000..4fc0622f15 --- /dev/null +++ b/src/mainboard/google/brox/variants/greenbayupoc/include/variant/ec.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef MAINBOARD_EC_H +#define MAINBOARD_EC_H + +#include + +#endif /* MAINBOARD_GPIO_H */ diff --git a/src/mainboard/google/brox/variants/greenbayupoc/include/variant/gpio.h b/src/mainboard/google/brox/variants/greenbayupoc/include/variant/gpio.h new file mode 100644 index 0000000000..27c87b3fe7 --- /dev/null +++ b/src/mainboard/google/brox/variants/greenbayupoc/include/variant/gpio.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef __MAINBOARD_GPIO_H__ +#define __MAINBOARD_GPIO_H__ + +#include + +#endif /* __MAINBOARD_GPIO_H__ */ diff --git a/src/mainboard/google/brox/variants/greenbayupoc/memory/Makefile.mk b/src/mainboard/google/brox/variants/greenbayupoc/memory/Makefile.mk new file mode 100644 index 0000000000..eace2e443e --- /dev/null +++ b/src/mainboard/google/brox/variants/greenbayupoc/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/brox/variants/greenbayupoc/memory/dram_id.generated.txt b/src/mainboard/google/brox/variants/greenbayupoc/memory/dram_id.generated.txt new file mode 100644 index 0000000000..2e0f37a10a --- /dev/null +++ b/src/mainboard/google/brox/variants/greenbayupoc/memory/dram_id.generated.txt @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# This is an auto-generated file. Do not edit!! +# Generated by: +# ./util/spd_tools/bin/part_id_gen ADL lp5 src/mainboard/google/brox/variants/brox/memory src/mainboard/google/brox/variants/brox/memory/mem_parts_used.txt + +DRAM Part Name ID to assign diff --git a/src/mainboard/google/brox/variants/greenbayupoc/memory/mem_parts_used.txt b/src/mainboard/google/brox/variants/greenbayupoc/memory/mem_parts_used.txt new file mode 100644 index 0000000000..2499005682 --- /dev/null +++ b/src/mainboard/google/brox/variants/greenbayupoc/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/brox/variants/greenbayupoc/overridetree.cb b/src/mainboard/google/brox/variants/greenbayupoc/overridetree.cb new file mode 100644 index 0000000000..e707a9b6b9 --- /dev/null +++ b/src/mainboard/google/brox/variants/greenbayupoc/overridetree.cb @@ -0,0 +1,6 @@ +chip soc/intel/alderlake + + device domain 0 on + end + +end -- cgit v1.2.3