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 | ||
12 | #define setDAC(off) \ | |
13 | { \ | |
5e935813 | 14 | POKE32(MISC_CTRL, FIELD_VALUE(PEEK32(MISC_CTRL), \ |
81dee67e SM |
15 | MISC_CTRL, \ |
16 | DAC_POWER, \ | |
17 | off)); \ | |
18 | } | |
19 | ||
20 | void ddk750_setDPMS(DPMS_t); | |
21 | ||
22 | unsigned int getPowerMode(void); | |
23 | ||
24 | /* | |
25 | * This function sets the current power mode | |
26 | */ | |
27 | void setPowerMode(unsigned int powerMode); | |
28 | ||
29 | /* | |
30 | * This function sets current gate | |
31 | */ | |
32 | void setCurrentGate(unsigned int gate); | |
33 | ||
34 | /* | |
35 | * This function enable/disable the 2D engine. | |
36 | */ | |
37 | void enable2DEngine(unsigned int enable); | |
38 | ||
39 | /* | |
40 | * This function enable/disable the ZV Port | |
41 | */ | |
42 | void enableZVPort(unsigned int enable); | |
43 | ||
44 | /* | |
45 | * This function enable/disable the DMA Engine | |
46 | */ | |
47 | void enableDMA(unsigned int enable); | |
48 | ||
49 | /* | |
50 | * This function enable/disable the GPIO Engine | |
51 | */ | |
52 | void enableGPIO(unsigned int enable); | |
53 | ||
54 | /* | |
55 | * This function enable/disable the PWM Engine | |
56 | */ | |
57 | void enablePWM(unsigned int enable); | |
58 | ||
59 | /* | |
60 | * This function enable/disable the I2C Engine | |
61 | */ | |
62 | void enableI2C(unsigned int enable); | |
63 | ||
64 | /* | |
65 | * This function enable/disable the SSP. | |
66 | */ | |
67 | void enableSSP(unsigned int enable); | |
68 | ||
69 | ||
70 | #endif |