Kukjin Kim | 2d8c8a0 | 2013-01-01 19:14:00 -0800 | [diff] [blame] | 1 | /* |
Kukjin Kim | 3109e55 | 2010-09-01 15:35:30 +0900 | [diff] [blame] | 2 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. |
| 3 | * http://www.samsung.com |
| 4 | * |
| 5 | * Header file for s5p64x0 clock support |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
Kukjin Kim | 2d8c8a0 | 2013-01-01 19:14:00 -0800 | [diff] [blame] | 12 | #ifndef __MACH_S5P64X0_CLOCK_H |
| 13 | #define __MACH_S5P64X0_CLOCK_H __FILE__ |
Kukjin Kim | 3109e55 | 2010-09-01 15:35:30 +0900 | [diff] [blame] | 14 | |
| 15 | #include <linux/clk.h> |
| 16 | |
| 17 | extern struct clksrc_clk clk_mout_apll; |
| 18 | extern struct clksrc_clk clk_mout_mpll; |
| 19 | extern struct clksrc_clk clk_mout_epll; |
| 20 | |
| 21 | extern int s5p64x0_epll_enable(struct clk *clk, int enable); |
| 22 | extern unsigned long s5p64x0_epll_get_rate(struct clk *clk); |
| 23 | |
Kukjin Kim | 3109e55 | 2010-09-01 15:35:30 +0900 | [diff] [blame] | 24 | extern struct clksrc_clk clk_armclk; |
| 25 | extern struct clksrc_clk clk_dout_mpll; |
| 26 | |
Kukjin Kim | 3109e55 | 2010-09-01 15:35:30 +0900 | [diff] [blame] | 27 | extern struct clksrc_sources clkset_hclk_low; |
| 28 | |
| 29 | extern int s5p64x0_pclk_ctrl(struct clk *clk, int enable); |
| 30 | extern int s5p64x0_hclk0_ctrl(struct clk *clk, int enable); |
| 31 | extern int s5p64x0_hclk1_ctrl(struct clk *clk, int enable); |
| 32 | extern int s5p64x0_sclk_ctrl(struct clk *clk, int enable); |
| 33 | extern int s5p64x0_sclk1_ctrl(struct clk *clk, int enable); |
| 34 | extern int s5p64x0_mem_ctrl(struct clk *clk, int enable); |
| 35 | |
| 36 | extern int s5p64x0_clk48m_ctrl(struct clk *clk, int enable); |
| 37 | |
Kukjin Kim | 2d8c8a0 | 2013-01-01 19:14:00 -0800 | [diff] [blame] | 38 | #endif /* __MACH_S5P64X0_CLOCK_H */ |