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 POKE32(MISC_CTRL, \ 14 (PEEK32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \ 15 } 16 17 void ddk750_setDPMS(DPMS_t); 18 19 /* 20 * This function sets the current power mode 21 */ 22 void setPowerMode(unsigned int powerMode); 23 24 /* 25 * This function sets current gate 26 */ 27 void setCurrentGate(unsigned int gate); 28 29 /* 30 * This function enable/disable the 2D engine. 31 */ 32 void enable2DEngine(unsigned int enable); 33 34 /* 35 * This function enable/disable the DMA Engine 36 */ 37 void enableDMA(unsigned int enable); 38 39 /* 40 * This function enable/disable the GPIO Engine 41 */ 42 void enableGPIO(unsigned int enable); 43 44 /* 45 * This function enable/disable the I2C Engine 46 */ 47 void enableI2C(unsigned int enable); 48 49 50 #endif 51