Commit | Line | Data |
---|---|---|
81dee67e SM |
1 | #ifndef DDK750_POWER_H__ |
2 | #define DDK750_POWER_H__ | |
3 | ||
259fef35 | 4 | typedef enum _DPMS_t { |
78376535 JL |
5 | crtDPMS_ON = 0x0, |
6 | crtDPMS_STANDBY = 0x1, | |
7 | crtDPMS_SUSPEND = 0x2, | |
8 | crtDPMS_OFF = 0x3, | |
81dee67e SM |
9 | } |
10 | DPMS_t; | |
11 | ||
5372350b | 12 | #define setDAC(off) { \ |
c075b6f2 MS |
13 | poke32(MISC_CTRL, \ |
14 | (peek32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \ | |
5372350b | 15 | } |
81dee67e | 16 | |
d228cf87 | 17 | void ddk750_set_dpms(DPMS_t state); |
52d0744d AB |
18 | void sm750_set_power_mode(unsigned int powerMode); |
19 | void sm750_set_current_gate(unsigned int gate); | |
81dee67e SM |
20 | |
21 | /* | |
22 | * This function enable/disable the 2D engine. | |
23 | */ | |
52d0744d | 24 | void sm750_enable_2d_engine(unsigned int enable); |
81dee67e | 25 | |
81dee67e SM |
26 | /* |
27 | * This function enable/disable the DMA Engine | |
28 | */ | |
52d0744d | 29 | void sm750_enable_dma(unsigned int enable); |
81dee67e SM |
30 | |
31 | /* | |
32 | * This function enable/disable the GPIO Engine | |
33 | */ | |
52d0744d | 34 | void sm750_enable_gpio(unsigned int enable); |
81dee67e | 35 | |
81dee67e SM |
36 | /* |
37 | * This function enable/disable the I2C Engine | |
38 | */ | |
52d0744d | 39 | void sm750_enable_i2c(unsigned int enable); |
81dee67e | 40 | |
81dee67e | 41 | #endif |