License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / drivers / staging / sm750fb / ddk750_power.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
81dee67e
SM
2#ifndef DDK750_POWER_H__
3#define DDK750_POWER_H__
4
259fef35 5typedef enum _DPMS_t {
78376535
JL
6 crtDPMS_ON = 0x0,
7 crtDPMS_STANDBY = 0x1,
8 crtDPMS_SUSPEND = 0x2,
9 crtDPMS_OFF = 0x3,
81dee67e
SM
10}
11DPMS_t;
12
5372350b 13#define setDAC(off) { \
c075b6f2
MS
14 poke32(MISC_CTRL, \
15 (peek32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \
5372350b 16}
81dee67e 17
d228cf87 18void ddk750_set_dpms(DPMS_t state);
52d0744d
AB
19void sm750_set_power_mode(unsigned int powerMode);
20void sm750_set_current_gate(unsigned int gate);
81dee67e
SM
21
22/*
23 * This function enable/disable the 2D engine.
24 */
52d0744d 25void sm750_enable_2d_engine(unsigned int enable);
81dee67e 26
81dee67e
SM
27/*
28 * This function enable/disable the DMA Engine
29 */
52d0744d 30void sm750_enable_dma(unsigned int enable);
81dee67e
SM
31
32/*
33 * This function enable/disable the GPIO Engine
34 */
52d0744d 35void sm750_enable_gpio(unsigned int enable);
81dee67e 36
81dee67e
SM
37/*
38 * This function enable/disable the I2C Engine
39 */
52d0744d 40void sm750_enable_i2c(unsigned int enable);
81dee67e 41
81dee67e 42#endif