2015-03-03 10:51:06 +00:00
|
|
|
#ifndef DDK750_POWER_H__
|
|
|
|
#define DDK750_POWER_H__
|
|
|
|
|
2015-07-15 04:14:45 +00:00
|
|
|
typedef enum _DPMS_t {
|
2015-07-15 04:14:30 +00:00
|
|
|
crtDPMS_ON = 0x0,
|
|
|
|
crtDPMS_STANDBY = 0x1,
|
|
|
|
crtDPMS_SUSPEND = 0x2,
|
|
|
|
crtDPMS_OFF = 0x3,
|
2015-03-03 10:51:06 +00:00
|
|
|
}
|
|
|
|
DPMS_t;
|
|
|
|
|
2016-01-17 18:04:21 +00:00
|
|
|
#define setDAC(off) { \
|
|
|
|
POKE32(MISC_CTRL, \
|
|
|
|
(PEEK32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \
|
|
|
|
}
|
2015-03-03 10:51:06 +00:00
|
|
|
|
|
|
|
void ddk750_setDPMS(DPMS_t);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This function sets the current power mode
|
|
|
|
*/
|
|
|
|
void setPowerMode(unsigned int powerMode);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This function sets current gate
|
|
|
|
*/
|
|
|
|
void setCurrentGate(unsigned int gate);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This function enable/disable the 2D engine.
|
|
|
|
*/
|
|
|
|
void enable2DEngine(unsigned int enable);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This function enable/disable the DMA Engine
|
|
|
|
*/
|
|
|
|
void enableDMA(unsigned int enable);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This function enable/disable the GPIO Engine
|
|
|
|
*/
|
|
|
|
void enableGPIO(unsigned int enable);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This function enable/disable the I2C Engine
|
|
|
|
*/
|
|
|
|
void enableI2C(unsigned int enable);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|