]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx: syscounter: allow timer_init for SPL build
authorMichael Scott <mike@foundries.io>
Thu, 3 Aug 2023 15:25:20 +0000 (18:25 +0300)
committerStefano Babic <sbabic@denx.de>
Mon, 16 Oct 2023 06:46:01 +0000 (08:46 +0200)
commit43b1e83a73dd14cfd58941a77907c028c5b9f26e
treeae385c6cd0ef75c1fd3ec841a22c323edb13cf59
parent3c3f1626919cd93cbe6c56e3849937de5be18dbb
imx: syscounter: allow timer_init for SPL build

With enabled SKIP_LOWLEVEL_INIT, the weak function timer_init() is
used in the SPL build. For iMX6 SoC, this leads MMC to fail once
u-boot proper is booted due to a timing issue.
Always use iMX-specific timer_init() in SPL to fix timing issues.

Fixes: be277c3a89 ("imx: mx7: avoid some initialization if low level is skipped")
Signed-off-by: Michael Scott <mike@foundries.io>
Co-developed-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/syscounter.c