From 05a50d7e133c46bdad68ed5aba9991f965feb498 Mon Sep 17 00:00:00 2001 From: Eran Mitrani Date: Mon, 16 Oct 2023 14:47:29 -0700 Subject: mb/google/rex: Create deku variant BUG=b:305793886 TEST=util/abuild/abuild -p none -t google/rex -x -a -b deku built without errors. Signed-off-by: Eran Mitrani Change-Id: I332e404e82a7980bb8ed1fb084fe957f526f81d1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78393 Reviewed-by: YH Lin Tested-by: build bot (Jenkins) Reviewed-by: Jakub Czapiga Reviewed-by: Subrata Banik --- .../google/rex/variants/deku/Makefile.inc | 5 ++++ src/mainboard/google/rex/variants/deku/gpio.c | 30 ++++++++++++++++++++++ .../google/rex/variants/deku/include/variant/ec.h | 8 ++++++ .../rex/variants/deku/include/variant/gpio.h | 8 ++++++ .../google/rex/variants/deku/memory/Makefile.inc | 5 ++++ .../rex/variants/deku/memory/dram_id.generated.txt | 3 +++ .../rex/variants/deku/memory/mem_parts_used.txt | 11 ++++++++ .../google/rex/variants/deku/overridetree.cb | 4 +++ 8 files changed, 74 insertions(+) create mode 100644 src/mainboard/google/rex/variants/deku/Makefile.inc create mode 100644 src/mainboard/google/rex/variants/deku/gpio.c create mode 100644 src/mainboard/google/rex/variants/deku/include/variant/ec.h create mode 100644 src/mainboard/google/rex/variants/deku/include/variant/gpio.h create mode 100644 src/mainboard/google/rex/variants/deku/memory/Makefile.inc create mode 100644 src/mainboard/google/rex/variants/deku/memory/dram_id.generated.txt create mode 100644 src/mainboard/google/rex/variants/deku/memory/mem_parts_used.txt create mode 100644 src/mainboard/google/rex/variants/deku/overridetree.cb (limited to 'src/mainboard/google/rex/variants') diff --git a/src/mainboard/google/rex/variants/deku/Makefile.inc b/src/mainboard/google/rex/variants/deku/Makefile.inc new file mode 100644 index 0000000000..91f031e7a4 --- /dev/null +++ b/src/mainboard/google/rex/variants/deku/Makefile.inc @@ -0,0 +1,5 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += gpio.c +romstage-y += gpio.c +ramstage-y += gpio.c diff --git a/src/mainboard/google/rex/variants/deku/gpio.c b/src/mainboard/google/rex/variants/deku/gpio.c new file mode 100644 index 0000000000..b6e346f5a4 --- /dev/null +++ b/src/mainboard/google/rex/variants/deku/gpio.c @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include +#include +#include +#include +#include + +const struct pad_config *variant_gpio_table(size_t *num) +{ + *num = 0; + return NULL; +} + +const struct pad_config *variant_early_gpio_table(size_t *num) +{ + *num = 0; + return NULL; +} + +static const struct cros_gpio cros_gpios[] = { +}; + +DECLARE_CROS_GPIOS(cros_gpios); + +const struct pad_config *variant_romstage_gpio_table(size_t *num) +{ + *num = 0; + return NULL; +} diff --git a/src/mainboard/google/rex/variants/deku/include/variant/ec.h b/src/mainboard/google/rex/variants/deku/include/variant/ec.h new file mode 100644 index 0000000000..4fc0622f15 --- /dev/null +++ b/src/mainboard/google/rex/variants/deku/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/rex/variants/deku/include/variant/gpio.h b/src/mainboard/google/rex/variants/deku/include/variant/gpio.h new file mode 100644 index 0000000000..27c87b3fe7 --- /dev/null +++ b/src/mainboard/google/rex/variants/deku/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/rex/variants/deku/memory/Makefile.inc b/src/mainboard/google/rex/variants/deku/memory/Makefile.inc new file mode 100644 index 0000000000..eace2e443e --- /dev/null +++ b/src/mainboard/google/rex/variants/deku/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 diff --git a/src/mainboard/google/rex/variants/deku/memory/dram_id.generated.txt b/src/mainboard/google/rex/variants/deku/memory/dram_id.generated.txt new file mode 100644 index 0000000000..b243b02bf0 --- /dev/null +++ b/src/mainboard/google/rex/variants/deku/memory/dram_id.generated.txt @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +DRAM Part Name ID to assign diff --git a/src/mainboard/google/rex/variants/deku/memory/mem_parts_used.txt b/src/mainboard/google/rex/variants/deku/memory/mem_parts_used.txt new file mode 100644 index 0000000000..96211370d9 --- /dev/null +++ b/src/mainboard/google/rex/variants/deku/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 +# 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/rex/variants/deku/overridetree.cb b/src/mainboard/google/rex/variants/deku/overridetree.cb new file mode 100644 index 0000000000..b68840fad0 --- /dev/null +++ b/src/mainboard/google/rex/variants/deku/overridetree.cb @@ -0,0 +1,4 @@ +chip soc/intel/meteorlake + device domain 0 on + end +end -- cgit v1.2.3