
On 09/01/2016 04:46 PM, Max Ruttenberg wrote:
Hi,
Hi,
I'm find myself clueless in regards to writing a driver for an FPGA over a PCI bus. This U-Boot is running on an NXP t102xrdb board family, if that matters.
The documentation in doc/driver-model/pci-info.txt mentions that I can use a macro named U_BOOT_PCI_DEVICE as alternative to listing my device in a device tree.
I found an example of this in drivers/net/e1000.c, and I tried to follow it as much as was applicable (this is an ethernet driver, which my driver is not).
But when U-Boot starts up, my "bind" function is never called, even though I can tell that my device with the corresponding vendor and device id is detected using the "pci [bus]" command.
I appreciate any help I can get.
Switching to the u-boot list and Ccing Simon.
What is loaded in your FPGA ?