drm: mxsfb_crtc: Reset the eLCDIF controller
authorFabio Estevam <fabio.estevam@nxp.com>
Fri, 5 May 2017 18:01:41 +0000 (15:01 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Jun 2017 05:06:15 +0000 (07:06 +0200)
commita3599c07f4aecb4892959ef35aef09678cd5c079
treed869c618d0942bc6a18c57da10db18c65360b3d1
parent3891a5fc65943829f86830d49c42acbe96004c40
drm: mxsfb_crtc: Reset the eLCDIF controller

commit 0f933328f018c118ded2035f12068bbdfdef399d upstream.

According to the eLCDIF initialization steps listed in the MX6SX
Reference Manual the eLCDIF block reset is mandatory.

Without performing the eLCDIF reset the display shows garbage content
when the kernel boots.

In earlier tests this issue has not been observed because the bootloader
was previously showing a splash screen and the bootloader display driver
does properly implement the eLCDIF reset.

Add the eLCDIF reset to the driver, so that it can operate correctly
independently of the bootloader.

Tested on a imx6sx-sdb board.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1494007301-14535-1-git-send-email-fabio.estevam@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/mxsfb/mxsfb_crtc.c