summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/erosqnative/lcd-erosqnative.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/erosqnative/lcd-erosqnative.c')
-rw-r--r--firmware/target/mips/ingenic_x1000/erosqnative/lcd-erosqnative.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/erosqnative/lcd-erosqnative.c b/firmware/target/mips/ingenic_x1000/erosqnative/lcd-erosqnative.c
index 19da722898..0d43a3f010 100644
--- a/firmware/target/mips/ingenic_x1000/erosqnative/lcd-erosqnative.c
+++ b/firmware/target/mips/ingenic_x1000/erosqnative/lcd-erosqnative.c
@@ -102,6 +102,19 @@ static const uint32_t erosqnative_lcd_cmd_enable[] = {
102 LCD_INSTR_END, 102 LCD_INSTR_END,
103}; 103};
104 104
105static const uint32_t erosqnative_lcd_of_compat_cmd[] = {
106 /* Pixel Format Set */
107 LCD_INSTR_CMD, 0x3a,
108 LCD_INSTR_DAT, 0x66, /* 18 bpp */
109 /* Exit Sleep */
110 LCD_INSTR_CMD, 0x11,
111 LCD_INSTR_UDELAY, 120000,
112 /* Display On */
113 LCD_INSTR_CMD, 0x29,
114 LCD_INSTR_UDELAY, 20000,
115 LCD_INSTR_END,
116};
117
105/* sleep and wake copied directly from m3k */ 118/* sleep and wake copied directly from m3k */
106static const uint32_t erosqnative_lcd_cmd_sleep[] = { 119static const uint32_t erosqnative_lcd_cmd_sleep[] = {
107 /* Display OFF */ 120 /* Display OFF */
@@ -180,6 +193,15 @@ void lcd_tgt_enable(bool enable)
180 } 193 }
181} 194}
182 195
196void lcd_tgt_enable_of(bool enable)
197{
198 /* silence the unused parameter warning */
199 if (enable)
200 {}
201
202 lcd_exec_commands(&erosqnative_lcd_of_compat_cmd[0]);
203}
204
183void lcd_tgt_sleep(bool sleep) 205void lcd_tgt_sleep(bool sleep)
184{ 206{
185 if(sleep) 207 if(sleep)