]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/staging/sm750fb/ddk750_power.h
Merge tag 'arc-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
[mirror_ubuntu-artful-kernel.git] / drivers / staging / sm750fb / ddk750_power.h
1 #ifndef DDK750_POWER_H__
2 #define DDK750_POWER_H__
3
4 typedef enum _DPMS_t
5 {
6 crtDPMS_ON = 0x0,
7 crtDPMS_STANDBY = 0x1,
8 crtDPMS_SUSPEND = 0x2,
9 crtDPMS_OFF = 0x3,
10 }
11 DPMS_t;
12
13 #define setDAC(off) \
14 { \
15 POKE32(MISC_CTRL,FIELD_VALUE(PEEK32(MISC_CTRL), \
16 MISC_CTRL, \
17 DAC_POWER, \
18 off)); \
19 }
20
21 void ddk750_setDPMS(DPMS_t);
22
23 unsigned int getPowerMode(void);
24
25 /*
26 * This function sets the current power mode
27 */
28 void setPowerMode(unsigned int powerMode);
29
30 /*
31 * This function sets current gate
32 */
33 void setCurrentGate(unsigned int gate);
34
35 /*
36 * This function enable/disable the 2D engine.
37 */
38 void enable2DEngine(unsigned int enable);
39
40 /*
41 * This function enable/disable the ZV Port
42 */
43 void enableZVPort(unsigned int enable);
44
45 /*
46 * This function enable/disable the DMA Engine
47 */
48 void enableDMA(unsigned int enable);
49
50 /*
51 * This function enable/disable the GPIO Engine
52 */
53 void enableGPIO(unsigned int enable);
54
55 /*
56 * This function enable/disable the PWM Engine
57 */
58 void enablePWM(unsigned int enable);
59
60 /*
61 * This function enable/disable the I2C Engine
62 */
63 void enableI2C(unsigned int enable);
64
65 /*
66 * This function enable/disable the SSP.
67 */
68 void enableSSP(unsigned int enable);
69
70
71 #endif