~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/gpu/drm/radeon/radeon_clocks.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
        p1pll->reference_div = RREG32_PLL(RADEON_PPLL_REF_DIV) & 0x3ff;
118
118
        if (p1pll->reference_div < 2)
119
119
                p1pll->reference_div = 12;
120
 
        p2pll->reference_div = p1pll->reference_div;    
 
120
        p2pll->reference_div = p1pll->reference_div;
121
121
 
122
122
        /* These aren't in the device-tree */
123
123
        if (rdev->family >= CHIP_R420) {
139
139
                p2pll->pll_out_min = 12500;
140
140
                p2pll->pll_out_max = 35000;
141
141
        }
 
142
        /* not sure what the max should be in all cases */
 
143
        rdev->clock.max_pixel_clock = 35000;
142
144
 
143
145
        spll->reference_freq = mpll->reference_freq = p1pll->reference_freq;
144
146
        spll->reference_div = mpll->reference_div =
151
153
        else
152
154
                rdev->clock.default_sclk =
153
155
                        radeon_legacy_get_engine_clock(rdev);
154
 
                        
 
156
 
155
157
        val = of_get_property(dp, "ATY,MCLK", NULL);
156
158
        if (val && *val)
157
159
                rdev->clock.default_mclk = (*val) / 10;
160
162
                        radeon_legacy_get_memory_clock(rdev);
161
163
 
162
164
        DRM_INFO("Using device-tree clock info\n");
163
 
        
 
165
 
164
166
        return true;
165
167
}
166
168
#else