From 2f5183c7af57bdefc88999bba62896bbcfe606c6 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Sat, 9 May 2020 12:57:02 -0700 Subject: [PATCH] soc/amd/common/block: Add support for common config for AMD SoCs This change adds support for struct soc_amd_common_config that allows multiple AMD SoCs to share common configuration. This can then be used by common/block drivers to get the required configuration from device tree. It also provides function declaration for soc_get_common_config() that needs to be provided by SoCs making use of the common configuration structure. Signed-off-by: Furquan Shaikh Change-Id: Idb0d797525414c99894a8e4ede65469381db7794 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41246 Reviewed-by: Raul Rangel Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- .../amd/common/block/include/amdblocks/chip.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/soc/amd/common/block/include/amdblocks/chip.h diff --git a/src/soc/amd/common/block/include/amdblocks/chip.h b/src/soc/amd/common/block/include/amdblocks/chip.h new file mode 100644 index 0000000000..26ad26a6b1 --- /dev/null +++ b/src/soc/amd/common/block/include/amdblocks/chip.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* This file is part of the coreboot project. */ + +#ifndef __AMDBLOCKS_CHIP_H__ +#define __AMDBLOCKS_CHIP_H__ + +struct soc_amd_common_config { +}; + +/* + * SoC callback that returns pointer to soc_amd_common_config structure embedded within the chip + * soc config. + */ +const struct soc_amd_common_config *soc_get_common_config(void); + +#endif