This is the response from our experts team:
Actually, IMX6 as one endpoint function has been integrated into new release(You can get it in JB4.3 or later).You just need to enable the board config option "CONFIG_IMX_PCIE_EP_MODE_IN_EP_RC_SYS=y". When you connect to anther IMX6 RC board by pcie interface, you can see the following kernel message:
<7>pci 0000:00:00.0: [16c3:abcd] type 1 class 0x000000
<3>pci 0000:00:00.0: ignoring class 00 (doesn't match header type 01)
<7>pci 0000:00:00.0: supports D1
<7>pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
<7>pci 0000:00:00.0: PME# disabled
<7>pci 0000:01:00.0: [16c3:abcd] type 0 class 0x000000
<7>pci 0000:01:00.0: reg 10: [mem 0x00000000-0x000fffff 64bit pref]
<7>pci 0000:01:00.0: reg 18: [mem 0x00000000-0x000fffff pref]
<7>pci 0000:01:00.0: reg 1c: [io 0x0000-0x00ff]
<7>pci 0000:01:00.0: reg 30: [mem 0x00000000-0x0000ffff pref]
<7>pci 0000:01:00.0: supports D1
<7>pci 0000:01:00.0: PME# supported from D0 D1 D3hot D3cold
<7>pci 0000:01:00.0: PME# disabled
<6>pci 0000:00:00.0: not setting up bridge for bus 0000:01
You can take it as one reference.