blob: dbdbd2b45d7f803e94152def45488e3b09d2dd9b [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Masahiro Yamada9d6652c2016-09-17 03:33:09 +09002/*
3 * Copyright (C) 2016 Socionext Inc.
4 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada9d6652c2016-09-17 03:33:09 +09005 */
6
7#ifndef MACH_PLL_H
8#define MACH_PLL_H
9
Masahiro Yamadad11b0b72016-09-17 03:33:11 +090010#define UNIPHIER_PLL_FREQ_DEFAULT (0)
11
Masahiro Yamada9d6652c2016-09-17 03:33:09 +090012void uniphier_ld4_dpll_ssc_en(void);
13
Masahiro Yamadad11b0b72016-09-17 03:33:11 +090014int uniphier_ld20_sscpll_init(unsigned long reg_base, unsigned int freq,
15 unsigned int ssc_rate, unsigned int divn);
16int uniphier_ld20_sscpll_ssc_en(unsigned long reg_base);
Masahiro Yamadaf366d382017-02-21 23:00:35 +090017int uniphier_ld20_sscpll_set_regi(unsigned long reg_base, unsigned regi);
Masahiro Yamadad11b0b72016-09-17 03:33:11 +090018int uniphier_ld20_vpll27_init(unsigned long reg_base);
19int uniphier_ld20_dspll_init(unsigned long reg_base);
20
Masahiro Yamada9d6652c2016-09-17 03:33:09 +090021#endif /* MACH_PLL_H */