]> bbs.cooldavid.org Git - net-next-2.6.git/blob - arch/arm/include/asm/hardware/icst525.h
ARM: ICST: indirect s2div and idx2s arrays via icst_params
[net-next-2.6.git] / arch / arm / include / asm / hardware / icst525.h
1 /*
2  *  arch/arm/include/asm/hardware/icst525.h
3  *
4  *  Copyright (C) 2003 Deep Blue Solutions, Ltd, All Rights Reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  *  Support functions for calculating clocks/divisors for the ICST525
11  *  clock generators.  See http://www.icst.com/ for more information
12  *  on these devices.
13  */
14 #ifndef ASMARM_HARDWARE_ICST525_H
15 #define ASMARM_HARDWARE_ICST525_H
16
17 #include <asm/hardware/icst.h>
18
19 unsigned long icst525_hz(const struct icst_params *p, struct icst_vco vco);
20 struct icst_vco icst525_hz_to_vco(const struct icst_params *p, unsigned long freq);
21
22 /*
23  * ICST525 VCO frequency must be between 10MHz and 200MHz (3V) or 320MHz (5V).
24  * This frequency is pre-output divider.
25  */
26 #define ICST525_VCO_MIN         10000000
27 #define ICST525_VCO_MAX_3V      200000000
28 #define ICST525_VCO_MAX_5V      320000000
29
30 extern const unsigned char icst525_s2div[];
31 extern const unsigned char icst525_idx2s[];
32
33 #endif