summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_state.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-08-14 06:43:47 +0400
committerBen Skeggs <bskeggs@redhat.com>2011-12-21 13:01:11 +0400
commitcb9fa62671ace5ac40b9924e9014cebf04b78228 (patch)
tree4dc19083d28b04a44cc89e6f4b66efe154c6b370 /drivers/gpu/drm/nouveau/nouveau_state.c
parent8f27c54342dffbfbafbddd6e43f011e6cb16d285 (diff)
downloadlinux-cb9fa62671ace5ac40b9924e9014cebf04b78228.tar.xz
drm/nv50/pm: add support for pwm fan control
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_state.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_state.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
index e7ba6e7c0938..16195e9a9f91 100644
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
@@ -386,6 +386,8 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
engine->pm.temp_get = nv84_temp_get;
else
engine->pm.temp_get = nv40_temp_get;
+ engine->pm.fanspeed_get = nv50_pm_fanspeed_get;
+ engine->pm.fanspeed_set = nv50_pm_fanspeed_set;
engine->vram.init = nv50_vram_init;
engine->vram.takedown = nv50_vram_fini;
engine->vram.get = nv50_vram_new;
@@ -441,6 +443,8 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
engine->pm.clocks_get = nvc0_pm_clocks_get;
engine->pm.voltage_get = nouveau_voltage_gpio_get;
engine->pm.voltage_set = nouveau_voltage_gpio_set;
+ engine->pm.fanspeed_get = nv50_pm_fanspeed_get;
+ engine->pm.fanspeed_set = nv50_pm_fanspeed_set;
break;
case 0xd0:
engine->instmem.init = nvc0_instmem_init;