From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Packham Date: Tue, 22 Nov 2016 21:48:59 +1300 Subject: [U-Boot] [RFC PATCH 4/7] fpga/spartan3: make output quieter In-Reply-To: <20161122084902.20890-1-judge.packham@gmail.com> References: <20161122084902.20890-1-judge.packham@gmail.com> Message-ID: <20161122084902.20890-5-judge.packham@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Suppress some putc calls with CONFIG_SYS_FPGA_PROG_FEEDBACK. Signed-off-by: Chris Packham --- 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