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 | |
Mike Rapoport | 5372350 | 2016-01-17 20:04:21 +0200 | [diff] [blame] | 12 | #define setDAC(off) { \ |
| 13 | POKE32(MISC_CTRL, \ |
| 14 | (PEEK32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \ |
| 15 | } |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 16 | |
| 17 | void ddk750_setDPMS(DPMS_t); |
| 18 | |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 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 | /* |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 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 | /* |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 45 | * This function enable/disable the I2C Engine |
| 46 | */ |
| 47 | void enableI2C(unsigned int enable); |
| 48 | |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 49 | |
| 50 | #endif |