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