static void LCD_open_cmd(__u32 sel) { __u32 id; LCD_delay(60000); __inf("LCD_BOOT: wait to power on!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); LCD_CPU_AUTO_FLUSH(0,0); __inf("LCD_BOOT: disable auto mode for setting!!!!!!!!!!!!!!!!\n"); LCD_delay(600); //LCD_CPU_RD(0x0000,&id); __inf("LCD_BOOT: id to read back is %x\n",id); //setting panel lcd_cpu_cmdset(); __inf("LCD_BOOT: lcd_cpu_cmdset!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); //command to send data LCD_CPU_WR_INDEX(0,0x0202); __inf("LCD_BOOT: LCD_CPU_WR_INDEX!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); LCD_CPU_AUTO_FLUSH(0,1); __inf("LCD_BOOT: LCD_CPU_AUTO_FLUSH !!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); }
void Lcd_cpuisr_proc(void) { //if(lcd_onoff_status == 1) { LCD_CPU_WR(0,0x0200, 0x0000); //INT GRAM address LCD_CPU_WR(0,0x0201, 0x0000); //INT GRAM address LCD_CPU_WR_INDEX(0,0x0202); //__msg("LCD: Lcd_cpuisr_proc\n"); } }
static void kgm281i0_write_gram_origin(__u32 sel) { LCD_CPU_WR(sel,0x0020, 0); // GRAM horizontal Address LCD_CPU_WR(sel,0x0021, 319); // GRAM Vertical Address LCD_CPU_WR_INDEX(sel,0x22); // Write Memery Start }