drm: rcar-du: lvds: Fix LVDS startup on R-Car Gen2
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Fri, 12 Jan 2018 20:12:05 +0000 (23:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:40 +0000 (07:52 +0200)
commitffc1f3ac180c37699b79965e04613e12b1ce31c0
tree2a62d6fd72a42f74639e66997a1cf004dd604d38
parente5b5d9be211e11acd6602b33a1fecea9f78cb850
drm: rcar-du: lvds: Fix LVDS startup on R-Car Gen2

[ Upstream commit 8525d04ba8a6a9ecfa4bd619c988ca873a5fc2a4 ]

According to the latest revision 2.00 of the R-Car Gen2 manual, the LVDS
and the bias circuit must be enabled after the LVDS I/O pins are
enabled, not before. Fix the Gen2 LVDS startup sequence accordingly.

While at it, also fix the comment preceding the first LVDCR0 write that
still talks about hardcoding the LVDS mode 0.

Fixes: 90374b5c25c9 ("drm/rcar-du: Add internal LVDS encoder support")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c