diff options
author | Furquan Shaikh <furquan@google.com> | 2020-05-09 14:26:37 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-05-12 20:04:24 +0000 |
commit | 033aa0dfc3e6c2478b6e21a75c751293ddeb6d35 (patch) | |
tree | 1cb778caa063f7680cd081a065fd185108d78b6a /src/soc/amd/picasso/config.c | |
parent | 08c524c0b7266fd9f51e0d412bdac2b4d14c09e0 (diff) |
soc/amd/picasso: Add support for using common SoC configuration
This change adds support for using common SoC configuration by adding
soc_amd_common_config to soc_amd_picasso_config and helper function to
return pointer to the structure to amd common block code.
Change-Id: I8bd4eac3b19c9ded2d9a3e95ac077f014730f9d1
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41249
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/amd/picasso/config.c')
-rw-r--r-- | src/soc/amd/picasso/config.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/soc/amd/picasso/config.c b/src/soc/amd/picasso/config.c new file mode 100644 index 0000000000..5d52e7affa --- /dev/null +++ b/src/soc/amd/picasso/config.c @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* This file is part of the coreboot project. */ + +#include <amdblocks/chip.h> +#include <device/device.h> +#include "chip.h" + +const struct soc_amd_common_config *soc_get_common_config() +{ + const struct soc_amd_picasso_config *cfg = config_of_soc(); + return &cfg->common_config; +} |