From adc9e63c59829dba78888914c740a7dbf073508d Mon Sep 17 00:00:00 2001 From: Bhanu Prakash Maiya Date: Tue, 10 Aug 2021 15:58:58 -0700 Subject: [PATCH] util/mb/google: add template files for guybrush Create template for guyrbsuh variant creation. BRANCH=none BUG=b:194031783 TEST=n/a Change-Id: If62c1a63d0890539d4b43f840f75ee9d7ceab4f8 Signed-off-by: Bhanu Prakash Maiya Signed-off-by: Karthikeyan Ramasubramanian Reviewed-on: https://review.coreboot.org/c/coreboot/+/56918 Tested-by: build bot (Jenkins) Reviewed-by: Paul Fagerburg --- util/mainboard/google/guybrush/template/Makefile.inc | 3 +++ .../google/guybrush/template/include/variant/ec.h | 3 +++ .../google/guybrush/template/include/variant/gpio.h | 3 +++ .../google/guybrush/template/memory/Makefile.inc | 5 +++++ .../guybrush/template/memory/dram_id.generated.txt | 1 + .../guybrush/template/memory/mem_parts_used.txt | 11 +++++++++++ .../google/guybrush/template/overridetree.cb | 7 +++++++ 7 files changed, 33 insertions(+) create mode 100644 util/mainboard/google/guybrush/template/Makefile.inc create mode 100644 util/mainboard/google/guybrush/template/include/variant/ec.h create mode 100644 util/mainboard/google/guybrush/template/include/variant/gpio.h create mode 100644 util/mainboard/google/guybrush/template/memory/Makefile.inc create mode 100644 util/mainboard/google/guybrush/template/memory/dram_id.generated.txt create mode 100644 util/mainboard/google/guybrush/template/memory/mem_parts_used.txt create mode 100644 util/mainboard/google/guybrush/template/overridetree.cb diff --git a/util/mainboard/google/guybrush/template/Makefile.inc b/util/mainboard/google/guybrush/template/Makefile.inc new file mode 100644 index 0000000000..88e75bde52 --- /dev/null +++ b/util/mainboard/google/guybrush/template/Makefile.inc @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +subdirs-y += ./memory diff --git a/util/mainboard/google/guybrush/template/include/variant/ec.h b/util/mainboard/google/guybrush/template/include/variant/ec.h new file mode 100644 index 0000000000..9e61a440cf --- /dev/null +++ b/util/mainboard/google/guybrush/template/include/variant/ec.h @@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include diff --git a/util/mainboard/google/guybrush/template/include/variant/gpio.h b/util/mainboard/google/guybrush/template/include/variant/gpio.h new file mode 100644 index 0000000000..dfaeec3ae1 --- /dev/null +++ b/util/mainboard/google/guybrush/template/include/variant/gpio.h @@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include diff --git a/util/mainboard/google/guybrush/template/memory/Makefile.inc b/util/mainboard/google/guybrush/template/memory/Makefile.inc new file mode 100644 index 0000000000..b0ca2223a8 --- /dev/null +++ b/util/mainboard/google/guybrush/template/memory/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 = placeholder.spd.hex diff --git a/util/mainboard/google/guybrush/template/memory/dram_id.generated.txt b/util/mainboard/google/guybrush/template/memory/dram_id.generated.txt new file mode 100644 index 0000000000..fa247902ee --- /dev/null +++ b/util/mainboard/google/guybrush/template/memory/dram_id.generated.txt @@ -0,0 +1 @@ +DRAM Part Name ID to assign diff --git a/util/mainboard/google/guybrush/template/memory/mem_parts_used.txt b/util/mainboard/google/guybrush/template/memory/mem_parts_used.txt new file mode 100644 index 0000000000..8124e4f7ed --- /dev/null +++ b/util/mainboard/google/guybrush/template/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.inc and dram_id.generated.txt by running the +# gen_part_id tool from util/spd_tools/{ddr4,lp4x}. +# See util/spd_tools/{ddr4,lp4x}/README.md for more details and instructions. + +# Part Name, Fixed ID (optional) diff --git a/util/mainboard/google/guybrush/template/overridetree.cb b/util/mainboard/google/guybrush/template/overridetree.cb new file mode 100644 index 0000000000..c182265075 --- /dev/null +++ b/util/mainboard/google/guybrush/template/overridetree.cb @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +chip soc/amd/cezanne + device domain 0 on + + end # domain +end # chip soc/amd/cezanne