MLK-21819: drm/bridge: nwl-dsi: Use sync events instead of sync pulse
authorRobert Chiras <robert.chiras@nxp.com>
Wed, 31 Jul 2019 08:58:04 +0000 (11:58 +0300)
committerRobert Chiras <robert.chiras@nxp.com>
Wed, 7 Aug 2019 11:44:38 +0000 (14:44 +0300)
commitc691bfe32f7fb336d71b8cf0bef66c67bbfff91c
tree6968f5affe0e47fa6bdf6a095dee593f7f2b882c
parenta124e889479a2c2ecfe4a236dca89b4de240948f
MLK-21819: drm/bridge: nwl-dsi: Use sync events instead of sync pulse

For some reason, when sending HS DSI commands while also sending pixel
data, the display timing becomes messed up. Didn't find the reason for
which this is happening, but it seems that setting the video mode for
DPI to Non-Burst with Sync Events instead of Non-Burst with Sync Pulses
allows the insertion of HS DSI commands to be send without problems.
So, use Sync Pulses only if requested by mode_flags and use Sync Events
as default.
Also:
- added defines for this video mode, in order to explain those magic
numbers used
- removed write to ENABLE_MULT_PKTS register twice

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/bridge/nwl-dsi.c