[U-Boot] [RFC PATCH 4/7] fpga/spartan3: make output quieter
Michal Simek
monstr at monstr.eu
Wed Nov 23 13:14:40 CET 2016
On 22.11.2016 09:48, Chris Packham wrote:
> 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.
>
How does the output look like?
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161123/897aee69/attachment.sig>
More information about the U-Boot
mailing list