aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-07-13 01:42:36 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-07-13 12:40:00 -0400
commit8f597acab2742b7ae9a556613c389ffa914cdbbd (patch)
tree2b848879a8d7c39e675ca2eb49cef9bea86e8724 /arch
parent6fec2e1727049ce6a404f4af61461d860594d5db (diff)
[MIPS] Alchemy: Remove code wrapped by dead symbol CONFIG_AU1000_USE32K
Noticed by Robert P. J. Day (rpjday@mindspring.com). Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/au1000/common/time.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/mips/au1000/common/time.c b/arch/mips/au1000/common/time.c
index fa1c62f05515..1dba3f7ade82 100644
--- a/arch/mips/au1000/common/time.c
+++ b/arch/mips/au1000/common/time.c
@@ -247,33 +247,8 @@ unsigned long cal_r4koff(void)
247 au_writel (0, SYS_TOYWRITE); 247 au_writel (0, SYS_TOYWRITE);
248 while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C1S); 248 while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C1S);
249 249
250#if defined(CONFIG_AU1000_USE32K)
251 {
252 unsigned long start, end, count;
253
254 start = au_readl(SYS_RTCREAD);
255 start += 2;
256 /* wait for the beginning of a new tick
257 */
258 while (au_readl(SYS_RTCREAD) < start);
259
260 /* Start r4k counter.
261 */
262 write_c0_count(0);
263
264 /* Wait 0.5 seconds.
265 */
266 end = start + (32768 / trim_divide)/2;
267
268 while (end > au_readl(SYS_RTCREAD));
269
270 count = read_c0_count();
271 cpu_speed = count * 2;
272 }
273#else
274 cpu_speed = (au_readl(SYS_CPUPLL) & 0x0000003f) * 250 cpu_speed = (au_readl(SYS_CPUPLL) & 0x0000003f) *
275 AU1000_SRC_CLK; 251 AU1000_SRC_CLK;
276#endif
277 } 252 }
278 else { 253 else {
279 /* The 32KHz oscillator isn't running, so assume there 254 /* The 32KHz oscillator isn't running, so assume there