181dee67eSSudip Mukherjee #ifndef DDK750_POWER_H__ 281dee67eSSudip Mukherjee #define DDK750_POWER_H__ 381dee67eSSudip Mukherjee 4259fef35SJuston Li typedef enum _DPMS_t { 581dee67eSSudip Mukherjee crtDPMS_ON = 0x0, 681dee67eSSudip Mukherjee crtDPMS_STANDBY = 0x1, 781dee67eSSudip Mukherjee crtDPMS_SUSPEND = 0x2, 881dee67eSSudip Mukherjee crtDPMS_OFF = 0x3, 981dee67eSSudip Mukherjee } 1081dee67eSSudip Mukherjee DPMS_t; 1181dee67eSSudip Mukherjee 125372350bSMike Rapoport #define setDAC(off) { \ 135372350bSMike Rapoport POKE32(MISC_CTRL, \ 145372350bSMike Rapoport (PEEK32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \ 1581dee67eSSudip Mukherjee } 1681dee67eSSudip Mukherjee 1781dee67eSSudip Mukherjee void ddk750_setDPMS(DPMS_t); 1881dee67eSSudip Mukherjee 1981dee67eSSudip Mukherjee /* 2081dee67eSSudip Mukherjee * This function sets the current power mode 2181dee67eSSudip Mukherjee */ 2281dee67eSSudip Mukherjee void setPowerMode(unsigned int powerMode); 2381dee67eSSudip Mukherjee 2481dee67eSSudip Mukherjee /* 2581dee67eSSudip Mukherjee * This function sets current gate 2681dee67eSSudip Mukherjee */ 2781dee67eSSudip Mukherjee void setCurrentGate(unsigned int gate); 2881dee67eSSudip Mukherjee 2981dee67eSSudip Mukherjee /* 3081dee67eSSudip Mukherjee * This function enable/disable the 2D engine. 3181dee67eSSudip Mukherjee */ 3281dee67eSSudip Mukherjee void enable2DEngine(unsigned int enable); 3381dee67eSSudip Mukherjee 3481dee67eSSudip Mukherjee /* 3581dee67eSSudip Mukherjee * This function enable/disable the DMA Engine 3681dee67eSSudip Mukherjee */ 3781dee67eSSudip Mukherjee void enableDMA(unsigned int enable); 3881dee67eSSudip Mukherjee 3981dee67eSSudip Mukherjee /* 4081dee67eSSudip Mukherjee * This function enable/disable the GPIO Engine 4181dee67eSSudip Mukherjee */ 4281dee67eSSudip Mukherjee void enableGPIO(unsigned int enable); 4381dee67eSSudip Mukherjee 4481dee67eSSudip Mukherjee /* 4581dee67eSSudip Mukherjee * This function enable/disable the I2C Engine 4681dee67eSSudip Mukherjee */ 4781dee67eSSudip Mukherjee void enableI2C(unsigned int enable); 4881dee67eSSudip Mukherjee 4981dee67eSSudip Mukherjee 5081dee67eSSudip Mukherjee #endif 51