MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / arch-s3c24a0 / clocks.h
blob4ba8c6e02a4e72bd55900deac1871e5abebc13b6
1 /*
2 * include/asm-arm/arch-s3c24a0/clocks.h
4 * $Id: clocks.h,v 1.2 2005/11/28 03:55:11 gerg Exp $
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #ifndef _S3C24A0_CLOCK_H_
21 #define _S3C24A0_CLOCK_H_
23 #include <asm/hardware.h>
25 #define GET_PCLK 0
26 #define GET_HCLK 1
27 #define GET_UPLL 2
29 #define GET_MDIV(x) FExtr(x, fPLL_MDIV)
30 #define GET_PDIV(x) FExtr(x, fPLL_PDIV)
31 #define GET_SDIV(x) FExtr(x, fPLL_SDIV)
33 #define get_cpu_clk() elfin_get_cpu_clk()
34 #define get_bus_clk(x) elfin_get_bus_clk((x))
36 unsigned long elfin_get_cpu_clk(void);
37 unsigned long elfin_get_bus_clk(int);
38 #endif /* _S3C24A0_CLOCK_H_ */