|
@@ -108,7 +108,8 @@ void pciauto_setup_device(struct pci_controller *hose,
|
|
}
|
|
}
|
|
|
|
|
|
#ifndef CONFIG_PCI_ENUM_ONLY
|
|
#ifndef CONFIG_PCI_ENUM_ONLY
|
|
- if (pciauto_region_allocate(bar_res, bar_size, &bar_value) == 0) {
|
|
|
|
|
|
+ if (pciauto_region_allocate(bar_res, bar_size,
|
|
|
|
+ &bar_value, found_mem64) == 0) {
|
|
/* Write it out and update our limit */
|
|
/* Write it out and update our limit */
|
|
pci_hose_write_config_dword(hose, dev, bar, (u32)bar_value);
|
|
pci_hose_write_config_dword(hose, dev, bar, (u32)bar_value);
|
|
|
|
|
|
@@ -150,7 +151,7 @@ void pciauto_setup_device(struct pci_controller *hose,
|
|
debug("PCI Autoconfig: ROM, size=%#x, ",
|
|
debug("PCI Autoconfig: ROM, size=%#x, ",
|
|
(unsigned int)bar_size);
|
|
(unsigned int)bar_size);
|
|
if (pciauto_region_allocate(mem, bar_size,
|
|
if (pciauto_region_allocate(mem, bar_size,
|
|
- &bar_value) == 0) {
|
|
|
|
|
|
+ &bar_value, false) == 0) {
|
|
pci_hose_write_config_dword(hose, dev, rom_addr,
|
|
pci_hose_write_config_dword(hose, dev, rom_addr,
|
|
bar_value);
|
|
bar_value);
|
|
}
|
|
}
|