Guest User

Untitled

a guest
Dec 18th, 2012
83
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static void identify_lcd(void)
  2. {
  3. SCU_IOMUXB_CON &= ~(1<<2);
  4.  
  5. GPIO_PCCON |= (1<<7);
  6. GPIO_PCDR &= ~(1<<7);
  7. udelay(1);
  8. GPIO_PCDR |= (1<<7);
  9. udelay(4);
  10. GPIO_PCCON |= (1<<4);
  11. GPIO_PCDR |= (1<<4);
  12.  
  13. if (GPIO_PCDR & (1<<4))
  14. {
  15. lcd_type = LCD_V1;
  16. }
  17. else
  18. {
  19. lcd_type = LCD_v2;
  20. }
  21. }
RAW Paste Data