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.pack...@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


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to