From: Ye Li Date: Wed, 6 Apr 2022 06:30:06 +0000 (+0800) Subject: imx: imx8ulp: Set COUNTER_FREQUENCY to 1Mhz X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=38149cd0cc46924cd617faac1d07f15a727c313d;p=u-boot.git imx: imx8ulp: Set COUNTER_FREQUENCY to 1Mhz The COUNTER_FREQUENCY is missed in 8ulp configs, it will cause SPL and u-boot not set the cntfrq_el0. For u-boot, this is ok, because ATF has set it. But for SPL, it will lead delay and get_timer not working. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- diff --git a/include/configs/imx8ulp_evk.h b/include/configs/imx8ulp_evk.h index ddb3d444f0..e688674632 100644 --- a/include/configs/imx8ulp_evk.h +++ b/include/configs/imx8ulp_evk.h @@ -27,6 +27,8 @@ #endif +#define COUNTER_FREQUENCY 1000000 /* 1MHz */ + /* ENET Config */ #if defined(CONFIG_FEC_MXC) #define PHY_ANEG_TIMEOUT 20000