Jisheng Zhang | 3504395 | 2018-05-16 16:04:29 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Alexandre Belloni | cf8de5a | 2014-05-19 18:43:25 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2014 Marvell Technology Group Ltd. |
| 4 | * |
| 5 | * Alexandre Belloni <alexandre.belloni@free-electrons.com> |
| 6 | * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> |
Alexandre Belloni | cf8de5a | 2014-05-19 18:43:25 +0200 | [diff] [blame] | 7 | */ |
| 8 | #ifndef __BERLIN2_PLL_H |
| 9 | #define __BERLIN2_PLL_H |
| 10 | |
Alexandre Belloni | cf8de5a | 2014-05-19 18:43:25 +0200 | [diff] [blame] | 11 | struct berlin2_pll_map { |
| 12 | const u8 vcodiv[16]; |
| 13 | u8 mult; |
| 14 | u8 fbdiv_shift; |
| 15 | u8 rfdiv_shift; |
| 16 | u8 divsel_shift; |
| 17 | }; |
| 18 | |
Stephen Boyd | f6475e2 | 2016-08-16 15:40:52 -0700 | [diff] [blame] | 19 | int berlin2_pll_register(const struct berlin2_pll_map *map, |
| 20 | void __iomem *base, const char *name, |
| 21 | const char *parent_name, unsigned long flags); |
Alexandre Belloni | cf8de5a | 2014-05-19 18:43:25 +0200 | [diff] [blame] | 22 | |
| 23 | #endif /* __BERLIN2_PLL_H */ |