mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
pci: Mask the ROM address in case it is already enabled
In some cases the video ROM may have been enabled previously, such as by a previous firmware stage. Use the correct address in that case. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
b7d4df5a04
commit
fa5690c1f5
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ static int pci_rom_probe(struct udevice *dev, struct pci_rom_header **hdrp)
|
|||
debug("%s: rom_address=%x\n", __func__, rom_address);
|
||||
return -ENOENT;
|
||||
}
|
||||
rom_address &= PCI_ROM_ADDRESS_MASK;
|
||||
|
||||
/* Enable expansion ROM address decoding. */
|
||||
dm_pci_write_config32(dev, PCI_ROM_ADDRESS,
|
||||
|
|
Loading…
Reference in a new issue