[U-Boot] [RFC PATCH 4/7] fpga/spartan3: make output quieter
Chris Packham
judge.packham at gmail.com
Tue Nov 22 09:48:59 CET 2016
Suppress some putc calls with CONFIG_SYS_FPGA_PROG_FEEDBACK.
Signed-off-by: Chris Packham <judge.packham at gmail.com>
---
drivers/fpga/spartan3.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/fpga/spartan3.c b/drivers/fpga/spartan3.c
index 759ad95e2afc..34aa097ab6c2 100644
--- a/drivers/fpga/spartan3.c
+++ b/drivers/fpga/spartan3.c
@@ -428,7 +428,9 @@ static int spartan3_ss_load(xilinx_desc *desc, const void *buf, size_t bsize)
CONFIG_FPGA_DELAY ();
(*fn->clk) (true, true, cookie); /* Assert the clock pin */
+#ifdef CONFIG_FPGA_PROG_FEEDBACK
putc ('*');
+#endif
if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */
puts ("** Timeout waiting for DONE to clear.\n");
@@ -436,7 +438,9 @@ static int spartan3_ss_load(xilinx_desc *desc, const void *buf, size_t bsize)
break;
}
}
+#ifdef CONFIG_FPGA_PROG_FEEDBACK
putc ('\n'); /* terminate the dotted line */
+#endif
/*
* Run the post configuration function if there is one.
--
2.10.2
More information about the U-Boot
mailing list