diff options
author | Martin Peres <martin.peres@labri.fr> | 2012-09-03 01:37:02 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-02-20 16:00:19 +1000 |
commit | 0cbf83bbe524d6014daf11005b99084d50489b80 (patch) | |
tree | 13986fb3fee9dc5ff8c2ac72dc38fddb01ab7532 /drivers/gpu/drm/nouveau/core/subdev/therm/priv.h | |
parent | 9c3bd3a53129639f10e129b007862340dba16a09 (diff) | |
download | op-kernel-dev-0cbf83bbe524d6014daf11005b99084d50489b80.zip op-kernel-dev-0cbf83bbe524d6014daf11005b99084d50489b80.tar.gz |
drm/nouveau/fan: add toggle fan support
v2: change percent from int to atomic_t
v3: random fixes
v4 (Ben Skeggs):
- adapted for split-out fan-control "protocol" structure
- removed need for timer resched
- support for forcing 'toggle' control on PWM boards
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Martin Peres <martin.peres@labri.fr>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev/therm/priv.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/therm/priv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/priv.h b/drivers/gpu/drm/nouveau/core/subdev/therm/priv.h index fa93932..34c85e6 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/priv.h +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/priv.h @@ -31,6 +31,7 @@ #include <subdev/bios/gpio.h> #include <subdev/bios/perf.h> #include <subdev/bios/therm.h> +#include <subdev/timer.h> struct nouveau_fan { const char *type; @@ -89,6 +90,7 @@ int nv50_temp_get(struct nouveau_therm *therm); int nva3_therm_fan_sense(struct nouveau_therm *); int nouveau_fanpwm_create(struct nouveau_therm *, struct dcb_gpio_func *); +int nouveau_fantog_create(struct nouveau_therm *, struct dcb_gpio_func *); int nouveau_fannil_create(struct nouveau_therm *); #endif |