soc/amd/picasso/acp: use config_of_soc()
Change-Id: I815b013438d66eef6605dba7cfbd96b9a4aff9b2 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42477 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
34fb9399de
commit
71800909f3
|
@ -16,15 +16,11 @@
|
||||||
static void init(struct device *dev)
|
static void init(struct device *dev)
|
||||||
{
|
{
|
||||||
const struct soc_amd_picasso_config *cfg;
|
const struct soc_amd_picasso_config *cfg;
|
||||||
const struct device *nb_dev = pcidev_path_on_root(GNB_DEVFN);
|
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
uintptr_t bar;
|
uintptr_t bar;
|
||||||
|
|
||||||
/* Set the proper I2S_PIN_CONFIG state */
|
/* Set the proper I2S_PIN_CONFIG state */
|
||||||
if (!nb_dev || !nb_dev->chip_info)
|
cfg = config_of_soc();
|
||||||
return;
|
|
||||||
|
|
||||||
cfg = nb_dev->chip_info;
|
|
||||||
|
|
||||||
res = dev->resource_list;
|
res = dev->resource_list;
|
||||||
if (!res || !res->base) {
|
if (!res || !res->base) {
|
||||||
|
|
Loading…
Reference in New Issue