mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
gdsys: Drop print_fpga_state function
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>
This commit is contained in:
parent
f4742ca0fb
commit
473c0abe62
5 changed files with 4 additions and 26 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue