[PATCH V2 1/6] xilinx: versal: board: use CONFIG_COUNTER_FREQUENCY

Michal Simek michal.simek at xilinx.com
Mon Apr 11 12:06:29 CEST 2022



On 4/10/22 10:31, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
> 
> Since versal has CONFIG_COUNTER_FREQUENCY, so use it. And
> COUNTER_FREQUENCY will be dropped.
> 
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
>   board/xilinx/versal/board.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c
> index 9940f2aeb337..2e2807eee463 100644
> --- a/board/xilinx/versal/board.c
> +++ b/board/xilinx/versal/board.c
> @@ -74,7 +74,7 @@ int board_early_init_r(void)
>   	 * Program freq register in System counter and
>   	 * enable system counter.
>   	 */
> -	writel(COUNTER_FREQUENCY,
> +	writel(CONFIG_COUNTER_FREQUENCY,
>   	       &iou_scntr_secure->base_frequency_id_register);
>   
>   	debug("counter val 0x%x\n",

Reviewed-by: Michal Simek <michal.simek at xilinx.com>

Thanks,
Michal


More information about the U-Boot mailing list