2 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
3 * Copyright (c) 2013 Linaro Ltd.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Common Clock Framework support for all PLL's in Samsung platforms
12 #ifndef __SAMSUNG_CLK_PLL_H
13 #define __SAMSUNG_CLK_PLL_H
15 enum samsung_pll_type {
42 #define PLL_35XX_RATE(_rate, _m, _p, _s) \
50 #define PLL_36XX_RATE(_rate, _m, _p, _s, _k) \
59 #define PLL_45XX_RATE(_rate, _m, _p, _s, _afc) \
68 #define PLL_4600_RATE(_rate, _m, _p, _s, _k, _vsel) \
78 #define PLL_4650_RATE(_rate, _m, _p, _s, _k, _mfr, _mrr, _vsel) \
90 /* NOTE: Rate table should be kept sorted in descending order. */
92 struct samsung_pll_rate_table {
104 extern struct clk * __init samsung_clk_register_pll2550x(const char *name,
105 const char *pname, const void __iomem *reg_base,
106 const unsigned long offset);
108 #endif /* __SAMSUNG_CLK_PLL_H */