cm.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * update the core module control register.
  3. */
  4. void cm_control(u32, u32);
  5. #define CM_CTRL_LED (1 << 0)
  6. #define CM_CTRL_nMBDET (1 << 1)
  7. #define CM_CTRL_REMAP (1 << 2)
  8. #define CM_CTRL_RESET (1 << 3)
  9. /*
  10. * Integrator/AP,PP2 specific
  11. */
  12. #define CM_CTRL_HIGHVECTORS (1 << 4)
  13. #define CM_CTRL_BIGENDIAN (1 << 5)
  14. #define CM_CTRL_FASTBUS (1 << 6)
  15. #define CM_CTRL_SYNC (1 << 7)
  16. /*
  17. * ARM926/946/966 Integrator/CP specific
  18. */
  19. #define CM_CTRL_LCDBIASEN (1 << 8)
  20. #define CM_CTRL_LCDBIASUP (1 << 9)
  21. #define CM_CTRL_LCDBIASDN (1 << 10)
  22. #define CM_CTRL_LCDMUXSEL_MASK (7 << 11)
  23. #define CM_CTRL_LCDMUXSEL_GENLCD (1 << 11)
  24. #define CM_CTRL_LCDMUXSEL_VGA565_TFT555 (2 << 11)
  25. #define CM_CTRL_LCDMUXSEL_SHARPLCD (3 << 11)
  26. #define CM_CTRL_LCDMUXSEL_VGA555_TFT555 (4 << 11)
  27. #define CM_CTRL_LCDEN0 (1 << 14)
  28. #define CM_CTRL_LCDEN1 (1 << 15)
  29. #define CM_CTRL_STATIC1 (1 << 16)
  30. #define CM_CTRL_STATIC2 (1 << 17)
  31. #define CM_CTRL_STATIC (1 << 18)
  32. #define CM_CTRL_n24BITEN (1 << 19)
  33. #define CM_CTRL_EBIWP (1 << 20)