OSDN Git Service

drm: rcar-du: lvds: Refactor LVDS startup
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Fri, 19 Jan 2018 18:29:19 +0000 (21:29 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 15 Feb 2018 00:06:21 +0000 (02:06 +0200)
commit871dfe7b48bdc56877826d6cf669e9eef0cf671b
tree98a4a9e2e14c5274c30c79a1d843075bd78846fc
parent796ceb9269626afaed3b4955c40d2c3d7a8c5d01
drm: rcar-du: lvds: Refactor LVDS startup

After the recent corrections to the R-Car gen2/3 LVDS startup code, already
similar enough at their ends rcar_lvds_enable_gen{2|3}() started asking for
a merge and it's becoming actually necessary with the addition of the R-Car
V3M (R8A77970) support -- this gen3 SoC has gen2-like LVDPLLCR layout.

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>
[Set the LVDS mode and input before turning channels on]
[Rebased, coding style changes]
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c