diff options
author | Furquan Shaikh <furquan@google.com> | 2020-05-09 12:57:02 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-05-12 18:58:54 +0000 |
commit | 2f5183c7af57bdefc88999bba62896bbcfe606c6 (patch) | |
tree | d0363a5619e3644b53e929344d940f9fc7fd37a7 /src/soc/amd/common/block | |
parent | f2c32515ee9a4f4db46ee51210143c2b6e4ee987 (diff) |
soc/amd/common/block: Add support for common config for AMD SoCs
This change adds support for struct soc_amd_common_config that allows
multiple AMD SoCs to share common configuration. This can then be used
by common/block drivers to get the required configuration from device
tree. It also provides function declaration for
soc_get_common_config() that needs to be provided by SoCs making use
of the common configuration structure.
Signed-off-by: Furquan Shaikh <furquan@google.com>
Change-Id: Idb0d797525414c99894a8e4ede65469381db7794
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41246
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/common/block')
-rw-r--r-- | src/soc/amd/common/block/include/amdblocks/chip.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/chip.h b/src/soc/amd/common/block/include/amdblocks/chip.h new file mode 100644 index 0000000000..26ad26a6b1 --- /dev/null +++ b/src/soc/amd/common/block/include/amdblocks/chip.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* This file is part of the coreboot project. */ + +#ifndef __AMDBLOCKS_CHIP_H__ +#define __AMDBLOCKS_CHIP_H__ + +struct soc_amd_common_config { +}; + +/* + * SoC callback that returns pointer to soc_amd_common_config structure embedded within the chip + * soc config. + */ +const struct soc_amd_common_config *soc_get_common_config(void); + +#endif |