summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorEmanuele Ghidoli <[email protected]>2026-07-30 11:35:35 +0200
committerFabio Estevam <[email protected]>2026-08-03 09:32:19 -0300
commit9dfa2015e01f8c389926e41e0676d0a5439f0a3c (patch)
treeb94bacaf0e7c10916c58a6797b5e7011455a891b /scripts/basic
parent01b7aee2ee995ca5089797f82bf3da7d4cc7025b (diff)
arm: imx: initialize the system counter earlier on i.MX7
imx_gpcv2_init() calls udelay(), which through schedule() reaches cyclic_run(). Since commit 9c1b13b3fd27 ("cyclic: reduce get_timer_us() calls inside hlist_for_each_entry_safe()") get_timer_us() is called even when no cyclic function is registered, so tick_to_time_us() divides by a still zero CNTFRQ and __div0() hangs the board before the console is up. The requested delay was a no-op as well, since us_to_tick() reads a CNTFRQ of zero. Initialize the system counter before imx_gpcv2_init(), and move the "already initialized" guard from timer_get_boot_us() into timer_init() so that the later timer_init() from the generic init sequence is a no-op. Where the system counter timer_init() is not compiled in, the weak definition is empty and the calling it is harmless. Fixes: b059837850e4 ("imx: mx7: add gpc initialization for low power mode") Fixes: 9c1b13b3fd27 ("cyclic: reduce get_timer_us() calls inside hlist_for_each_entry_safe()") Signed-off-by: Emanuele Ghidoli <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions