diff options
author | Peng Fan <peng.fan@nxp.com> | 2018-12-21 09:21:15 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-01-28 22:35:47 +0300 |
commit | 04b249656ebf311080a8efbbc0022acb38beca13 (patch) | |
tree | b8bf28ced7934daad3521f041fdc1d52f55d60ee /drivers/misc | |
parent | 3bd888b55ebe7ee0d60385ec710acce59788476d (diff) | |
download | u-boot-04b249656ebf311080a8efbbc0022acb38beca13.tar.xz |
imx8: scu: use dedicated MU for SPL
SPL runs in EL3 mode, except MU0_A, others are not powered on,
and could not be used. However normal U-Boot use MU1_A, so we
could not reuse the one in dts. And we could not replace the one
in dts with MU0_A, because MU0_A is reserved in secure world.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/imx8/scu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c index 15101b3e5f..1b9c49c99c 100644 --- a/drivers/misc/imx8/scu.c +++ b/drivers/misc/imx8/scu.c @@ -191,7 +191,11 @@ static int imx8_scu_probe(struct udevice *dev) if (addr == FDT_ADDR_T_NONE) return -EINVAL; +#ifdef CONFIG_SPL_BUILD + plat->base = (struct mu_type *)CONFIG_MU_BASE_SPL; +#else plat->base = (struct mu_type *)addr; +#endif /* U-Boot not enable interrupts, so need to enable RX interrupts */ mu_hal_init(plat->base); |