diff options
Diffstat (limited to 'src/soc/amd/picasso/root_complex.c')
-rw-r--r-- | src/soc/amd/picasso/root_complex.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/soc/amd/picasso/root_complex.c b/src/soc/amd/picasso/root_complex.c index dd39cb284b..a3bd729ce0 100644 --- a/src/soc/amd/picasso/root_complex.c +++ b/src/soc/amd/picasso/root_complex.c @@ -84,9 +84,17 @@ struct device_operations picasso_root_complex_operations = { .acpi_fill_ssdt = root_complex_fill_ssdt, }; -uint32_t get_iohc_misc_smn_base(struct device *domain) +static const struct domain_iohc_info iohc_info[] = { + [0] = { + .fabric_id = IOMS0_FABRIC_ID, + .misc_smn_base = SMN_IOHC_MISC_BASE_13B1, + }, +}; + +const struct domain_iohc_info *get_iohc_info(size_t *count) { - return SMN_IOHC_MISC_BASE_13B1; + *count = ARRAY_SIZE(iohc_info); + return iohc_info; } static const struct non_pci_mmio_reg non_pci_mmio[] = { @@ -107,13 +115,3 @@ const struct non_pci_mmio_reg *get_iohc_non_pci_mmio_regs(size_t *count) *count = ARRAY_SIZE(non_pci_mmio); return non_pci_mmio; } - -signed int get_iohc_fabric_id(struct device *domain) -{ - switch (domain->path.domain.domain) { - case 0: - return IOMS0_FABRIC_ID; - default: - return -1; - } -} |