]> git.sur5r.net Git - u-boot/commitdiff
ppc4xx: Make output a little shorter on PCIe detection
authorStefan Roese <sr@denx.de>
Mon, 5 Nov 2007 06:43:05 +0000 (07:43 +0100)
committerStefan Roese <sr@denx.de>
Mon, 5 Nov 2007 06:43:05 +0000 (07:43 +0100)
Now not max 3 lines but 2 lines are printed per PCIe port.

Signed-off-by: Stefan Roese <sr@denx.de>
board/amcc/katmai/katmai.c
board/amcc/kilauea/kilauea.c
board/amcc/yucca/yucca.c

index 0627a7a095cc94afa04fed469d6518b5f1580094..669b828a127e46306d305217dc4fa91792e54087 100644 (file)
@@ -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;
                }
 
index 77c0eb43641a46641ff388e5e8407134ea54df41..0939b54931dfb1d923ecb29651b659c514dc2d9d 100644 (file)
@@ -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;
                }
 
index bb3e59400f0513bb58b334166829b5550e37d10f..17aaa2690965cff13bcec12627d5e031b349eac4 100644 (file)
@@ -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;