soc/amd/cezanne: add config.c and minimal chip.h

Change-Id: I89f08c201bd7d9a11b186ef960abe9714a76fb97
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48317
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
Felix Held 2020-12-05 01:39:28 +01:00
parent 04f079d396
commit c8272783db
4 changed files with 27 additions and 0 deletions

View File

@ -2,6 +2,8 @@
ifeq ($(CONFIG_SOC_AMD_CEZANNE),y) ifeq ($(CONFIG_SOC_AMD_CEZANNE),y)
all-y += config.c
bootblock-y += bootblock.c bootblock-y += bootblock.c
romstage-y += romstage.c romstage-y += romstage.c

View File

@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/device.h> #include <device/device.h>
#include "chip.h"
struct chip_operations soc_amd_cezanne_ops = { NULL }; struct chip_operations soc_amd_cezanne_ops = { NULL };

View File

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef CEZANNE_CHIP_H
#define CEZANNE_CHIP_H
#include <amdblocks/chip.h>
struct soc_amd_cezanne_config {
struct soc_amd_common_config common_config;
};
#endif /* CEZANNE_CHIP_H */

View File

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/chip.h>
#include <device/device.h>
#include "chip.h"
const struct soc_amd_common_config *soc_get_common_config()
{
/* config_of_soc calls die() internally if cfg was NULL, so no need to re-check */
const struct soc_amd_cezanne_config *cfg = config_of_soc();
return &cfg->common_config;
}