• Ye Li's avatar
    MLK-16361-1 imx8qm/qxp: Send boot status to SCFW if booted by SC ROM · 67bb87f1
    Ye Li authored
    We met u-boot hang when booting from eMMC fastboot on QM/QXP boards.
    The hang happens on u-boot accessing USB2 PHY for checking USB boot.
    The root cause is when putting AP image (u-boot-atf.bin) in first container,
    the USB2 PHY reset bit won’t be set in CONN SS by SCFW, because this SS has been
    powered on by SC ROM.
    
    In normal boot case, we won't meet such issue. Because we put u-boot-atf.bin in second
    container and AP ROM will boot up for loading this binary. When AP ROM completes the
    loading, it calls “misc_boot_status” API to power off the boot device and also power
    off the CONN SS. Then when u-boot enables any the module in CONN, the CONN SS will power
    on again by SCFW and set the USB2 PHY reset bit.
    
    Since the clock settings are different in SC ROM and SCFW, so it is suggested to power off
    CONN SS when booting is completed. In this patch, we check the g_ap_mu field in pass over
    structure which is used to pass into from SC ROM to AP ROM. This field is set only when AP
    image is included in the second container. If this field is not set, we suppose the booting
    only uses SC ROM, then u-boot calls "misc_boot_status" at early stage to power off
    boot device.
    Signed-off-by: 's avatarYe Li <ye.li@nxp.com>
    Acked-by: 's avatarPeng Fan <peng.fan@nxp.com>
    67bb87f1
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
cmd Loading commit data...
common Loading commit data...
configs Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
config.mk Loading commit data...
snapshot.commit Loading commit data...