comparison src/cs/drivers/drv_app/r2d/lcds/luna/r2d_task_init_i.c @ 653:094152d97ce7

Luna bring-up: workaround for slow LCD init sequence
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 07 May 2020 20:08:01 +0000
parents 7d6878435c85
children
comparison
equal deleted inserted replaced
652:41c03ea90403 653:094152d97ce7
2 2
3 #define R2D_MB_PRIM_SIZE (4000) 3 #define R2D_MB_PRIM_SIZE (4000)
4 4
5 static void r2d_refresh_task_init(void) 5 static void r2d_refresh_task_init(void)
6 { 6 {
7 UINT32 i;
8
9 /* reset pulse */ 7 /* reset pulse */
10 CNTL_RST_REG |= EXT_RESET; 8 CNTL_RST_REG |= EXT_RESET;
11 rvf_delay(RVF_MS_TO_TICKS(10)); 9 rvf_delay(RVF_MS_TO_TICKS(10));
12 CNTL_RST_REG &= ~EXT_RESET; 10 CNTL_RST_REG &= ~EXT_RESET;
11 /* finish the job in the running R2D refresh task */
12 }
13
14 void r2d_refresh_task_secondary_init(void)
15 {
16 UINT32 i;
17
13 rvf_delay(RVF_MS_TO_TICKS(50)); 18 rvf_delay(RVF_MS_TO_TICKS(50));
14 /* start register init */ 19 /* start register init */
15 LCD_REG_WR(0x0001, 0x011c); // set SS and NL bit 20 LCD_REG_WR(0x0001, 0x011c); // set SS and NL bit
16 LCD_REG_WR(0x0002, 0x0100); // set 1 line inversion 21 LCD_REG_WR(0x0002, 0x0100); // set 1 line inversion
17 LCD_REG_WR(0x0003, 0x1030); // set GRAM write direction and BGR=1. 22 LCD_REG_WR(0x0003, 0x1030); // set GRAM write direction and BGR=1.