2010-01-13 16:13:37 -07:00
|
|
|
/* linux/arch/arm/plat-s5p/include/plat/s5p-clock.h
|
|
|
|
*
|
2010-09-01 00:35:30 -06:00
|
|
|
* Copyright (c) 2009-2010 Samsung Electronics Co., Ltd.
|
|
|
|
* http://www.samsung.com
|
2010-01-13 16:13:37 -07:00
|
|
|
*
|
|
|
|
* Header file for s5p clock support
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_PLAT_S5P_CLOCK_H
|
|
|
|
#define __ASM_PLAT_S5P_CLOCK_H __FILE__
|
|
|
|
|
|
|
|
#include <linux/clk.h>
|
|
|
|
|
|
|
|
#define GET_DIV(clk, field) ((((clk) & field##_MASK) >> field##_SHIFT) + 1)
|
|
|
|
|
|
|
|
#define clk_fin_apll clk_ext_xtal_mux
|
|
|
|
#define clk_fin_mpll clk_ext_xtal_mux
|
|
|
|
#define clk_fin_epll clk_ext_xtal_mux
|
2010-09-01 00:35:30 -06:00
|
|
|
#define clk_fin_dpll clk_ext_xtal_mux
|
2010-02-24 00:40:36 -07:00
|
|
|
#define clk_fin_vpll clk_ext_xtal_mux
|
2010-05-14 01:27:28 -06:00
|
|
|
#define clk_fin_hpll clk_ext_xtal_mux
|
2010-01-13 16:13:37 -07:00
|
|
|
|
|
|
|
extern struct clk clk_ext_xtal_mux;
|
2010-04-19 05:05:08 -06:00
|
|
|
extern struct clk clk_xusbxti;
|
2010-01-13 16:13:37 -07:00
|
|
|
extern struct clk clk_48m;
|
2010-05-14 01:27:28 -06:00
|
|
|
extern struct clk s5p_clk_27m;
|
2010-01-13 16:13:37 -07:00
|
|
|
extern struct clk clk_fout_apll;
|
|
|
|
extern struct clk clk_fout_mpll;
|
|
|
|
extern struct clk clk_fout_epll;
|
2010-09-01 00:35:30 -06:00
|
|
|
extern struct clk clk_fout_dpll;
|
2010-05-16 18:38:52 -06:00
|
|
|
extern struct clk clk_fout_vpll;
|
2010-01-13 16:13:37 -07:00
|
|
|
extern struct clk clk_arm;
|
2010-02-24 00:40:36 -07:00
|
|
|
extern struct clk clk_vpll;
|
2010-01-13 16:13:37 -07:00
|
|
|
|
|
|
|
extern struct clksrc_sources clk_src_apll;
|
|
|
|
extern struct clksrc_sources clk_src_mpll;
|
|
|
|
extern struct clksrc_sources clk_src_epll;
|
2010-09-01 00:35:30 -06:00
|
|
|
extern struct clksrc_sources clk_src_dpll;
|
2010-01-13 16:13:37 -07:00
|
|
|
|
|
|
|
extern int s5p_gatectrl(void __iomem *reg, struct clk *clk, int enable);
|
|
|
|
|
2010-10-13 19:39:08 -06:00
|
|
|
/* Common EPLL operations for S5P platform */
|
|
|
|
extern int s5p_epll_enable(struct clk *clk, int enable);
|
|
|
|
extern unsigned long s5p_epll_get_rate(struct clk *clk);
|
|
|
|
|
2010-01-13 16:13:37 -07:00
|
|
|
#endif /* __ASM_PLAT_S5P_CLOCK_H */
|