457
457
uint32_t *chosen_post_div,
460
RADEONInfoPtr info = RADEONPTR(pScrn);
460
RADEONCrtcPrivatePtr radeon_crtc = crtc->driver_private;
462
if (IS_AVIVO_VARIANT) {
463
if (xf86ReturnOptValBool(info->Options, OPTION_NEW_PLL, TRUE)) {
464
/* disable frac fb dividers */
465
flags &= ~RADEON_PLL_USE_FRAC_FB_DIV;
466
RADEONComputePLL_new(pll, freq, chosen_dot_clock_freq,
467
chosen_feedback_div, chosen_frac_feedback_div,
468
chosen_reference_div, chosen_post_div, flags);
470
RADEONComputePLL_old(pll, freq, chosen_dot_clock_freq,
471
chosen_feedback_div, chosen_frac_feedback_div,
472
chosen_reference_div, chosen_post_div, flags);
474
if (xf86ReturnOptValBool(info->Options, OPTION_NEW_PLL, FALSE))
475
RADEONComputePLL_new(pll, freq, chosen_dot_clock_freq,
476
chosen_feedback_div, chosen_frac_feedback_div,
477
chosen_reference_div, chosen_post_div, flags);
479
RADEONComputePLL_old(pll, freq, chosen_dot_clock_freq,
480
chosen_feedback_div, chosen_frac_feedback_div,
481
chosen_reference_div, chosen_post_div, flags);
462
switch (radeon_crtc->pll_algo) {
464
RADEONComputePLL_old(pll, freq, chosen_dot_clock_freq,
465
chosen_feedback_div, chosen_frac_feedback_div,
466
chosen_reference_div, chosen_post_div, flags);
469
/* disable frac fb dividers */
470
flags &= ~RADEON_PLL_USE_FRAC_FB_DIV;
471
RADEONComputePLL_new(pll, freq, chosen_dot_clock_freq,
472
chosen_feedback_div, chosen_frac_feedback_div,
473
chosen_reference_div, chosen_post_div, flags);
571
564
uint16_t *blue, int size)
573
566
RADEONCrtcPrivatePtr radeon_crtc = crtc->driver_private;
574
ScrnInfoPtr pScrn = crtc->scrn;
577
if (pScrn->depth == 16) {
578
for (i = 0; i < 64; i++) {
580
for (j = 0; j < 8; j++) {
581
radeon_crtc->lut_r[i * 8 + j] = red[i] >> 6;
582
radeon_crtc->lut_b[i * 8 + j] = blue[i] >> 6;
586
for (j = 0; j < 4; j++) {
587
radeon_crtc->lut_g[i * 4 + j] = green[i] >> 6;
591
for (i = 0; i < 256; i++) {
592
radeon_crtc->lut_r[i] = red[i] >> 6;
593
radeon_crtc->lut_g[i] = green[i] >> 6;
594
radeon_crtc->lut_b[i] = blue[i] >> 6;
569
for (i = 0; i < 256; i++) {
570
radeon_crtc->lut_r[i] = red[i] >> 6;
571
radeon_crtc->lut_g[i] = green[i] >> 6;
572
radeon_crtc->lut_b[i] = blue[i] >> 6;
598
575
radeon_crtc_load_lut(crtc);