]> git.ipfire.org Git - people/ms/u-boot.git/commit
video: mxsfb: introduce lcdif_power_down
authorPeng Fan <Peng.Fan@freescale.com>
Thu, 29 Oct 2015 07:54:49 +0000 (15:54 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 12 Nov 2015 16:40:53 +0000 (17:40 +0100)
commita3c252d6d68f9038106e0c11298438a2e50ab50f
tree664654ac167352c938555136dcb670e90ec04099
parentdf6749048846cd15131ba1b4d9ae000eddddae4e
video: mxsfb: introduce lcdif_power_down

Introudce a new function lcdif_power_down.

1. Waits for a VSYNC interrupt to guarantee the reset is done at the
   VSYNC edge, which somehow makes the LCDIF consume the display FIFO(?)
   and helps the LCDIF work normally at the kernel stage.
2. Add power down function to stop lcdif.

The reason to introduce lcdif_power_down is that we want lcdif to be in
initial state when doing uboot reset or before kernel boot to make
system stable, otherwise system may hang.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
arch/arm/include/asm/imx-common/sys_proto.h
drivers/video/mxsfb.c