[Nouveau] [PATCH 3/4] gpio: added power check for another GPIO
Mark Menzynski
mmenzyns at redhat.com
Thu Jul 11 14:11:52 UTC 2019
this one is mainly used on Rankine and Curie and rarely on Tesla GPUs
untested, wrote according to documentation
Signed-off-by: Mark Menzynski <mmenzyns at redhat.com>
---
drm/nouveau/include/nvkm/subdev/bios/gpio.h | 1 +
drm/nouveau/nvkm/subdev/gpio/base.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/drm/nouveau/include/nvkm/subdev/bios/gpio.h b/drm/nouveau/include/nvkm/subdev/bios/gpio.h
index a70ec9e8..fc2b5fb0 100644
--- a/drm/nouveau/include/nvkm/subdev/bios/gpio.h
+++ b/drm/nouveau/include/nvkm/subdev/bios/gpio.h
@@ -5,6 +5,7 @@ enum dcb_gpio_func_name {
DCB_GPIO_PANEL_POWER = 0x01,
DCB_GPIO_FAN = 0x09,
DCB_GPIO_TVDAC0 = 0x0c,
+ DCB_GPIO_THERM_EXT_POWER_EVENT = 0x10,
DCB_GPIO_TVDAC1 = 0x2d,
DCB_GPIO_FAN_SENSE = 0x3d,
DCB_GPIO_EXT_POWER_LOW = 0x79,
diff --git a/drm/nouveau/nvkm/subdev/gpio/base.c b/drm/nouveau/nvkm/subdev/gpio/base.c
index c4685807..0c886543 100644
--- a/drm/nouveau/nvkm/subdev/gpio/base.c
+++ b/drm/nouveau/nvkm/subdev/gpio/base.c
@@ -183,6 +183,7 @@ static const struct dmi_system_id gpio_reset_ids[] = {
};
static enum dcb_gpio_func_name power_checks[] = {
+ DCB_GPIO_THERM_EXT_POWER_EVENT,
DCB_GPIO_EXT_POWER_LOW,
};
--
2.21.0
More information about the Nouveau
mailing list