arm: K3: sysfw-loader: Add a config_pm_pre_callback()
authorFaiz Abbas <faiz_abbas@ti.com>
Wed, 26 Feb 2020 08:14:36 +0000 (13:44 +0530)
committerPeng Fan <peng.fan@nxp.com>
Mon, 9 Mar 2020 00:33:16 +0000 (08:33 +0800)
commitd45ffb79376a9ab28ddfd2a61111a1732541289a
treea6e5559f6801d6a07c542055ec24e7ebd5d16f3a
parentcf0082559698765a96f96cb3811db6a91c02ca82
arm: K3: sysfw-loader: Add a config_pm_pre_callback()

System firmware does not guarantee that clocks going out of the device
will be stable during power management configuration. There are some
DCRC errors when SPL tries to get the next stage during eMMC boot after
sysfw pm configuration.

Therefore add a config_pm_pre_callback() to switch off the eMMC clock
before power management and restart it after it is done.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/mach-k3/am6_init.c
arch/arm/mach-k3/include/mach/sysfw-loader.h
arch/arm/mach-k3/j721e_init.c
arch/arm/mach-k3/sysfw-loader.c