OSDN Git Service

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)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 14 Feb 2018 17:54:41 +0000 (19:54 +0200)
commit8525d04ba8a6a9ecfa4bd619c988ca873a5fc2a4
tree59f865f1fce1121eebe7f97562fe4ea0714b20ee
parent02f0aaaaf03049ac69473015c54bdd46eaebf1e3
drm: rcar-du: lvds: Fix LVDS startup on R-Car Gen2

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>
drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c