mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 21:24:21 +08:00
ppc4xx: Make output a little shorter on PCIe detection
Now not max 3 lines but 2 lines are printed per PCIe port. Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
3d6cb3b24a
commit
654f38b3a3
@ -403,15 +403,13 @@ void pcie_setup_hoses(int busno)
|
||||
if (!katmai_pcie_card_present(i))
|
||||
continue;
|
||||
|
||||
if (is_end_point(i)) {
|
||||
printf("PCIE%d: will be configured as endpoint\n", i);
|
||||
if (is_end_point(i))
|
||||
ret = ppc4xx_init_pcie_endport(i);
|
||||
} else {
|
||||
printf("PCIE%d: will be configured as root-complex\n", i);
|
||||
else
|
||||
ret = ppc4xx_init_pcie_rootport(i);
|
||||
}
|
||||
if (ret) {
|
||||
printf("PCIE%d: initialization failed\n", i);
|
||||
printf("PCIE%d: initialization as %s failed\n", i,
|
||||
is_end_point(i) ? "endpoint" : "root-complex");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -342,15 +342,13 @@ void pcie_setup_hoses(int busno)
|
||||
|
||||
for (i = 0; i < board_pcie_count(); i++) {
|
||||
|
||||
if (is_end_point(i)) {
|
||||
printf("PCIE%d: will be configured as endpoint\n", i);
|
||||
if (is_end_point(i))
|
||||
ret = ppc4xx_init_pcie_endport(i);
|
||||
} else {
|
||||
printf("PCIE%d: will be configured as root-complex\n", i);
|
||||
else
|
||||
ret = ppc4xx_init_pcie_rootport(i);
|
||||
}
|
||||
if (ret) {
|
||||
printf("PCIE%d: initialization failed\n", i);
|
||||
printf("PCIE%d: initialization as %s failed\n", i,
|
||||
is_end_point(i) ? "endpoint" : "root-complex");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -853,18 +853,17 @@ void pcie_setup_hoses(int busno)
|
||||
continue;
|
||||
|
||||
if (is_end_point(i)) {
|
||||
printf("PCIE%d: will be configured as endpoint\n",i);
|
||||
yucca_setup_pcie_fpga_endpoint(i);
|
||||
ret = ppc4xx_init_pcie_endport(i);
|
||||
} else {
|
||||
printf("PCIE%d: will be configured as root-complex\n",i);
|
||||
yucca_setup_pcie_fpga_rootpoint(i);
|
||||
ret = ppc4xx_init_pcie_rootport(i);
|
||||
}
|
||||
if (ret) {
|
||||
printf("PCIE%d: initialization failed\n", i);
|
||||
continue;
|
||||
}
|
||||
printf("PCIE%d: initialization as %s failed\n", i,
|
||||
is_end_point(i) ? "endpoint" : "root-complex");
|
||||
continue;
|
||||
}
|
||||
|
||||
hose = &pcie_hose[i];
|
||||
hose->first_busno = bus;
|
||||
|
Loading…
Reference in New Issue
Block a user