Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332292
b: refs/heads/master
c: 810f151
h: refs/heads/master
v: v3
  • Loading branch information
James Cosin authored and Bob Liu committed Oct 8, 2012
1 parent 0082e9e commit abf1392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce8609146d09df213ed1e842ece7ad477e0ab7a6
refs/heads/master: 810f1512dc8a1f64c22229c3def85fc398b6a24f
5 changes: 2 additions & 3 deletions trunk/arch/blackfin/mach-common/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,14 @@ static void __init bfin_init_tables(unsigned long cclk, unsigned long sclk)
csel = bfin_read32(CGU0_DIV) & 0x1F;
#endif

for (index = 0; (cclk >> index) >= min_cclk && csel <= 3; index++, csel++) {
for (index = 0; (cclk >> index) >= min_cclk && csel <= 3 && index < 3; index++, csel++) {
bfin_freq_table[index].frequency = cclk >> index;
#ifndef CONFIG_BF60x
dpm_state_table[index].csel = csel << 4; /* Shift now into PLL_DIV bitpos */
dpm_state_table[index].tscale = (TIME_SCALE / (1 << csel)) - 1;
#else
dpm_state_table[index].csel = csel;
dpm_state_table[index].tscale = TIME_SCALE >> index;
#endif
dpm_state_table[index].tscale = (TIME_SCALE >> index) - 1;

pr_debug("cpufreq: freq:%d csel:0x%x tscale:%d\n",
bfin_freq_table[index].frequency,
Expand Down

0 comments on commit abf1392

Please sign in to comment.