xref: /linux/drivers/clk/berlin/berlin2-pll.h (revision e5c86679d5e864947a52fb31e45a425dea3e7fa9)
1 /*
2  * Copyright (c) 2014 Marvell Technology Group Ltd.
3  *
4  * Alexandre Belloni <alexandre.belloni@free-electrons.com>
5  * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms and conditions of the GNU General Public License,
9  * version 2, as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19 #ifndef __BERLIN2_PLL_H
20 #define __BERLIN2_PLL_H
21 
22 struct berlin2_pll_map {
23 	const u8 vcodiv[16];
24 	u8 mult;
25 	u8 fbdiv_shift;
26 	u8 rfdiv_shift;
27 	u8 divsel_shift;
28 };
29 
30 int berlin2_pll_register(const struct berlin2_pll_map *map,
31 			 void __iomem *base, const char *name,
32 			 const char *parent_name, unsigned long flags);
33 
34 #endif /* __BERLIN2_PLL_H */
35