aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/sm750fb/ddk750_power.h
blob: 71dc7f9800692239f56ac3c033984967e51264ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef DDK750_POWER_H__
#define DDK750_POWER_H__

typedef enum _DPMS_t
{
    crtDPMS_ON = 0x0,
    crtDPMS_STANDBY = 0x1,
    crtDPMS_SUSPEND = 0x2,
    crtDPMS_OFF = 0x3,
}
DPMS_t;

#define setDAC(off) \
		{	\
		POKE32(MISC_CTRL,FIELD_VALUE(PEEK32(MISC_CTRL),	\
									MISC_CTRL,	\
									DAC_POWER,	\
									off));	\
		}

void ddk750_setDPMS(DPMS_t);

unsigned int getPowerMode(void);

/*
 * This function sets the current power mode
 */
void setPowerMode(unsigned int powerMode);

/*
 * This function sets current gate
 */
void setCurrentGate(unsigned int gate);

/*
 * This function enable/disable the 2D engine.
 */
void enable2DEngine(unsigned int enable);

/*
 * This function enable/disable the ZV Port
 */
void enableZVPort(unsigned int enable);

/*
 * This function enable/disable the DMA Engine
 */
void enableDMA(unsigned int enable);

/*
 * This function enable/disable the GPIO Engine
 */
void enableGPIO(unsigned int enable);

/*
 * This function enable/disable the PWM Engine
 */
void enablePWM(unsigned int enable);

/*
 * This function enable/disable the I2C Engine
 */
void enableI2C(unsigned int enable);

/*
 * This function enable/disable the SSP.
 */
void enableSSP(unsigned int enable);


#endif