[U-Boot] [PATCH 10/11] imx: mx6: implement reset_misc
Peng Fan
Peng.Fan at freescale.com
Thu Sep 10 12:29:07 CEST 2015
We need to power down lcdif before uboot reset to make reset can pass
stress test. Or system may hang.
Signed-off-by: Peng Fan <Peng.Fan at freescale.com>
Cc: Stefano Babic <sbabic at denx.de>
---
arch/arm/cpu/armv7/mx6/soc.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index 8ad8da8..df18ca3 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -521,6 +521,14 @@ const struct boot_mode soc_boot_modes[] = {
{NULL, 0},
};
+void reset_misc(void)
+{
+#ifdef CONFIG_VIDEO_MXS
+ if (is_cpu_type(MXC_CPU_MX6UL))
+ lcdif_power_down();
+#endif
+}
+
void s_init(void)
{
struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR;
--
1.8.4
More information about the U-Boot
mailing list