[PATCH 01/27] imx: imx8ulp: Set COUNTER_FREQUENCY to 1Mhz

Peng Fan (OSS) peng.fan at oss.nxp.com
Mon Feb 14 13:47:09 CET 2022

From: Ye Li <ye.li at nxp.com>

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 <peng.fan at nxp.com>
Signed-off-by: Ye Li <ye.li at nxp.com>
Signed-off-by: Peng Fan <peng.fan at nxp.com>
 include/configs/imx8ulp_evk.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/configs/imx8ulp_evk.h b/include/configs/imx8ulp_evk.h
index 7da6802aa5..1baebedf00 100644
--- a/include/configs/imx8ulp_evk.h
+++ b/include/configs/imx8ulp_evk.h
@@ -27,6 +27,8 @@
+#define COUNTER_FREQUENCY		1000000 /* 1MHz */
 /* ENET Config */
 #if defined(CONFIG_FEC_MXC)
 #define CONFIG_ETHPRIME                 "FEC"

More information about the U-Boot mailing list