]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitd81fc378ad51baf14573a096f157fa7a28da5d96
treea6e5559f6801d6a07c542055ec24e7ebd5d16f3a
parent1c4805b6fa4d86e2a6804c0ab515e25c79537724
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