GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / mn10300 / unit-asb2305 / include / unit / clock.h
blob67be3f2eb18e928b68363601ae5440bb737b9e2b
1 /* ASB2305-specific clocks
3 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
12 #ifndef _ASM_UNIT_CLOCK_H
13 #define _ASM_UNIT_CLOCK_H
15 #ifndef __ASSEMBLY__
17 #ifdef CONFIG_MN10300_RTC
19 extern unsigned long mn10300_ioclk; /* IOCLK (crystal speed) in HZ */
20 extern unsigned long mn10300_iobclk;
21 extern unsigned long mn10300_tsc_per_HZ;
23 #define MN10300_IOCLK mn10300_ioclk
24 /* If this processors has a another clock, uncomment the below. */
25 /* #define MN10300_IOBCLK mn10300_iobclk */
27 #else /* !CONFIG_MN10300_RTC */
29 #define MN10300_IOCLK 33333333UL
30 /* #define MN10300_IOBCLK 66666666UL */
32 #endif /* !CONFIG_MN10300_RTC */
34 #define MN10300_JCCLK MN10300_IOCLK
35 #define MN10300_TSCCLK MN10300_IOCLK
37 #ifdef CONFIG_MN10300_RTC
38 #define MN10300_TSC_PER_HZ mn10300_tsc_per_HZ
39 #else /* !CONFIG_MN10300_RTC */
40 #define MN10300_TSC_PER_HZ (MN10300_TSCCLK/HZ)
41 #endif /* !CONFIG_MN10300_RTC */
43 #endif /* !__ASSEMBLY__ */
45 #endif /* _ASM_UNIT_CLOCK_H */