From d888f61f083cc68ff891b4b21191e1a8c5647307 Mon Sep 17 00:00:00 2001 From: Varshit Pandya Date: Thu, 31 Aug 2023 22:18:48 +0530 Subject: [PATCH] mb/amd/onyx: Add minimal code for onyx compilation Change-Id: I25807e116869d1bd7b8324525bc5ae1691e072e4 Signed-off-by: Varshit Pandya Reviewed-on: https://review.coreboot.org/c/coreboot/+/77601 Reviewed-by: Martin L Roth Tested-by: build bot (Jenkins) --- src/mainboard/amd/onyx/Kconfig | 14 ++++++++++++++ src/mainboard/amd/onyx/Kconfig.name | 2 ++ src/mainboard/amd/onyx/board_info.txt | 1 + src/mainboard/amd/onyx/devicetree.cb | 6 ++++++ src/mainboard/amd/onyx/dsdt.asl | 13 +++++++++++++ 5 files changed, 36 insertions(+) create mode 100644 src/mainboard/amd/onyx/Kconfig create mode 100644 src/mainboard/amd/onyx/Kconfig.name create mode 100644 src/mainboard/amd/onyx/board_info.txt create mode 100644 src/mainboard/amd/onyx/devicetree.cb create mode 100644 src/mainboard/amd/onyx/dsdt.asl diff --git a/src/mainboard/amd/onyx/Kconfig b/src/mainboard/amd/onyx/Kconfig new file mode 100644 index 0000000000..ce1b980359 --- /dev/null +++ b/src/mainboard/amd/onyx/Kconfig @@ -0,0 +1,14 @@ +if BOARD_AMD_ONYX + +config BOARD_SPECIFIC_OPTIONS + def_bool y + select SOC_AMD_GENOA + select MISSING_BOARD_RESET + +config MAINBOARD_DIR + default "amd/onyx" + +config MAINBOARD_PART_NUMBER + default "Onyx" + +endif diff --git a/src/mainboard/amd/onyx/Kconfig.name b/src/mainboard/amd/onyx/Kconfig.name new file mode 100644 index 0000000000..0dc99a735b --- /dev/null +++ b/src/mainboard/amd/onyx/Kconfig.name @@ -0,0 +1,2 @@ +config BOARD_AMD_ONYX + bool "Onyx" diff --git a/src/mainboard/amd/onyx/board_info.txt b/src/mainboard/amd/onyx/board_info.txt new file mode 100644 index 0000000000..b351b8e696 --- /dev/null +++ b/src/mainboard/amd/onyx/board_info.txt @@ -0,0 +1 @@ +Category: eval diff --git a/src/mainboard/amd/onyx/devicetree.cb b/src/mainboard/amd/onyx/devicetree.cb new file mode 100644 index 0000000000..5f447b2540 --- /dev/null +++ b/src/mainboard/amd/onyx/devicetree.cb @@ -0,0 +1,6 @@ +chip soc/amd/genoa + + device domain 0 on + end + +end diff --git a/src/mainboard/amd/onyx/dsdt.asl b/src/mainboard/amd/onyx/dsdt.asl new file mode 100644 index 0000000000..ecfe7a5ebe --- /dev/null +++ b/src/mainboard/amd/onyx/dsdt.asl @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* DefinitionBlock Statement */ +#include +DefinitionBlock ( + "dsdt.aml", + "DSDT", + ACPI_DSDT_REV_2, + OEM_ID, + ACPI_TABLE_CREATOR, + 0x00010001 /* OEM Revision */ +) +} /* End of ASL file */