* [PATCH] fpga: zynq: Remove post config info message for SPL
@ 2022-08-08 14:53 Stefan Herbrechtsmeier
2022-08-09 14:16 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Herbrechtsmeier @ 2022-08-08 14:53 UTC (permalink / raw)
To: u-boot; +Cc: Stefan Herbrechtsmeier, Michal Simek, Michal Simek
From: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
The drivers informs the user that a post config was not run after FPGA
configuration. This message is unnecessary in SPL because the
ps7_post_config function is called via spl_board_prepare_for_boot
function before jump_to_image_no_args function from board_init_r
function.
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
---
drivers/fpga/zynqpl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/fpga/zynqpl.c b/drivers/fpga/zynqpl.c
index d8ebd542ab..0c83df46da 100644
--- a/drivers/fpga/zynqpl.c
+++ b/drivers/fpga/zynqpl.c
@@ -413,7 +413,8 @@ static int zynq_load(xilinx_desc *desc, const void *buf, size_t bsize,
if (bstype != BIT_PARTIAL)
zynq_slcr_devcfg_enable();
- puts("INFO:post config was not run, please run manually if needed\n");
+ if (!IS_ENABLED(CONFIG_SPL_BUILD))
+ puts("INFO:post config was not run, please run manually if needed\n");
return FPGA_SUCCESS;
}
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fpga: zynq: Remove post config info message for SPL
2022-08-08 14:53 [PATCH] fpga: zynq: Remove post config info message for SPL Stefan Herbrechtsmeier
@ 2022-08-09 14:16 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2022-08-09 14:16 UTC (permalink / raw)
To: Stefan Herbrechtsmeier, u-boot; +Cc: Stefan Herbrechtsmeier, Michal Simek
On 8/8/22 16:53, Stefan Herbrechtsmeier wrote:
> From: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
>
> The drivers informs the user that a post config was not run after FPGA
> configuration. This message is unnecessary in SPL because the
> ps7_post_config function is called via spl_board_prepare_for_boot
> function before jump_to_image_no_args function from board_init_r
> function.
>
> Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
>
> ---
>
> drivers/fpga/zynqpl.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/fpga/zynqpl.c b/drivers/fpga/zynqpl.c
> index d8ebd542ab..0c83df46da 100644
> --- a/drivers/fpga/zynqpl.c
> +++ b/drivers/fpga/zynqpl.c
> @@ -413,7 +413,8 @@ static int zynq_load(xilinx_desc *desc, const void *buf, size_t bsize,
> if (bstype != BIT_PARTIAL)
> zynq_slcr_devcfg_enable();
>
> - puts("INFO:post config was not run, please run manually if needed\n");
> + if (!IS_ENABLED(CONFIG_SPL_BUILD))
> + puts("INFO:post config was not run, please run manually if needed\n");
>
> return FPGA_SUCCESS;
> }
Applied.
M
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-09 14:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 14:53 [PATCH] fpga: zynq: Remove post config info message for SPL Stefan Herbrechtsmeier
2022-08-09 14:16 ` Michal Simek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.