soc/amd/genoa: Add function to fetch common code dt configuration

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Signed-off-by: Varshit Pandya <pandyavarshit@gmail.com>
Change-Id: I5d5d3ff27ab0953844f9bbef30b6487fb480e29b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76500
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
This commit is contained in:
Arthur Heymans 2023-07-13 14:05:08 +02:00 committed by Felix Held
parent e4eba133cc
commit c5c35ce238
3 changed files with 25 additions and 0 deletions

View File

@ -2,6 +2,7 @@
ifeq ($(CONFIG_SOC_AMD_GENOA),y) ifeq ($(CONFIG_SOC_AMD_GENOA),y)
all-y += mmap_boot.c all-y += mmap_boot.c
all-y += config.c
bootblock-y += early_fch.c bootblock-y += early_fch.c

12
src/soc/amd/genoa/chip.h Normal file
View File

@ -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

View File

@ -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;
}