drm/nv40/pm: convert to new pwm hooks, also fixing pwm type detection
authorBen Skeggs <bskeggs@redhat.com>
Fri, 16 Sep 2011 16:11:39 +0000 (02:11 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 21 Dec 2011 09:01:13 +0000 (19:01 +1000)
commit693461801464eb65eb779261b3d9d80dc9131f81
treee5da9ddcfc093b4dbeb07cbc47b9faffc913c23e
parent5a4267ab14b392bdf43893c6175b045b5f85d53d
drm/nv40/pm: convert to new pwm hooks, also fixing pwm type detection

A NV49 appeared a while back that was using the "nv41 style" pwm registers,
rather than the "nv40 style" ones my board is using.  This disproves the
previous theory that the pwm controller choice is chipset-specific.

So, after looking at a bunch of vbios images it appears that the next viable
theory is that we should select the pwm controller to use based on the gpio
line the fan is tied to, just like we do on nv50.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_pm.h
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/nouveau/nv40_pm.c