]> git.sur5r.net Git - u-boot/commitdiff
gdsys: Drop print_fpga_state function
authorTom Rini <trini@konsulko.com>
Fri, 15 Jul 2016 19:51:40 +0000 (15:51 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 22 Jul 2016 18:46:21 +0000 (14:46 -0400)
On most platforms the print_fpga_state function is never called.  Only
on dlvision-10g do we, so in that case inline it.  Drop it from
everywhere else to avoid extra strings.

Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Reinhard Pfau <reinhard.pfau@gdsys.cc>
Acked-by: Dirk Eibach <dirk.eibach@gdsys.cc>
board/gdsys/405ep/405ep.c
board/gdsys/405ep/dlvision-10g.c
board/gdsys/405ex/405ex.c
board/gdsys/mpc8308/mpc8308.c
include/gdsys_fpga.h

index 426dc05c7d3cea53fda73193e25a3a2e40007aa2..35fa06a2ee97825f0aea09b1b724477357376858 100644 (file)
@@ -31,14 +31,6 @@ int get_fpga_state(unsigned dev)
        return gd->arch.fpga_state[dev];
 }
 
-void print_fpga_state(unsigned dev)
-{
-       if (gd->arch.fpga_state[dev] & FPGA_STATE_DONE_FAILED)
-               puts("       Waiting for FPGA-DONE timed out.\n");
-       if (gd->arch.fpga_state[dev] & FPGA_STATE_REFLECTION_FAILED)
-               puts("       FPGA reflection test failed.\n");
-}
-
 int board_early_init_f(void)
 {
        unsigned k;
index 54c7eb3a12aba1abbf3f33e7dc0b6fb420ad3451..e400d1945a7caf448c6fd0275781f2a3188223ba 100644 (file)
@@ -109,7 +109,10 @@ static void print_fpga_info(unsigned dev)
            && !((hardware_version == HWVER_101)
                 && (fpga_state == FPGA_STATE_DONE_FAILED))) {
                puts("not available\n");
-               print_fpga_state(dev);
+               if (fpga_state & FPGA_STATE_DONE_FAILED)
+                       puts("       Waiting for FPGA-DONE timed out.\n");
+               if (fpga_state & FPGA_STATE_REFLECTION_FAILED)
+                       puts("       FPGA reflection test failed.\n");
                return;
        }
 
index c1a583ffbe09fcbb80e0af44401b4e9931814e80..9e1c57f80857167c455dfafc90e926dbc16a1dc2 100644 (file)
@@ -24,14 +24,6 @@ int get_fpga_state(unsigned dev)
        return gd->arch.fpga_state[dev];
 }
 
-void print_fpga_state(unsigned dev)
-{
-       if (gd->arch.fpga_state[dev] & FPGA_STATE_DONE_FAILED)
-               puts("       Waiting for FPGA-DONE timed out.\n");
-       if (gd->arch.fpga_state[dev] & FPGA_STATE_REFLECTION_FAILED)
-               puts("       FPGA reflection test failed.\n");
-}
-
 int board_early_init_f(void)
 {
        u32 val;
index 4338a3312685972d435fc7dd7e210fccfd946da8..1b8e035b4b2cee60fb77bd3546b6a1c9f5da0df8 100644 (file)
@@ -31,14 +31,6 @@ int get_fpga_state(unsigned dev)
        return gd->arch.fpga_state[dev];
 }
 
-void print_fpga_state(unsigned dev)
-{
-       if (gd->arch.fpga_state[dev] & FPGA_STATE_DONE_FAILED)
-               puts("       Waiting for FPGA-DONE timed out.\n");
-       if (gd->arch.fpga_state[dev] & FPGA_STATE_REFLECTION_FAILED)
-               puts("       FPGA reflection test failed.\n");
-}
-
 int board_early_init_f(void)
 {
        unsigned k;
index e1b9c646266c94cb331ad659ef2aec7250443ef1..bb8e144e04900f41bd6dd94c85410763adcf7b39 100644 (file)
@@ -17,7 +17,6 @@ enum {
 };
 
 int get_fpga_state(unsigned dev);
-void print_fpga_state(unsigned dev);
 
 int fpga_set_reg(u32 fpga, u16 *reg, off_t regoff, u16 data);
 int fpga_get_reg(u32 fpga, u16 *reg, off_t regoff, u16 *data);