From ed74337c3a1f19656becd23cc46a914f6ec3de67 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Mon, 21 Mar 2022 22:08:37 +0000 Subject: mb/google/rex: Add MTL reference platform This commit is a stub for rex, which is a an Intel Meteor Lake-P reference platform. BUG=b:224325352 TEST=util/abuild/abuild -p none -t google/rex -a -c max Signed-off-by: Subrata Banik Change-Id: I46bd8d47b370cacbe0a09bbeaccacf7f1d51d8b6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62969 Reviewed-by: Felix Singer Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/mainboard/google/rex/Kconfig | 34 ++++++++++++++++++++++ src/mainboard/google/rex/Kconfig.name | 4 +++ src/mainboard/google/rex/board_info.txt | 6 ++++ src/mainboard/google/rex/dsdt.asl | 14 +++++++++ .../rex/variants/baseboard/rex/devicetree.cb | 5 ++++ 5 files changed, 63 insertions(+) create mode 100644 src/mainboard/google/rex/Kconfig create mode 100644 src/mainboard/google/rex/Kconfig.name create mode 100644 src/mainboard/google/rex/board_info.txt create mode 100644 src/mainboard/google/rex/dsdt.asl create mode 100644 src/mainboard/google/rex/variants/baseboard/rex/devicetree.cb (limited to 'src/mainboard') diff --git a/src/mainboard/google/rex/Kconfig b/src/mainboard/google/rex/Kconfig new file mode 100644 index 0000000000..b9388a3f36 --- /dev/null +++ b/src/mainboard/google/rex/Kconfig @@ -0,0 +1,34 @@ +config BOARD_GOOGLE_REX_COMMON + def_bool n + select BOARD_ROMSIZE_KB_32768 + select HAVE_ACPI_TABLES + +config BOARD_GOOGLE_BASEBOARD_REX + def_bool n + select BOARD_GOOGLE_REX_COMMON + select SOC_INTEL_METEORLAKE + select SYSTEM_TYPE_LAPTOP + +config BOARD_GOOGLE_REX0 + select BOARD_GOOGLE_BASEBOARD_REX + +if BOARD_GOOGLE_REX_COMMON + +config BASEBOARD_DIR + string + default "rex" if BOARD_GOOGLE_BASEBOARD_REX + +config DEVICETREE + default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree.cb" + +config MAINBOARD_DIR + default "google/rex" + +config MAINBOARD_FAMILY + string + default "Google_Rex" if BOARD_GOOGLE_BASEBOARD_REX + +config MAINBOARD_PART_NUMBER + default "Rex" if BOARD_GOOGLE_REX0 + +endif # BOARD_GOOGLE_REX_COMMON diff --git a/src/mainboard/google/rex/Kconfig.name b/src/mainboard/google/rex/Kconfig.name new file mode 100644 index 0000000000..d74c499390 --- /dev/null +++ b/src/mainboard/google/rex/Kconfig.name @@ -0,0 +1,4 @@ +comment "Rex" + +config BOARD_GOOGLE_REX0 + bool "-> Rex 0" diff --git a/src/mainboard/google/rex/board_info.txt b/src/mainboard/google/rex/board_info.txt new file mode 100644 index 0000000000..c07d5df846 --- /dev/null +++ b/src/mainboard/google/rex/board_info.txt @@ -0,0 +1,6 @@ +Vendor name: Google +Board name: Rex +Category: laptop +ROM protocol: SPI +ROM socketed: n +Flashrom support: y diff --git a/src/mainboard/google/rex/dsdt.asl b/src/mainboard/google/rex/dsdt.asl new file mode 100644 index 0000000000..10d08e26e2 --- /dev/null +++ b/src/mainboard/google/rex/dsdt.asl @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include + +DefinitionBlock( + "dsdt.aml", + "DSDT", + ACPI_DSDT_REV_2, + OEM_ID, + ACPI_TABLE_CREATOR, + 0x20110725 // OEM revision +) +{ +} diff --git a/src/mainboard/google/rex/variants/baseboard/rex/devicetree.cb b/src/mainboard/google/rex/variants/baseboard/rex/devicetree.cb new file mode 100644 index 0000000000..bf90c4e381 --- /dev/null +++ b/src/mainboard/google/rex/variants/baseboard/rex/devicetree.cb @@ -0,0 +1,5 @@ +chip soc/intel/meteorlake + device cpu_cluster 0 on + device lapic 0 on end + end +end -- cgit v1.2.3