imx: imx8ulp: Set COUNTER_FREQUENCY to 1Mhz
authorYe Li <ye.li@nxp.com>
Wed, 6 Apr 2022 06:30:06 +0000 (14:30 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 15:33:56 +0000 (17:33 +0200)
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@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
include/configs/imx8ulp_evk.h

index ddb3d444f03d1c815c2c03cf8aff48779173548e..e68867463207b737cf186b340d3117395f523263 100644 (file)
@@ -27,6 +27,8 @@
 
 #endif
 
+#define COUNTER_FREQUENCY              1000000 /* 1MHz */
+
 /* ENET Config */
 #if defined(CONFIG_FEC_MXC)
 #define PHY_ANEG_TIMEOUT               20000