1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef DDK750_POWER_H__
3#define DDK750_POWER_H__
4
5enum dpms {
6 crtDPMS_ON = 0x0,
7 crtDPMS_STANDBY = 0x1,
8 crtDPMS_SUSPEND = 0x2,
9 crtDPMS_OFF = 0x3,
10};
11
12#define set_DAC(off) { \
13 poke32(MISC_CTRL, \
14 (peek32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \
15}
16
17void ddk750_set_dpms(enum dpms state);
18void sm750_set_power_mode(unsigned int mode);
19void sm750_set_current_gate(unsigned int gate);
20
21/*
22 * This function enable/disable the 2D engine.
23 */
24void sm750_enable_2d_engine(unsigned int enable);
25
26/*
27 * This function enable/disable the DMA Engine
28 */
29void sm750_enable_dma(unsigned int enable);
30
31/*
32 * This function enable/disable the GPIO Engine
33 */
34void sm750_enable_gpio(unsigned int enable);
35
36/*
37 * This function enable/disable the I2C Engine
38 */
39void sm750_enable_i2c(unsigned int enable);
40
41#endif
42

source code of linux/drivers/staging/sm750fb/ddk750_power.h