aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvc0_pm.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-07-10 03:26:46 -0400
committerBen Skeggs <bskeggs@redhat.com>2012-10-02 23:12:47 -0400
commit70790f4f819875e8f390871fd15bbbf823f28e1b (patch)
tree47949ac5a0af23a9fe1ace1ac5fd8b8823b8e055 /drivers/gpu/drm/nouveau/nvc0_pm.c
parent8aceb7de47ea2491abc1a577dc875b19e9947a54 (diff)
drm/nouveau/clock: pull in the implementation from all over the place
Still missing the main bits we use to change performance levels, I'll get to it after all the hard yakka has been finished. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvc0_pm.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_pm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_pm.c b/drivers/gpu/drm/nouveau/nvc0_pm.c
index 81b649864fa1..4a21a7264c3c 100644
--- a/drivers/gpu/drm/nouveau/nvc0_pm.c
+++ b/drivers/gpu/drm/nouveau/nvc0_pm.c
@@ -212,7 +212,7 @@ calc_src(struct drm_device *dev, int clk, u32 freq, u32 *dsrc, u32 *ddiv)
212static u32 212static u32
213calc_pll(struct drm_device *dev, int clk, u32 freq, u32 *coef) 213calc_pll(struct drm_device *dev, int clk, u32 freq, u32 *coef)
214{ 214{
215 struct pll_lims limits; 215 struct nvbios_pll limits;
216 int N, M, P, ret; 216 int N, M, P, ret;
217 217
218 ret = get_pll_limits(dev, 0x137000 + (clk * 0x20), &limits); 218 ret = get_pll_limits(dev, 0x137000 + (clk * 0x20), &limits);
@@ -308,7 +308,7 @@ calc_clk(struct drm_device *dev, int clk, struct nvc0_pm_clock *info, u32 freq)
308static int 308static int
309calc_mem(struct drm_device *dev, struct nvc0_pm_clock *info, u32 freq) 309calc_mem(struct drm_device *dev, struct nvc0_pm_clock *info, u32 freq)
310{ 310{
311 struct pll_lims pll; 311 struct nvbios_pll pll;
312 int N, M, P, ret; 312 int N, M, P, ret;
313 u32 ctrl; 313 u32 ctrl;
314 314