drivers/mipi: Add power-off commands for TM_TL121BVMS07_00C
Add DSI power-off commands for TM_TL121BVMS07_00C, so that payloads can run it to properly disable the display. Also refactor the init commands using MIPI_DCS_* macros to improve readability. BUG=b:474187570 TEST=emerge-jedi coreboot libpayload BRANCH=skywalker Change-Id: I0e7da1d23c658d7f3594cbb651c229057810319c Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90740 Reviewed-by: Yidi Lin <yidilin@google.com> Reviewed-by: Chen-Tsung Hsieh <chentsung@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
a974b7668e
commit
0ee48a475c
1 changed files with 9 additions and 2 deletions
|
|
@ -29,11 +29,18 @@ struct panel_serializable_data TM_TL121BVMS07_00C = {
|
|||
PANEL_DCS(0xFF, 0x5A, 0xA5, 0x07),
|
||||
PANEL_DCS(0X29, 0x00),
|
||||
PANEL_DCS(0xFF, 0x5A, 0xA5, 0x00),
|
||||
PANEL_DCS(0x11),
|
||||
PANEL_DCS(MIPI_DCS_EXIT_SLEEP_MODE),
|
||||
PANEL_DELAY(120),
|
||||
PANEL_DCS(0x29),
|
||||
PANEL_DCS(MIPI_DCS_SET_DISPLAY_ON),
|
||||
PANEL_DELAY(20),
|
||||
PANEL_END,
|
||||
},
|
||||
.poweroff = {
|
||||
PANEL_DCS(MIPI_DCS_SET_DISPLAY_OFF),
|
||||
PANEL_DELAY(20),
|
||||
PANEL_DCS(MIPI_DCS_ENTER_SLEEP_MODE),
|
||||
PANEL_DELAY(120),
|
||||
PANEL_END,
|
||||
},
|
||||
.flags = PANEL_FLAG_CPHY,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue