]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/volt/gk104: add support for pwm and gpio modes
authorMartin Peres <martin.peres@free.fr>
Tue, 8 Sep 2015 22:34:33 +0000 (00:34 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 3 Nov 2015 05:02:18 +0000 (15:02 +1000)
commitdb6d9b08d8be7f183d4ab7fb66595cc47aee8145
tree19350e13ed2003d179eaefc8eae64e298f3ca527
parent093a564e6e55cf5eb66be1cfdff237653a662dac
drm/nouveau/volt/gk104: add support for pwm and gpio modes

Most Keplers actually use the GPIO-based voltage management instead of the new
PWM-based one. Use the GPIO mode as a fallback as it already gracefully handles
the case where no GPIOs exist.

All the Maxwells seem to use the PWM method though.

v2:
 - Do not forget to commit the PWM configuration change!

Signed-off-by: Martin Peres <martin.peres@free.fr>
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/gpio.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/volt.h
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/volt/Kbuild
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvkm/subdev/volt/priv.h