diff options
author | Martin Roth <gaumless@gmail.com> | 2022-10-21 16:43:08 -0600 |
---|---|---|
committer | Martin Roth <martin.roth@amd.corp-partner.google.com> | 2022-10-25 18:18:37 +0000 |
commit | f95a11eff5217a396dc43288f0c547559b5d221a (patch) | |
tree | dab493e74f11acfaae6d5fed0add160288874f1e /src/soc/amd/glinda/config.c | |
parent | 0a5da517c4f8ebb8e13ec523ea073c503bd7fcaa (diff) |
soc/amd: Add framework for Glinda SoC
This adds the initial framework for the Glinda SoC, based on what's been
done for Morgana already.
I believe that there's more that can be made common, but that work will
continue as both platforms are developed.
Signed-off-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Change-Id: I43d0fdb711c441dc410a14f6bb04b808abefe920
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68684
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/soc/amd/glinda/config.c')
-rw-r--r-- | src/soc/amd/glinda/config.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/soc/amd/glinda/config.c b/src/soc/amd/glinda/config.c new file mode 100644 index 0000000000..f667475302 --- /dev/null +++ b/src/soc/amd/glinda/config.c @@ -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(void) +{ + /* config_of_soc calls die() internally if cfg was NULL, so no need to re-check */ + const struct soc_amd_glinda_config *cfg = config_of_soc(); + return &cfg->common_config; +} |