mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drm/panel: simple: Add reset gpio
Fixes: 12353d7243 ("drm/panel: simple: Add reset gpio")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I3c3066e4249aa49f948de9f0bb5d888f0e3d2739
This commit is contained in:
@@ -518,16 +518,6 @@ static int panel_simple_prepare(struct drm_panel *panel)
|
||||
|
||||
gpiod_direction_output(p->enable_gpio, 1);
|
||||
|
||||
if (p->desc->delay.reset)
|
||||
msleep(p->desc->delay.prepare);
|
||||
|
||||
gpiod_direction_output(p->reset_gpio, 1);
|
||||
|
||||
if (p->desc->delay.reset)
|
||||
msleep(p->desc->delay.reset);
|
||||
|
||||
gpiod_direction_output(p->reset_gpio, 0);
|
||||
|
||||
delay = p->desc->delay.prepare;
|
||||
if (p->no_hpd)
|
||||
delay += p->desc->delay.hpd_absent_delay;
|
||||
@@ -554,6 +544,13 @@ static int panel_simple_prepare(struct drm_panel *panel)
|
||||
}
|
||||
}
|
||||
|
||||
gpiod_direction_output(p->reset_gpio, 1);
|
||||
|
||||
if (p->desc->delay.reset)
|
||||
msleep(p->desc->delay.reset);
|
||||
|
||||
gpiod_direction_output(p->reset_gpio, 0);
|
||||
|
||||
if (p->desc->init_seq)
|
||||
if (p->dsi)
|
||||
panel_simple_xfer_dsi_cmd_seq(p, p->desc->init_seq);
|
||||
|
||||
Reference in New Issue
Block a user