summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/emi-imx233.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/emi-imx233.c')
-rw-r--r--firmware/target/arm/imx233/emi-imx233.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/emi-imx233.c b/firmware/target/arm/imx233/emi-imx233.c
index 259ada0e94..fcdb6d2353 100644
--- a/firmware/target/arm/imx233/emi-imx233.c
+++ b/firmware/target/arm/imx233/emi-imx233.c
@@ -135,6 +135,12 @@ void imx233_emi_set_frequency(unsigned long freq)
135 * WARNING DANGER don't call any external function when sdram is disabled 135 * WARNING DANGER don't call any external function when sdram is disabled
136 * otherwise you'll poke sdram and trigger a fatal data abort ! */ 136 * otherwise you'll poke sdram and trigger a fatal data abort ! */
137 137
138 static unsigned long cur_freq = -1;
139 /* avoid changes if unneeded */
140 if(cur_freq == freq)
141 return;
142 cur_freq = freq;
143
138 /* first disable all interrupts */ 144 /* first disable all interrupts */
139 int oldstatus = disable_interrupt_save(IRQ_FIQ_STATUS); 145 int oldstatus = disable_interrupt_save(IRQ_FIQ_STATUS);
140 /* flush the cache */ 146 /* flush the cache */