Merge branch 'pm-cpufreq'
[linux-2.6-block.git] / drivers / staging / sm750fb / ddk750_power.h
CommitLineData
81dee67e
SM
1#ifndef DDK750_POWER_H__
2#define DDK750_POWER_H__
3
259fef35 4typedef enum _DPMS_t {
78376535
JL
5 crtDPMS_ON = 0x0,
6 crtDPMS_STANDBY = 0x1,
7 crtDPMS_SUSPEND = 0x2,
8 crtDPMS_OFF = 0x3,
81dee67e
SM
9}
10DPMS_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
20void ddk750_setDPMS(DPMS_t);
21
22unsigned int getPowerMode(void);
23
24/*
25 * This function sets the current power mode
26 */
27void setPowerMode(unsigned int powerMode);
28
29/*
30 * This function sets current gate
31 */
32void setCurrentGate(unsigned int gate);
33
34/*
35 * This function enable/disable the 2D engine.
36 */
37void enable2DEngine(unsigned int enable);
38
39/*
40 * This function enable/disable the ZV Port
41 */
42void enableZVPort(unsigned int enable);
43
44/*
45 * This function enable/disable the DMA Engine
46 */
47void enableDMA(unsigned int enable);
48
49/*
50 * This function enable/disable the GPIO Engine
51 */
52void enableGPIO(unsigned int enable);
53
54/*
55 * This function enable/disable the PWM Engine
56 */
57void enablePWM(unsigned int enable);
58
59/*
60 * This function enable/disable the I2C Engine
61 */
62void enableI2C(unsigned int enable);
63
64/*
65 * This function enable/disable the SSP.
66 */
67void enableSSP(unsigned int enable);
68
69
70#endif