blob: f1384bb5b02979476357b2107f80284b13b69545 [file] [log] [blame]
Furquan Shaikh033aa0d2020-05-09 14:26:37 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Furquan Shaikh033aa0d2020-05-09 14:26:37 -07002
3#include <amdblocks/chip.h>
4#include <device/device.h>
5#include "chip.h"
6
Elyes HAOUASeb9e63f2022-01-25 11:51:43 +01007const struct soc_amd_common_config *soc_get_common_config(void)
Furquan Shaikh033aa0d2020-05-09 14:26:37 -07008{
Felix Held04f079d2020-12-05 19:04:32 +01009 /* config_of_soc calls die() internally if cfg was NULL, so no need to re-check */
Furquan Shaikh033aa0d2020-05-09 14:26:37 -070010 const struct soc_amd_picasso_config *cfg = config_of_soc();
11 return &cfg->common_config;
12}