From 1cce55e8ba43e7958cb67147aeaeb068826ab99f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 10 Aug 2010 13:20:13 +1000 Subject: evergreen: add support to parse firmware info for ext dp clk --- src/radeon_atombios.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/radeon_atombios.c') 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; } -- cgit v1.2.3