]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
pci: Configure expansion ROM during auto config process
authorBin Meng <bmeng.cn@gmail.com>
Wed, 8 Jul 2015 05:06:40 +0000 (13:06 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:29:27 +0000 (13:29 +0200)
commit7577be49d3391339373bebf7fe88c3f79d5ac4a4
tree7a3606e2fe490a1d35f3bcb646673319d1038b83
parent6b9bc3ea00a8df4cef26e8af5e458bcd0617b4fe
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>
drivers/pci/pci_auto.c
drivers/pci/pci_rom.c
include/pci.h