summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-09-27 09:47:56 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-10-05 09:57:41 +1000
commit5c6dc6575460a0afe56d8cae7666e769e08ef942 (patch)
treeec0ccbac221f82212b99247249ee9cbb78f88100 /drivers/gpu/drm/nouveau/nouveau_drv.h
parentfe224bb7e12f1ea9a785ec942bc5d59950543888 (diff)
downloadlwn-5c6dc6575460a0afe56d8cae7666e769e08ef942.tar.gz
lwn-5c6dc6575460a0afe56d8cae7666e769e08ef942.zip
drm/nouveau: pass perflvl struct to clock_pre()
On certain boards, there's BIOS scripts and memory timings that need to be modified with the memclk. Just pass in the entire perflvl struct and let the chipset-specific code decide what to do. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index e1fb2c95eb90..01ee63a70cc9 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -432,7 +432,8 @@ struct nouveau_pm_engine {
struct device *hwmon;
int (*clock_get)(struct drm_device *, u32 id);
- void *(*clock_pre)(struct drm_device *, u32 id, int khz);
+ void *(*clock_pre)(struct drm_device *, struct nouveau_pm_level *,
+ u32 id, int khz);
void (*clock_set)(struct drm_device *, void *);
int (*voltage_get)(struct drm_device *);
int (*voltage_set)(struct drm_device *, int voltage);