drm/nouveau/gm204/6: add voltage control using the new gk104 volt class
authorMartin Peres <martin.peres@free.fr>
Wed, 16 Sep 2015 19:45:33 +0000 (22:45 +0300)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 3 Nov 2015 05:02:18 +0000 (15:02 +1000)
I got confirmation that we can read and change the voltage with the same code.
The divider is also computed correctly on the gm204 we got our hands on.

Thanks to Yoshimo on IRC for executing the tests on his gm204!

Signed-off-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c

index b324fd193402a4d0f7c57b6c1ae9a583aef02f52..8e9b5e8ca7d8d60febf40a0b0a24e902ed7b0398 100644 (file)
@@ -1982,6 +1982,7 @@ nv124_chipset = {
        .pci = nv40_pci_new,
        .pmu = gm107_pmu_new,
        .timer = gk20a_timer_new,
+       .volt = gk104_volt_new,
        .ce[0] = gm204_ce_new,
        .ce[1] = gm204_ce_new,
        .ce[2] = gm204_ce_new,
@@ -2012,6 +2013,7 @@ nv126_chipset = {
        .pci = nv40_pci_new,
        .pmu = gm107_pmu_new,
        .timer = gk20a_timer_new,
+       .volt = gk104_volt_new,
        .ce[0] = gm204_ce_new,
        .ce[1] = gm204_ce_new,
        .ce[2] = gm204_ce_new,