In our IMX6 platform We are using the attached PCIe.c file. this file supports PCIe switch. our PCI configuration is
When we boot linux all peripheral devices are detected. the intel ethernet device I210 uses a SPI flash memory for configuration loading. but the SPI flash memory is mapped to the expansion rom base of I210. so we couldnot load the configuration settings to the flash memory.
In our code base (attahced PCIe.c) we doubt that memory allocation for expansion rom base is missing.
We need the PCIe expansion rom to be memory mapped to access the flash memory. Please help us to fix the issue
Please find the boot log, lspci-v log, PCIe.c
Original Attachment has been moved to: pcie.c.zip
Original Attachment has been moved to: IMX6_linux_log.txt.zip
Original Attachment has been moved to: IMX6-lspci-v.txt.zip