summaryrefslogtreecommitdiff
path: root/src/radeon_atombios.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-08-10 13:20:13 +1000
committerDave Airlie <airlied@redhat.com>2010-08-10 13:20:13 +1000
commit1cce55e8ba43e7958cb67147aeaeb068826ab99f (patch)
tree8e8656f9a7bc2153d0b039106656c5057bfbf3ee /src/radeon_atombios.c
parentbbffd67d3296344e8735b007cdee83146d38369c (diff)
evergreen: add support to parse firmware info for ext dp clk
Diffstat (limited to 'src/radeon_atombios.c')
-rw-r--r--src/radeon_atombios.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/radeon_atombios.c b/src/radeon_atombios.c
index 996e6eee..61b5372b 100644
--- a/src/radeon_atombios.c
+++ b/src/radeon_atombios.c
@@ -2307,6 +2307,13 @@ RADEONGetATOMClockInfo(ScrnInfoPtr pScrn)
pll->pll_out_min = 64800;
}
+ if (IS_DCE4_VARIANT) {
+ info->default_dispclk =
+ le32_to_cpu(atomDataPtr->FirmwareInfo.FirmwareInfo_V_2_1->ulDefaultDispEngineClkFreq);
+ if (info->default_dispclk == 0)
+ info->default_dispclk = 60000;
+ info->dp_extclk = le16_to_cpu(atomDataPtr->FirmwareInfo.FirmwareInfo_V_2_1->usUniphyDPModeExtClkFreq);
+ }
return TRUE;
}