Furquan Shaikh | 033aa0d | 2020-05-09 14:26:37 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Furquan Shaikh | 033aa0d | 2020-05-09 14:26:37 -0700 | [diff] [blame] | 2 | |
| 3 | #include <amdblocks/chip.h> |
| 4 | #include <device/device.h> |
| 5 | #include "chip.h" |
| 6 | |
Elyes HAOUAS | eb9e63f | 2022-01-25 11:51:43 +0100 | [diff] [blame] | 7 | const struct soc_amd_common_config *soc_get_common_config(void) |
Furquan Shaikh | 033aa0d | 2020-05-09 14:26:37 -0700 | [diff] [blame] | 8 | { |
Felix Held | 04f079d | 2020-12-05 19:04:32 +0100 | [diff] [blame] | 9 | /* config_of_soc calls die() internally if cfg was NULL, so no need to re-check */ |
Furquan Shaikh | 033aa0d | 2020-05-09 14:26:37 -0700 | [diff] [blame] | 10 | const struct soc_amd_picasso_config *cfg = config_of_soc(); |
| 11 | return &cfg->common_config; |
| 12 | } |