summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/mpio/system-mpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire/mpio/system-mpio.c')
-rw-r--r--firmware/target/coldfire/mpio/system-mpio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/coldfire/mpio/system-mpio.c b/firmware/target/coldfire/mpio/system-mpio.c
index 0bd0e07386..ef291dbe0d 100644
--- a/firmware/target/coldfire/mpio/system-mpio.c
+++ b/firmware/target/coldfire/mpio/system-mpio.c
@@ -97,8 +97,8 @@ void cf_set_cpu_frequency(long frequency)
97 timers_adjust_prescale(CPUFREQ_NORMAL_MULT, true); 97 timers_adjust_prescale(CPUFREQ_NORMAL_MULT, true);
98 DCR = (0x8000 | NORMAL_REFRESH_TIMER); /* Refresh timer */ 98 DCR = (0x8000 | NORMAL_REFRESH_TIMER); /* Refresh timer */
99 cpu_frequency = CPUFREQ_NORMAL; 99 cpu_frequency = CPUFREQ_NORMAL;
100 IDECONFIG1 = (1<<28)|(1<<20)|(1<<18)|(1<<13)|(1<<10); 100 IDECONFIG1 = (1<<28)|(1<<20)|(1<<18)|(1<<13)|(1<<10);
101 IDECONFIG2 = (1<<18)|(1<<16); 101 IDECONFIG2 = (1<<18)|(1<<16);
102 102
103 and_l(~(0x07<<16), &ADCONFIG); 103 and_l(~(0x07<<16), &ADCONFIG);
104 or_l((0x03)<<16, &ADCONFIG); /* adclk = busclk/8 */ 104 or_l((0x03)<<16, &ADCONFIG); /* adclk = busclk/8 */
@@ -115,8 +115,8 @@ void cf_set_cpu_frequency(long frequency)
115 CSCR3 = 0x00000180; /* LCD: 0 wait states */ 115 CSCR3 = 0x00000180; /* LCD: 0 wait states */
116 DCR = (0x8000 | DEFAULT_REFRESH_TIMER); /* Refresh timer */ 116 DCR = (0x8000 | DEFAULT_REFRESH_TIMER); /* Refresh timer */
117 cpu_frequency = CPUFREQ_DEFAULT; 117 cpu_frequency = CPUFREQ_DEFAULT;
118 IDECONFIG1 = (1<<28)|(1<<20)|(1<<18)|(1<<13)|(1<<10); 118 IDECONFIG1 = (1<<28)|(1<<20)|(1<<18)|(1<<13)|(1<<10);
119 IDECONFIG2 = (1<<18)|(1<<16); 119 IDECONFIG2 = (1<<18)|(1<<16);
120 120
121 and_l(~(0x07<<16), &ADCONFIG); 121 and_l(~(0x07<<16), &ADCONFIG);
122 or_l((0x01)<<16, &ADCONFIG); /* adclk = busclk/2 */ 122 or_l((0x01)<<16, &ADCONFIG); /* adclk = busclk/2 */