imx: mx7: avoid some initialization if low level is skipped
authorRui Miguel Silva <rui.silva@linaro.org>
Wed, 5 Sep 2018 10:56:05 +0000 (11:56 +0100)
committerStefano Babic <sbabic@denx.de>
Mon, 22 Oct 2018 12:37:28 +0000 (14:37 +0200)
commitbe277c3a89fcec9f837bf4fb562c606155b0999f
tree006051a89e52553ba5f22e09dc68297fcf60a3ca
parent7677c0de14739fa0e63f97cf290b68bec0c497c1
imx: mx7: avoid some initialization if low level is skipped

We can have the case where u-boot is launched after some other low level
enabler, like for example when u-boot runs after arm-trusted-firmware
and/or optee. So, because of that we may need to jump the initialization of
some IP blocks even because we may no longer have the permission for that.

So, if the config option to skip low level init is set disable also timer,
board and csu initialization.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: u-boot@lists.denx.de
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/mx7/soc.c
arch/arm/mach-imx/syscounter.c