]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00240740-3 IPUv3 fb:Workaround bootup ipu error
authorLiu Ying <Ying.liu@freescale.com>
Fri, 18 Jan 2013 08:33:00 +0000 (16:33 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:51 +0000 (08:35 +0200)
commitc7b0326aaf73dd297258571ff12860f6c99c4110
treea8be3a5ad7099b9f44e0ff7c2b49c674bfe38792
parent97ab31c15a010ef5f487cb73cc4cd9aff168d2b3
ENGR00240740-3 IPUv3 fb:Workaround bootup ipu error

Enabling IPU hsp clock in mxcfb_probe() context by calling
ipu_init_channel() can avoid the IPU display channel(setup
in bootloader) from being damaged by some IPU common driver
APIS which enable/disable IPU hsp clock when doing driver
probe. However, somehow, after LDO bypass patch set is pushed
to kernel, this clock enablement can trigger IPU errors
(IPU_INT_STAT_5 - 0x00800000/IPU_INT_STAT_10 - 0x00100000) and
a display flash. A workaround is to enable IPU hsp clock when
we are at ipu_probe() context, which is earlier than mxcfb_probe()
context, and then to disable(cleanup) the clock once more when
fb_set_par() is triggered by the user for the first time. This
patch updates the comment for ipu_init_channel() and
ipu_enable_channel() in mxcfb_probe() context, and disables ipu
hsp clock when fb_set_par() is triggered by the user for the first
time.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 5528e415659a60f3c6d67db96692befb3302a58a)
drivers/video/mxc/mxc_ipuv3_fb.c