]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i.MX: shut down video before launch of O/S
authorEric Nelson <eric.nelson@boundarydevices.com>
Sun, 23 Sep 2012 07:30:55 +0000 (07:30 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 24 Sep 2012 08:48:58 +0000 (10:48 +0200)
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
arch/arm/imx-common/cpu.c

index fa1d4680416ff2d3470257cd007351650df441e6..a10d12d97dcdc9739de53e66db9e15cfadbb54f2 100644 (file)
@@ -30,6 +30,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/crm_regs.h>
+#include <ipu_pixfmt.h>
 
 #ifdef CONFIG_FSL_ESDHC
 #include <fsl_esdhc.h>
@@ -138,3 +139,11 @@ u32 get_ahb_clk(void)
 
        return get_periph_clk() / (ahb_podf + 1);
 }
+
+#if defined(CONFIG_VIDEO_IPUV3)
+void arch_preboot_os(void)
+{
+       /* disable video before launching O/S */
+       ipuv3_fb_shutdown();
+}
+#endif