diff options
author | Marek Vasut <marex@denx.de> | 2022-09-19 22:41:15 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-10-21 12:54:00 +0300 |
commit | 1f908b1898bd5258bb95521de54fdca8e91edb00 (patch) | |
tree | c61cfacba9f591de78fb832084e2388e58953e54 /board/kontron/sl-mx8mm/spl.c | |
parent | 5302576e933ef8611d726c0f244be306ffc40c18 (diff) | |
download | u-boot-1f908b1898bd5258bb95521de54fdca8e91edb00.tar.xz |
ARM: imx8m: Deduplicate CAAM init with arch_misc_init() call
Instead of duplicating code implemented by i.MX8M version of arch_misc_init()
in every board, enable CONFIG_ARCH_MISC_INIT and call arch_misc_init() from
spl_board_init(). This removes the duplication. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board/kontron/sl-mx8mm/spl.c')
-rw-r--r-- | board/kontron/sl-mx8mm/spl.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/board/kontron/sl-mx8mm/spl.c b/board/kontron/sl-mx8mm/spl.c index 8e7d017688..25ee925ceb 100644 --- a/board/kontron/sl-mx8mm/spl.c +++ b/board/kontron/sl-mx8mm/spl.c @@ -162,11 +162,7 @@ void spl_board_init(void) struct udevice *dev; int ret; - if (IS_ENABLED(CONFIG_FSL_CAAM)) { - ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(caam_jr), &dev); - if (ret) - printf("Failed to initialize %s: %d\n", dev->name, ret); - } + arch_misc_init(); puts("Normal Boot\n"); |