@@ -84,6 +84,21 @@ static int jadard_disable(struct drm_panel *panel)
8484 return dsi_ctx .accum_err ;
8585}
8686
87+ static int jadard_enable (struct drm_panel * panel )
88+ {
89+ struct jadard * jadard = panel_to_jadard (panel );
90+ int ret ;
91+
92+ msleep (10 );
93+
94+ ret = jadard -> desc -> init (jadard );
95+ if (ret )
96+ return ret ;
97+
98+ return 0 ;
99+ }
100+
101+
87102static int jadard_prepare (struct drm_panel * panel )
88103{
89104 struct jadard * jadard = panel_to_jadard (panel );
@@ -109,18 +124,8 @@ static int jadard_prepare(struct drm_panel *panel)
109124 if (jadard -> desc -> lp11_to_reset_delay_ms )
110125 msleep (jadard -> desc -> lp11_to_reset_delay_ms );
111126
112- gpiod_set_value (jadard -> reset , 0 );
113- msleep (5 );
114-
115127 gpiod_set_value (jadard -> reset , 1 );
116- msleep (10 );
117-
118- gpiod_set_value (jadard -> reset , 0 );
119- msleep (130 );
120-
121- ret = jadard -> desc -> init (jadard );
122- if (ret )
123- return ret ;
128+ msleep (120 );
124129
125130 return 0 ;
126131}
@@ -179,6 +184,7 @@ static const struct drm_panel_funcs jadard_funcs = {
179184 .disable = jadard_disable ,
180185 .unprepare = jadard_unprepare ,
181186 .prepare = jadard_prepare ,
187+ .enable = jadard_enable ,
182188 .get_modes = jadard_get_modes ,
183189 .get_orientation = jadard_panel_get_orientation ,
184190};
0 commit comments