huangcm
2025-02-28 b45e871a67cd1272e3da9ba5bd383f832b0f1824
longan/kernel/linux-4.9/drivers/video/fbdev/sunxi/disp2/disp/lcd/mipi_8_800x1280.c
....@@ -105,12 +105,13 @@
105105 static void lcd_power_on(u32 sel)
106106 {
107107
108
-
109108 panel_reset(sel, 0);
110109 sunxi_lcd_power_enable(sel, 0);
111110 sunxi_lcd_pin_cfg(sel, 1);
112
- //sunxi_lcd_power_enable(sel, 1);
113
- sunxi_lcd_delay_ms(50);
111
+ sunxi_lcd_power_enable(sel, 1);
112
+
113
+ sunxi_lcd_gpio_set_value(sel, 1, 1);
114
+ sunxi_lcd_delay_ms(200);
114115 panel_reset(sel, 1);
115116 sunxi_lcd_delay_ms(10);
116117 panel_reset(sel, 0);
....@@ -123,6 +124,7 @@
123124 {
124125 panel_reset(sel, 0);
125126 sunxi_lcd_delay_ms(1);
127
+ // sunxi_lcd_gpio_set_value(sel, 1, 0);
126128 sunxi_lcd_power_disable(sel, 1);
127129 sunxi_lcd_delay_ms(1);
128130 sunxi_lcd_power_disable(sel, 0);