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
{
30 #define PLL_35XX_RATE(_rate, _m, _p, _s) \
38 #define PLL_36XX_RATE(_rate, _m, _p, _s, _k) \
47 #define PLL_45XX_RATE(_rate, _m, _p, _s, _afc) \
56 #define PLL_4600_RATE(_rate, _m, _p, _s, _k, _vsel) \
66 #define PLL_4650_RATE(_rate, _m, _p, _s, _k, _mfr, _mrr, _vsel) \
78 /* NOTE: Rate table should be kept sorted in descending order. */
80 struct samsung_pll_rate_table
{
92 extern struct clk
* __init
samsung_clk_register_pll2550x(const char *name
,
93 const char *pname
, const void __iomem
*reg_base
,
94 const unsigned long offset
);
96 #endif /* __SAMSUNG_CLK_PLL_H */