]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - drivers/gpu/drm/nouveau/core/include/subdev/bios/gpio.h
regulator: max8997: Convert max8997_safeout_ops to set_voltage_sel and list_voltage_table
[karo-tx-linux.git] / drivers / gpu / drm / nouveau / core / include / subdev / bios / gpio.h
1 #ifndef __NVBIOS_GPIO_H__
2 #define __NVBIOS_GPIO_H__
3
4 struct nouveau_bios;
5
6 enum dcb_gpio_func_name {
7         DCB_GPIO_PANEL_POWER = 0x01,
8         DCB_GPIO_TVDAC0 = 0x0c,
9         DCB_GPIO_TVDAC1 = 0x2d,
10         DCB_GPIO_PWM_FAN = 0x09,
11         DCB_GPIO_FAN_SENSE = 0x3d,
12         DCB_GPIO_UNUSED = 0xff
13 };
14
15 struct dcb_gpio_func {
16         u8 func;
17         u8 line;
18         u8 log[2];
19
20         /* so far, "param" seems to only have an influence on PWM-related
21          * GPIOs such as FAN_CONTROL and PANEL_BACKLIGHT_LEVEL.
22          * if param equals 1, hardware PWM is available
23          * if param equals 0, the host should toggle the GPIO itself
24          */
25         u8 param;
26 };
27
28 u16 dcb_gpio_table(struct nouveau_bios *);
29 u16 dcb_gpio_entry(struct nouveau_bios *, int idx, int ent, u8 *ver);
30 int dcb_gpio_parse(struct nouveau_bios *, int idx, u8 func, u8 line,
31                    struct dcb_gpio_func *);
32
33 #endif