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:
parent
04f079d396
commit
c8272783db
|
@ -2,6 +2,8 @@
|
|||
|
||||
ifeq ($(CONFIG_SOC_AMD_CEZANNE),y)
|
||||
|
||||
all-y += config.c
|
||||
|
||||
bootblock-y += bootblock.c
|
||||
|
||||
romstage-y += romstage.c
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <device/device.h>
|
||||
#include "chip.h"
|
||||
|
||||
struct chip_operations soc_amd_cezanne_ops = { NULL };
|
||||
|
|
|
@ -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 */
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue