diff options
-rw-r--r-- | src/soc/amd/genoa/Makefile.inc | 1 | ||||
-rw-r--r-- | src/soc/amd/genoa/chip.h | 12 | ||||
-rw-r--r-- | src/soc/amd/genoa/config.c | 12 |
3 files changed, 25 insertions, 0 deletions
diff --git a/src/soc/amd/genoa/Makefile.inc b/src/soc/amd/genoa/Makefile.inc index 164c5e91de..0e08ac6031 100644 --- a/src/soc/amd/genoa/Makefile.inc +++ b/src/soc/amd/genoa/Makefile.inc @@ -2,6 +2,7 @@ ifeq ($(CONFIG_SOC_AMD_GENOA),y) all-y += mmap_boot.c +all-y += config.c bootblock-y += early_fch.c diff --git a/src/soc/amd/genoa/chip.h b/src/soc/amd/genoa/chip.h new file mode 100644 index 0000000000..9168586228 --- /dev/null +++ b/src/soc/amd/genoa/chip.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __GENOA_CHIP_H__ +#define __GENOA_CHIP_H__ + +#include <amdblocks/chip.h> + +struct soc_amd_genoa_config { + struct soc_amd_common_config common_config; +}; + +#endif diff --git a/src/soc/amd/genoa/config.c b/src/soc/amd/genoa/config.c new file mode 100644 index 0000000000..f59964a260 --- /dev/null +++ b/src/soc/amd/genoa/config.c @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/device.h> +#include <amdblocks/chip.h> +#include <device/device.h> +#include "chip.h" + +const struct soc_amd_common_config *soc_get_common_config(void) +{ + const struct soc_amd_genoa_config *cfg = config_of_soc(); + return &cfg->common_config; +} |