static void identify_lcd(void) { SCU_IOMUXB_CON &= ~(1<<2); GPIO_PCCON |= (1<<7); SCU_GPIOUPCON |= (1<<0x17); GPIO_PCDR &= ~(1<<7); udelay(1); GPIO_PCDR |= (1<<7); udelay(4); GPIO_PCCON |= (1<<4); SCU_GPIOUPCON |= (1<<0x14); GPIO_PCDR |= (1<<4); if (GPIO_PCDR & (1<<4)) { lcd_type = LCD_V1; } else { lcd_type = LCD_v2; } GPIO_PCDR &= ~(1<<4); }