diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-09-16 02:17:35 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-09-24 02:27:06 -0400 |
commit | 02c30ca0a1d6d8b878fc32f47b3b25192ef4a8ef (patch) | |
tree | 7f8e859b1ea46c8e96a90528c092a0e01462feb6 /drivers/gpu/drm/nouveau/nouveau_state.c | |
parent | 330c5988ee78045e6a731c3693251aaa5b0d14e3 (diff) |
drm/nv50: import initial clock get/set routines + hook up pm engine
This will make nouveau_pm attempt to report the card's current performance
level both during bootup, and through sysfs.
This is a very initial implementation, and can be improved a *lot*
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c index 18c4a8a85940..bbe9ba015bca 100644 --- a/drivers/gpu/drm/nouveau/nouveau_state.c +++ b/drivers/gpu/drm/nouveau/nouveau_state.c | |||
@@ -355,6 +355,11 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev) | |||
355 | engine->gpio.get = nv50_gpio_get; | 355 | engine->gpio.get = nv50_gpio_get; |
356 | engine->gpio.set = nv50_gpio_set; | 356 | engine->gpio.set = nv50_gpio_set; |
357 | engine->gpio.irq_enable = nv50_gpio_irq_enable; | 357 | engine->gpio.irq_enable = nv50_gpio_irq_enable; |
358 | engine->pm.clock_get = nv50_pm_clock_get; | ||
359 | engine->pm.clock_pre = nv50_pm_clock_pre; | ||
360 | engine->pm.clock_set = nv50_pm_clock_set; | ||
361 | engine->pm.voltage_get = nouveau_voltage_gpio_get; | ||
362 | engine->pm.voltage_set = nouveau_voltage_gpio_set; | ||
358 | break; | 363 | break; |
359 | case 0xC0: | 364 | case 0xC0: |
360 | engine->instmem.init = nvc0_instmem_init; | 365 | engine->instmem.init = nvc0_instmem_init; |