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 1703140dabSElise Lennion void ddk750_set_dpms(DPMS_t); 183fcb465fSElise Lennion void set_power_mode(unsigned int powerMode); 193fcb465fSElise Lennion void set_current_gate(unsigned int gate); 2081dee67eSSudip Mukherjee 2181dee67eSSudip Mukherjee /* 2281dee67eSSudip Mukherjee * This function enable/disable the 2D engine. 2381dee67eSSudip Mukherjee */ 2403140dabSElise Lennion void enable_2d_engine(unsigned int enable); 2581dee67eSSudip Mukherjee 2681dee67eSSudip Mukherjee /* 2781dee67eSSudip Mukherjee * This function enable/disable the DMA Engine 2881dee67eSSudip Mukherjee */ 2903140dabSElise Lennion void enable_dma(unsigned int enable); 3081dee67eSSudip Mukherjee 3181dee67eSSudip Mukherjee /* 3281dee67eSSudip Mukherjee * This function enable/disable the GPIO Engine 3381dee67eSSudip Mukherjee */ 3403140dabSElise Lennion void enable_gpio(unsigned int enable); 3581dee67eSSudip Mukherjee 3681dee67eSSudip Mukherjee /* 3781dee67eSSudip Mukherjee * This function enable/disable the I2C Engine 3881dee67eSSudip Mukherjee */ 3903140dabSElise Lennion void enable_i2c(unsigned int enable); 4081dee67eSSudip Mukherjee 4181dee67eSSudip Mukherjee 4281dee67eSSudip Mukherjee #endif 43