diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-06-02 15:35:27 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-06-02 21:55:07 +0000 |
commit | 9e69c87317794219d7238eb87edc5e23e03803b4 (patch) | |
tree | 683187087b9a9957f604057c8057db57d3d955c6 /src/northbridge/intel/e7505 | |
parent | bdad9a8e72c2f2dedd26cd144785e489fcee6742 (diff) | |
download | coreboot-9e69c87317794219d7238eb87edc5e23e03803b4.tar.xz |
intel/e7505: Fix domain resources
Fixed resources have to be registered early during
read_resources() phase, such that device allocator
will avoid them.
Change-Id: I3c120cfb96c185f0052b9b3cdd93eeed0f712491
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/26770
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/northbridge/intel/e7505')
-rw-r--r-- | src/northbridge/intel/e7505/northbridge.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/northbridge/intel/e7505/northbridge.c b/src/northbridge/intel/e7505/northbridge.c index 38c7d4640b..ea8b4598f4 100644 --- a/src/northbridge/intel/e7505/northbridge.c +++ b/src/northbridge/intel/e7505/northbridge.c @@ -29,11 +29,13 @@ unsigned long acpi_fill_mcfg(unsigned long current) return current; } -static void pci_domain_set_resources(struct device *dev) +static void mch_domain_read_resources(struct device *dev) { struct device *mc_dev; uint32_t pci_tolm; + pci_domain_read_resources(dev); + pci_tolm = find_pci_tolm(dev->link_list); mc_dev = dev->link_list->children; if (mc_dev) { @@ -107,6 +109,10 @@ static void pci_domain_set_resources(struct device *dev) set_late_cbmem_top(tolmk * 1024); } +} + +static void mch_domain_set_resources(struct device *dev) +{ assign_resources(dev->link_list); } @@ -122,8 +128,8 @@ static struct pci_operations intel_pci_ops = { }; static struct device_operations pci_domain_ops = { - .read_resources = pci_domain_read_resources, - .set_resources = pci_domain_set_resources, + .read_resources = mch_domain_read_resources, + .set_resources = mch_domain_set_resources, .enable_resources = NULL, .init = NULL, .scan_bus = pci_domain_scan_bus, |