Commit 378f85ed authored by Ben Skeggs's avatar Ben Skeggs

drm/nva3/pm: fixup for NVAF special

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 64e740bb
...@@ -46,8 +46,14 @@ read_clk(struct drm_device *dev, int clk, bool ignore_en) ...@@ -46,8 +46,14 @@ read_clk(struct drm_device *dev, int clk, bool ignore_en)
u32 sctl, sdiv, sclk; u32 sctl, sdiv, sclk;
/* refclk for the 0xe8xx plls is a fixed frequency */ /* refclk for the 0xe8xx plls is a fixed frequency */
if (clk >= 0x40) if (clk >= 0x40) {
if (dev_priv->chipset == 0xaf) {
/* no joke.. seriously.. sigh.. */
return nv_rd32(dev, 0x00471c) * 1000;
}
return dev_priv->crystal; return dev_priv->crystal;
}
sctl = nv_rd32(dev, 0x4120 + (clk * 4)); sctl = nv_rd32(dev, 0x4120 + (clk * 4));
if (!ignore_en && !(sctl & 0x00000100)) if (!ignore_en && !(sctl & 0x00000100))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment