Commit 654f38b3 authored by Stefan Roese's avatar Stefan Roese
Browse files

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's avatarStefan Roese <sr@denx.de>
parent 3d6cb3b2
...@@ -403,15 +403,13 @@ void pcie_setup_hoses(int busno) ...@@ -403,15 +403,13 @@ void pcie_setup_hoses(int busno)
if (!katmai_pcie_card_present(i)) if (!katmai_pcie_card_present(i))
continue; continue;
if (is_end_point(i)) { if (is_end_point(i))
printf("PCIE%d: will be configured as endpoint\n", i);
ret = ppc4xx_init_pcie_endport(i); ret = ppc4xx_init_pcie_endport(i);
} else { else
printf("PCIE%d: will be configured as root-complex\n", i);
ret = ppc4xx_init_pcie_rootport(i); ret = ppc4xx_init_pcie_rootport(i);
}
if (ret) { 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; continue;
} }
......
...@@ -342,15 +342,13 @@ void pcie_setup_hoses(int busno) ...@@ -342,15 +342,13 @@ void pcie_setup_hoses(int busno)
for (i = 0; i < board_pcie_count(); i++) { for (i = 0; i < board_pcie_count(); i++) {
if (is_end_point(i)) { if (is_end_point(i))
printf("PCIE%d: will be configured as endpoint\n", i);
ret = ppc4xx_init_pcie_endport(i); ret = ppc4xx_init_pcie_endport(i);
} else { else
printf("PCIE%d: will be configured as root-complex\n", i);
ret = ppc4xx_init_pcie_rootport(i); ret = ppc4xx_init_pcie_rootport(i);
}
if (ret) { 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; continue;
} }
......
...@@ -853,18 +853,17 @@ void pcie_setup_hoses(int busno) ...@@ -853,18 +853,17 @@ void pcie_setup_hoses(int busno)
continue; continue;
if (is_end_point(i)) { if (is_end_point(i)) {
printf("PCIE%d: will be configured as endpoint\n",i);
yucca_setup_pcie_fpga_endpoint(i); yucca_setup_pcie_fpga_endpoint(i);
ret = ppc4xx_init_pcie_endport(i); ret = ppc4xx_init_pcie_endport(i);
} else { } else {
printf("PCIE%d: will be configured as root-complex\n",i);
yucca_setup_pcie_fpga_rootpoint(i); yucca_setup_pcie_fpga_rootpoint(i);
ret = ppc4xx_init_pcie_rootport(i); ret = ppc4xx_init_pcie_rootport(i);
} }
if (ret) { if (ret) {
printf("PCIE%d: initialization failed\n", i); printf("PCIE%d: initialization as %s failed\n", i,
continue; is_end_point(i) ? "endpoint" : "root-complex");
} continue;
}
hose = &pcie_hose[i]; hose = &pcie_hose[i];
hose->first_busno = bus; hose->first_busno = bus;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment