soc/intel: Use config_of()
Change-Id: I0727a6b327410197cf32f598d1312737744386b3 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34328 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: David Guckian
This commit is contained in:
@ -52,12 +52,12 @@ void soc_add_fixed_mmio_resources(struct device *dev, int *index)
|
||||
{ GDXCBAR, GDXC_BASE_ADDRESS, GDXC_BASE_SIZE, "GDXCBAR" },
|
||||
{ EDRAMBAR, EDRAM_BASE_ADDRESS, EDRAM_BASE_SIZE, "EDRAMBAR" },
|
||||
};
|
||||
const struct soc_intel_skylake_config *const config = dev->chip_info;
|
||||
const struct soc_intel_skylake_config *const config = config_of(dev);
|
||||
|
||||
sa_add_fixed_mmio_resources(dev, index, soc_fixed_resources,
|
||||
ARRAY_SIZE(soc_fixed_resources));
|
||||
|
||||
if (!(config && config->ignore_vtd) && soc_is_vtd_capable()) {
|
||||
if (!config->ignore_vtd && soc_is_vtd_capable()) {
|
||||
if (igd_dev && igd_dev->enabled)
|
||||
sa_add_fixed_mmio_resources(dev, index,
|
||||
&soc_gfxvt_mmio_descriptor, 1);
|
||||
|
Reference in New Issue
Block a user