make blk_settings_init() static
[pv_ops_mirror.git] / include / asm-mn10300 / unit-asb2305 / clock.h
blob7d514841ffda7ca790fdd07ee1a6522f4ce39203
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 ((unsigned long)mn10300_ioclk)
24 /* If this processors has a another clock, uncomment the below. */
25 /* #define MN10300_IOBCLK ((unsigned long)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 ((unsigned long)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 */