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>
This commit is contained in:
parent
bdad9a8e72
commit
9e69c87317
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue