]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx: imx8qm/imx8qxp: Power down the resources before SPL jump to u-boot
authorPeng Fan <peng.fan@nxp.com>
Tue, 5 May 2020 12:28:40 +0000 (20:28 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
commit231401de2eab8b8e503eb21afb6579ec24f872c6
tree34f496d11fca0c3d0faa25839a98ed43ca25d3ec
parent8103767256dde5e0ca949790f0896268ae0832d3
imx: imx8qm/imx8qxp: Power down the resources before SPL jump to u-boot

Make sure that all devices that are powered up by SPL are powered down
before entering into the u-boot. Otherwise the subsystem/device will
never be powered down by SCFW, due to SPL and u-boot are in different
partitions.

Benefiting from power domain driver, this patch implements the function
"imx8_power_off_pd_devices" to power off all active devices.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-imx8/sys_proto.h
board/freescale/imx8qm_mek/spl.c
board/freescale/imx8qxp_mek/spl.c
drivers/power/domain/imx8-power-domain-legacy.c