ARM: S5P64X0: Add S5P64X0(S5P6440 and S5P6450) initialization support
[deliverable/linux.git] / arch / arm / plat-s5p / include / plat / s5p-clock.h
CommitLineData
1a0e8a52
KK
1/* linux/arch/arm/plat-s5p/include/plat/s5p-clock.h
2 *
3 * Copyright 2009 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com/
5 *
6 * Header file for s5p clock support
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11*/
12
13#ifndef __ASM_PLAT_S5P_CLOCK_H
14#define __ASM_PLAT_S5P_CLOCK_H __FILE__
15
16#include <linux/clk.h>
17
18#define GET_DIV(clk, field) ((((clk) & field##_MASK) >> field##_SHIFT) + 1)
19
20#define clk_fin_apll clk_ext_xtal_mux
21#define clk_fin_mpll clk_ext_xtal_mux
22#define clk_fin_epll clk_ext_xtal_mux
0c1945d3 23#define clk_fin_vpll clk_ext_xtal_mux
a443a637 24#define clk_fin_hpll clk_ext_xtal_mux
1a0e8a52
KK
25
26extern struct clk clk_ext_xtal_mux;
f001d5b2 27extern struct clk clk_xusbxti;
1a0e8a52 28extern struct clk clk_48m;
a443a637 29extern struct clk s5p_clk_27m;
1a0e8a52
KK
30extern struct clk clk_fout_apll;
31extern struct clk clk_fout_mpll;
32extern struct clk clk_fout_epll;
f445dbd5 33extern struct clk clk_fout_vpll;
1a0e8a52 34extern struct clk clk_arm;
0c1945d3 35extern struct clk clk_vpll;
1a0e8a52
KK
36
37extern struct clksrc_sources clk_src_apll;
38extern struct clksrc_sources clk_src_mpll;
39extern struct clksrc_sources clk_src_epll;
40
41extern int s5p6440_clk48m_ctrl(struct clk *clk, int enable);
42extern int s5p_gatectrl(void __iomem *reg, struct clk *clk, int enable);
43
44#endif /* __ASM_PLAT_S5P_CLOCK_H */
This page took 0.063283 seconds and 5 git commands to generate.