]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83fa4a5186bae0686a784ab2effd1bc0df3a8880
treee5da9ddcfc093b4dbeb07cbc47b9faffc913c23e
parent9bbf7fc28c5afa121448f64cc2febd99d48f4794
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