From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Thu, 29 Oct 2015 15:54:50 +0800 Subject: [U-Boot] [PATCH V3 13/16] imx: mx6: implement reset_misc In-Reply-To: <1446105293-31775-1-git-send-email-Peng.Fan@freescale.com> References: <1446105293-31775-1-git-send-email-Peng.Fan@freescale.com> Message-ID: <1446105293-31775-13-git-send-email-Peng.Fan@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de We need to power down lcdif before uboot reset to make reset can pass stress test. Signed-off-by: Peng Fan Cc: Stefano Babic --- V3: lcdif_power_down should be applied to all i.MX6, but not only i.MX6UL, so drop the if (is_cpu_type(MXC_CPU_MX6UL)). V2: none arch/arm/cpu/armv7/mx6/soc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index 282302b..8fcb0df 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -392,6 +392,13 @@ const struct boot_mode soc_boot_modes[] = { {NULL, 0}, }; +void reset_misc(void) +{ +#ifdef CONFIG_VIDEO_MXS + lcdif_power_down(); +#endif +} + void s_init(void) { struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR; -- 1.8.4