Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 1 | #ifndef DDK750_POWER_H__ |
| 2 | #define DDK750_POWER_H__ |
| 3 | |
Juston Li | 259fef3 | 2015-07-14 21:14:45 -0700 | [diff] [blame] | 4 | typedef enum _DPMS_t { |
Juston Li | 7837653 | 2015-07-14 21:14:30 -0700 | [diff] [blame] | 5 | crtDPMS_ON = 0x0, |
| 6 | crtDPMS_STANDBY = 0x1, |
| 7 | crtDPMS_SUSPEND = 0x2, |
| 8 | crtDPMS_OFF = 0x3, |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 9 | } |
| 10 | DPMS_t; |
| 11 | |
| 12 | #define setDAC(off) \ |
| 13 | { \ |
Isaac Assegai | 5e93581 | 2015-06-02 03:14:23 -0700 | [diff] [blame] | 14 | POKE32(MISC_CTRL, FIELD_VALUE(PEEK32(MISC_CTRL), \ |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 15 | MISC_CTRL, \ |
| 16 | DAC_POWER, \ |
| 17 | off)); \ |
| 18 | } |
| 19 | |
| 20 | void ddk750_setDPMS(DPMS_t); |
| 21 | |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 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 | /* |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 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 | /* |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 48 | * This function enable/disable the I2C Engine |
| 49 | */ |
| 50 | void enableI2C(unsigned int enable); |
| 51 | |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 52 | |
| 53 | #endif |