Skip to content

Commit 73eeb11

Browse files
lk: add panel off commands
1 parent d064e95 commit 73eeb11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ def generate_lk_driver(p: Panel) -> None:
202202
panel->panelresetseq = {f'&{p.id}_reset_seq' if p.reset_seq else 'NULL'};
203203
panel->backlightinfo = {f'&{p.id}_backlight' if p.backlight else 'NULL'};
204204
pinfo->mipi.panel_on_cmds = {p.id}_on_command;
205+
pinfo->mipi.panel_off_cmds = {p.id}_off_command;
205206
pinfo->mipi.num_of_panel_on_cmds = ARRAY_SIZE({p.id}_on_command);
207+
pinfo->mipi.num_of_panel_off_cmds = ARRAY_SIZE({p.id}_off_command);
206208
memcpy(phy_db->timing, {p.id}_timings, TIMING_SIZE);
207209
phy_db->regulator_mode = {'DSI_PHY_REGULATOR_LDO_MODE' if p.ldo_mode else 'DSI_PHY_REGULATOR_DCDC_MODE'};
208210
}}

0 commit comments

Comments
 (0)