Source
136
136
* s3c2440_cpufreq_setdivs - set the cpu frequency divider settings
137
137
* @cfg: The cpu frequency settings.
138
138
*
139
139
* Set the divisors from the settings in @cfg, which where generated
140
140
* during the calculation phase by s3c2440_cpufreq_calcdivs().
141
141
*/
142
142
static void s3c2440_cpufreq_setdivs(struct s3c_cpufreq_config *cfg)
143
143
{
144
144
unsigned long clkdiv, camdiv;
145
145
146
-
s3c_freq_dbg("%s: divsiors: h=%d, p=%d\n", __func__,
146
+
s3c_freq_dbg("%s: divisors: h=%d, p=%d\n", __func__,
147
147
cfg->divs.h_divisor, cfg->divs.p_divisor);
148
148
149
149
clkdiv = __raw_readl(S3C2410_CLKDIVN);
150
150
camdiv = __raw_readl(S3C2440_CAMDIVN);
151
151
152
152
clkdiv &= ~(S3C2440_CLKDIVN_HDIVN_MASK | S3C2440_CLKDIVN_PDIVN);
153
153
camdiv &= ~CAMDIVN_HCLK_HALF;
154
154
155
155
switch (cfg->divs.h_divisor) {
156
156
case 1: