PCIe Lane Ordering

Hello,

i have a PCIe device with 4x lanes and 5GT/s per Lane. How can I changed the lane ordering of PCIe Bus. Only Lane 0 and Lane 1 has to be swapped.

Thanks

Not pretty sure what is the meaning of “swap” here. Is the adaptation guide helpful for your target?
https://developer.nvidia.com/embedded/dlc/l4t-driver-package-tx2-adaptation-guide