I have an FPGA that I want to connect to the LS1046ARDB via PCIe. When loading uboot without the FPGA connected it displays that all 3 PCIe slots have no link. If I connect the FPGA and then power on the LS1046ARDB, will it detect that the FPGA is connected by default. Are they any other steps I need to do to get it to simply detect a PCIe device.
Hello Bradley Marquardt,
As usual, you could use the PCIe device directly, no need to modify u-boot or Linux Kernel source code.
Please pay attention to RCW[144-159](SRDS_PRTCL_S2) configuration for SerDes2 options.
In addition, in LS1046ARDB dts definition, the PCI memory space size is 1G, this should be enough for your PCIe FPGA device.
ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------