Enable PCIE function in Android12 BSP on i.MX8MM EVK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable PCIE function in Android12 BSP on i.MX8MM EVK

Enable PCIE function in Android12 BSP on i.MX8MM EVK

 

Background

PCIe interface of Android 12 prebuilt and Built image on iMX8MM mini is not coming up.

The Android BSP doesn't enable the pcie driver.

Solution

1. imx8mm_gki.fragment

CONFIG_PHY_FSL_IMX_PCIE=m
CONFIG_PCI_IMX6=m

2. device/nxp/imx8m/evk_8mm/SharedBoardConfig.mk

$(KERNEL_OUT)/drivers/pci/controller/dwc/pci-imx6.ko \

Result

evk_8mm:/ # dmesg | grep pci
[    0.561609] ehci-pci: EHCI PCI platform driver
[    6.515345] imx6q-pcie 33800000.pcie: supply epdev_on not found, using dummy regulator
[    6.524925] imx6q-pcie 33800000.pcie: EXT REF_CLK is used!.
[    6.560211] imx6q-pcie 33800000.pcie: PCIe PLL locked after 20 us.
[    6.567328] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges:
[    6.584463] imx6q-pcie 33800000.pcie:       IO 0x001ff80000..0x001ff8ffff -> 0x0000000000
[    6.593833] imx6q-pcie 33800000.pcie:      MEM 0x0018000000..0x001fefffff -> 0x0018000000
[    6.603140] imx6q-pcie 33800000.pcie: invalid resource
[    6.708123] imx6q-pcie 33800000.pcie: Link up
[    6.713393] imx6q-pcie 33800000.pcie: Link up
[    6.718586] imx6q-pcie 33800000.pcie: Link up, Gen1
[    6.832372] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00
[    6.840023] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.846535] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    6.853805] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff]
[    6.861601] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[    6.868529] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    6.876439] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    6.884101] pci 0000:00:00.0: supports D1
[    6.888954] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    6.899174] pci 0000:01:00.0: [1b4b:2b42] type 00 class 0x020000
[    6.906127] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[    6.914221] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x000fffff 64bit pref]
[    6.922740] pci 0000:01:00.0: supports D1 D2
[    6.927854] pci 0000:01:00.0: PME# supported from D0 D1 D3hot D3cold
[    6.935200] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    6.962608] pci 0000:00:00.0: BAR 0: assigned [mem 0x18000000-0x180fffff]
[    6.970251] pci 0000:00:00.0: BAR 15: assigned [mem 0x18100000-0x182fffff pref]
[    6.978426] pci 0000:00:00.0: BAR 6: assigned [mem 0x18300000-0x1830ffff pref]
[    6.986479] pci 0000:01:00.0: BAR 0: assigned [mem 0x18100000-0x181fffff 64bit pref]
[    7.001517] pci 0000:01:00.0: BAR 2: assigned [mem 0x18200000-0x182fffff 64bit pref]
[    7.010203] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    7.016271] pci 0000:00:00.0:   bridge window [mem 0x18100000-0x182fffff pref]
[    7.025830] pcieport 0000:00:00.0: PME: Signaling with IRQ 238
[    7.033786] pcieport 0000:00:00.0: AER: enabled with IRQ 238

 

100% helpful (1/1)
Version history
Last update:
‎08-31-2022 08:53 PM
Updated by: