mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
pci: layerscape-ep: Add check of the PCIe controller enablement
Stop to initialize the PCIe controller if it's disabled by RCW.
Fixes: 118e58e26e
("pci: layerscape: Split the EP and RC driver")
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
ff64e9a9f0
commit
8e221b4a1c
|
@ -269,6 +269,10 @@ static int ls_pcie_ep_probe(struct udevice *dev)
|
||||||
pcie->idx = ((unsigned long)pcie->dbi - PCIE_SYS_BASE_ADDR) /
|
pcie->idx = ((unsigned long)pcie->dbi - PCIE_SYS_BASE_ADDR) /
|
||||||
PCIE_CCSR_SIZE;
|
PCIE_CCSR_SIZE;
|
||||||
|
|
||||||
|
/* This controller is disabled by RCW */
|
||||||
|
if (!is_serdes_configured(PCIE_SRDS_PRTCL(pcie->idx)))
|
||||||
|
return 0;
|
||||||
|
|
||||||
pcie->big_endian = fdtdec_get_bool(gd->fdt_blob, dev_of_offset(dev),
|
pcie->big_endian = fdtdec_get_bool(gd->fdt_blob, dev_of_offset(dev),
|
||||||
"big-endian");
|
"big-endian");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user