drm/nouveau/bios/fan: add support for maxwell's fan management table v2
authorMartin Peres <martin.peres@free.fr>
Sun, 17 Aug 2014 15:33:06 +0000 (17:33 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 15 Sep 2014 12:22:13 +0000 (22:22 +1000)
commit288c17bd9e959a32cfd8c3aec96410579cb9dccc
tree6c8045dcc39042f73834f320afef85b06bfd038e
parente0ae67982305f425b751291bbac3ea5b58d4b0a7
drm/nouveau/bios/fan: add support for maxwell's fan management table v2

Re-use the therm-exported fan structure with only two minor modifications:
- pwm_freq: u16 -> u32;
- add fan_type (toggle or PWM)

v2:
- Do not memset the table to 0 as it erases the pre-set default values

Signed-off-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/Makefile
drivers/gpu/drm/nouveau/core/include/subdev/bios/fan.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/include/subdev/bios/therm.h
drivers/gpu/drm/nouveau/core/subdev/bios/fan.c [new file with mode: 0644]