cm.h 1.1 KB

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