ddk750_power.h 912 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef DDK750_POWER_H__
  2. #define DDK750_POWER_H__
  3. typedef enum _DPMS_t {
  4. crtDPMS_ON = 0x0,
  5. crtDPMS_STANDBY = 0x1,
  6. crtDPMS_SUSPEND = 0x2,
  7. crtDPMS_OFF = 0x3,
  8. }
  9. DPMS_t;
  10. #define setDAC(off) \
  11. { \
  12. POKE32(MISC_CTRL, FIELD_VALUE(PEEK32(MISC_CTRL), \
  13. MISC_CTRL, \
  14. DAC_POWER, \
  15. off)); \
  16. }
  17. void ddk750_setDPMS(DPMS_t);
  18. /*
  19. * This function sets the current power mode
  20. */
  21. void setPowerMode(unsigned int powerMode);
  22. /*
  23. * This function sets current gate
  24. */
  25. void setCurrentGate(unsigned int gate);
  26. /*
  27. * This function enable/disable the 2D engine.
  28. */
  29. void enable2DEngine(unsigned int enable);
  30. /*
  31. * This function enable/disable the DMA Engine
  32. */
  33. void enableDMA(unsigned int enable);
  34. /*
  35. * This function enable/disable the GPIO Engine
  36. */
  37. void enableGPIO(unsigned int enable);
  38. /*
  39. * This function enable/disable the I2C Engine
  40. */
  41. void enableI2C(unsigned int enable);
  42. #endif