mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
pci: Configure expansion ROM during auto config process
Currently PCI expansion ROM address is assigned by a call to pciauto_setup_rom() outside of the pci auto config process. This does not work when expansion ROM is on a device behind PCI bridge where bridge's memory limit register was already programmed to a value that does not cover the newly assigned expansion ROM address. To fix this, we should configure the ROM address during the auto config process. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -721,15 +721,6 @@ void pci_write_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum,
|
||||
* */
|
||||
u32 pci_read_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum);
|
||||
|
||||
/**
|
||||
* pciauto_setup_rom() - Set up access to a device ROM
|
||||
*
|
||||
* @hose: PCI hose to use
|
||||
* @dev: PCI device to adjust
|
||||
* @return 0 if done, -ve on error
|
||||
*/
|
||||
int pciauto_setup_rom(struct pci_controller *hose, pci_dev_t dev);
|
||||
|
||||
/**
|
||||
* pci_hose_find_devices() - Find devices by vendor/device ID
|
||||
*
|
||||
|
Reference in New Issue
Block a user