public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Chris Packham <judge.packham@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 4/7] fpga/spartan3: make output quieter
Date: Tue, 22 Nov 2016 21:48:59 +1300	[thread overview]
Message-ID: <20161122084902.20890-5-judge.packham@gmail.com> (raw)
In-Reply-To: <20161122084902.20890-1-judge.packham@gmail.com>

Suppress some putc calls with CONFIG_SYS_FPGA_PROG_FEEDBACK.

Signed-off-by: Chris Packham <judge.packham@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

  parent reply	other threads:[~2016-11-22  8:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-22  8:48 [U-Boot] [RFC PATCH 0/7] FPGA changes Chris Packham
2016-11-22  8:48 ` [U-Boot] [RFC PATCH 1/7] fpga: CONFIG_SYS_FPGA_PROG_FEEDBACK -> CONFIG_FPGA_PROG_FEEDBACK Chris Packham
2016-11-23 12:09   ` Michal Simek
2016-11-24 23:57     ` Chris Packham
2016-11-25  6:57       ` Michal Simek
2016-11-22  8:48 ` [U-Boot] [RFC PATCH 2/7] fpga: add Kconfig support for Xilinx Spartan devices Chris Packham
2016-11-23 12:10   ` Michal Simek
2016-11-22  8:48 ` [U-Boot] [RFC PATCH 3/7] Move CONFIG_FPGA_SPARTAN options to defconfig Chris Packham
2016-11-23 12:14   ` Michal Simek
2016-11-25  0:53     ` Chris Packham
2016-11-25  8:39       ` Chris Packham
2016-11-22  8:48 ` Chris Packham [this message]
2016-11-23 12:14   ` [U-Boot] [RFC PATCH 4/7] fpga/spartan3: make output quieter Michal Simek
2016-11-22  8:49 ` [U-Boot] [RFC PATCH 5/7] fpga: add Kconfig for CONFIG_FPGA_PROG_FEEDBACK Chris Packham
2016-11-23 12:13   ` Michal Simek
2016-11-25  0:10     ` Chris Packham
2016-11-25  6:58       ` Michal Simek
2016-11-22  8:49 ` [U-Boot] [RFC PATCH 6/7] Move FPGA_PROG_FEEDBACK to defconfig Chris Packham
2016-11-23 12:16   ` Michal Simek
2016-11-22  8:49 ` [U-Boot] [RFC PATCH 7/7] fpga/spartan3: add reverse bitstream mode Chris Packham
2016-11-23 12:16   ` Michal Simek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161122084902.20890-5-judge.packham@gmail.com \
    --to=judge.packham@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox