mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
pci: layerscape: Update print of pcie controller
Print pcie controller number starting from 1 Signed-off-by: Wasim Khan <wasim.khan@nxp.com> [Trimmed subject] Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
07f29f0217
commit
b6c6a245bf
2 changed files with 7 additions and 3 deletions
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
#include <asm/arch/fsl_serdes.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <dm/devres.h>
|
#include <dm/devres.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -294,7 +295,8 @@ static int ls_pcie_ep_probe(struct udevice *dev)
|
||||||
pcie_ep->num_ob_wins = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
|
pcie_ep->num_ob_wins = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
|
||||||
"num-ob-windows", 8);
|
"num-ob-windows", 8);
|
||||||
|
|
||||||
printf("PCIe%u: %s %s", pcie->idx, dev->name, "Endpoint");
|
printf("PCIe%u: %s %s", PCIE_SRDS_PRTCL(pcie->idx), dev->name,
|
||||||
|
"Endpoint");
|
||||||
ls_pcie_setup_ep(pcie_ep);
|
ls_pcie_setup_ep(pcie_ep);
|
||||||
|
|
||||||
if (!ls_pcie_link_up(pcie)) {
|
if (!ls_pcie_link_up(pcie)) {
|
||||||
|
|
|
@ -273,7 +273,8 @@ static int ls_pcie_probe(struct udevice *dev)
|
||||||
|
|
||||||
pcie_rc->enabled = is_serdes_configured(PCIE_SRDS_PRTCL(pcie->idx));
|
pcie_rc->enabled = is_serdes_configured(PCIE_SRDS_PRTCL(pcie->idx));
|
||||||
if (!pcie_rc->enabled) {
|
if (!pcie_rc->enabled) {
|
||||||
printf("PCIe%d: %s disabled\n", pcie->idx, dev->name);
|
printf("PCIe%d: %s disabled\n", PCIE_SRDS_PRTCL(pcie->idx),
|
||||||
|
dev->name);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -342,7 +343,8 @@ static int ls_pcie_probe(struct udevice *dev)
|
||||||
(unsigned long)pcie->ctrl, (unsigned long)pcie_rc->cfg0,
|
(unsigned long)pcie->ctrl, (unsigned long)pcie_rc->cfg0,
|
||||||
pcie->big_endian);
|
pcie->big_endian);
|
||||||
|
|
||||||
printf("PCIe%u: %s %s", pcie->idx, dev->name, "Root Complex");
|
printf("PCIe%u: %s %s", PCIE_SRDS_PRTCL(pcie->idx), dev->name,
|
||||||
|
"Root Complex");
|
||||||
ls_pcie_setup_ctrl(pcie_rc);
|
ls_pcie_setup_ctrl(pcie_rc);
|
||||||
|
|
||||||
if (!ls_pcie_link_up(pcie)) {
|
if (!ls_pcie_link_up(pcie)) {
|
||||||
|
|
Loading…
Reference in a new issue