drm/panel: add .prepare() and .unprepare() functions
authorAjay Kumar <ajaykumar.rs@samsung.com>
Thu, 17 Jul 2014 20:43:48 +0000 (02:13 +0530)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:01:05 +0000 (12:01 +0900)
commitc01f9d17cacb30d8857db29512a9871deaf6d386
tree216d91b814898509ad472da0f9bc370cc047635c
parent485935a422e6be299e56896c40d7f818242dbd62
drm/panel: add .prepare() and .unprepare() functions

Panels often require an initialization sequence that consists of three
steps: a) powering up the panel, b) starting transmission of video data
and c) enabling the panel (e.g. turn on backlight). This is usually
necessary to avoid visual glitches at the beginning of video data
transmission.

Similarly, the shutdown sequence is typically done in three steps as
well: a) disable the panel (e.g. turn off backlight), b) cease video
data transmission and c) power down the panel.

Currently drivers can only implement .enable() and .disable() functions,
which is not enough to implement the above sequences. This commit adds a
second pair of functions, .prepare() and .unprepare() to allow more
fine-grained control over when the above steps are performed.

Change-Id: Id00eec6fd18b9e480975e0c3478a8890cacb79e7
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
[treding: rewrite changelog, add kerneldoc]
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
include/drm/drm_panel.h