drm/nvd0/pm: enable clock/voltage hooks
authorBen Skeggs <bskeggs@redhat.com>
Mon, 4 Jul 2011 04:06:07 +0000 (14:06 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 20 Sep 2011 06:05:44 +0000 (16:05 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_state.c

index 8cf42e223fc3654657e26ba3baf11ae20238c56f..c4802eb3f9aa23fac2e9e2c679522285fdaff96c 100644 (file)
@@ -471,6 +471,9 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
                engine->vram.get                = nvc0_vram_new;
                engine->vram.put                = nv50_vram_del;
                engine->vram.flags_valid        = nvc0_vram_flags_valid;
+               engine->pm.clocks_get           = nvc0_pm_clocks_get;
+               engine->pm.voltage_get          = nouveau_voltage_gpio_get;
+               engine->pm.voltage_set          = nouveau_voltage_gpio_set;
                break;
        default:
                NV_ERROR(dev, "NV%02x unsupported\n", dev_priv->chipset);