51 sclk = fb_div / ref_div;
56 else if (post_div == 3)
58 else if (post_div == 4)
81 mclk = fb_div / ref_div;
86 else if (post_div == 3)
88 else if (post_div == 4)
143 rdev->
clock.max_pixel_clock = 35000;
152 rdev->
clock.default_sclk = (*val) / 10;
154 rdev->
clock.default_sclk =
159 rdev->
clock.default_mclk = (*val) / 10;
161 rdev->
clock.default_mclk =
164 DRM_INFO(
"Using device-tree clock info\n");
169 static bool radeon_read_clocks_OF(
struct drm_device *dev)
190 ret = radeon_read_clocks_OF(dev);
220 DRM_INFO(
"Using generic clock info\n");
223 rdev->
clock.max_pixel_clock = 35000;
266 rdev->
clock.default_sclk =
268 rdev->
clock.default_mclk =
335 if (!rdev->
clock.default_sclk)
337 if ((!rdev->
clock.default_mclk) && rdev->
asic->pm.get_memory_clock)
340 rdev->
pm.current_sclk = rdev->
clock.default_sclk;
341 rdev->
pm.current_mclk = rdev->
clock.default_mclk;
358 if (req_clock < 15000) {
361 }
else if (req_clock < 30000) {
364 }
else if (req_clock < 60000) {
370 req_clock *= ref_div;
374 *fb_div = req_clock & 0xff;
376 req_clock = (req_clock & 0xffff) << 1;
378 req_clock /= ref_div;
393 eng_clock = calc_eng_mem_clock(rdev, eng_clock, &fb_div, &post_div);
425 if ((eng_clock * post_div) >= 90000)
616 if (rdev->
mc.vram_width == 64) {
623 ~R300_DISABLE_MC_MCLKA;
625 tmp &= ~(R300_DISABLE_MC_MCLKA |
676 RADEON_CFG_ATI_REV_ID_MASK) <=
694 RADEON_CFG_ATI_REV_ID_MASK) <
706 RADEON_CFG_ATI_REV_ID_MASK) <