Add support to dynamically switch between dsi video
mode and command mode for MDP3 driver. For a panel which
is configured in video mode and can support command mode,
it would be power efficient to dynamically switch to
command mode on need basis.
Change-Id: Iefb3c8aa453a8be4396fd04b65dcc462d01e26fb
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
The TE GPIO needed on command mode panels has a gpio_func
value of 1. Acquiring resources of this gpio using gpio_request
API might configure this to a common gpio which has
gpio_func value equal to 0. Hence control this gpio using
the gpiomux framework.
Change-Id: I2e14ada484a6d20774030393ae6549f05ac1e8db
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
The dsi panel driver implements the dsi command send
and receive functions. However, on 8x10, it was using
its own version. This change is to use the functions
defined in the panel driver.
Change-Id: I4dcec67fecb51f02b65ee7818ccbe7729f3e6831
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
There are two separate dsi host controller drivers currently.
While the h/w specific operations are different, the dsi
command utility functions can be shared as that is purely s/w.
This change is to use the common dsi command utility api.
Change-Id: I381eb6dee80a88e0d4ea17a18fa030df7d13db8c
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
On command mode panel, panel is refreshing itself using
its own internal memory. Shutting down the dsi clocks
when there is no display update will save power.
Change-Id: Ibce33bed8c5ed65581557089b6537b1a8d9428b4
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
This fixes a power leakage due to gpio is not put into
the suspended mode at display off.
Change-Id: If37426b821cdf08e207888ac84a2afbcbc011451
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
Update dsi v2 driver to use GCDB platform
tags and B family panel utility API. This changes
supports complete GCDB kernel dtsi tags
for 8x10. It also removes the panel v2 driver because
switching to B family panel utility removes
panel v2 driver usage.
Change-Id: I840223279ef3aa6aa8ee364f6c4e03f49e0e2d4b
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
Support BL_DCS_CMD function to adjust brigtness in 8x10/12.
Change-Id: If7cf7eff9509c043af4be6e6ec5f0039346f8e0a
Signed-off-by: Shuo Yan <shuoy@codeaurora.org>
This adds the continuous splash screen support on
8x10. At the kernel bootup time, display driver
will copy the splash image from the LK to its own
allocated memory, and keep the display on with the
splash image until the first UI update.
Change-Id: I13b2c7fa92d1bbd03fa7bf641d9c54b9ac0a8223
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
The list size was limited to only 255 DSI commands. But for certain
panels, it requires more DSI commands for panel initialization sequence.
Change-Id: I281701d5243c4d37c64de234ff502fa681ee9071
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
DSI clock is the core clock for DSI controller. Turn on the DSI controller
before issuing panel on DSI commands, and switch to DSI command mode before
sending panel off commands.
Change-Id: I0cda9619ebbb61600d8f0a80668bf4b4501ac799
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>