2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2016-09-16 18:33:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Socionext Inc.
|
|
|
|
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MACH_PLL_H
|
|
|
|
#define MACH_PLL_H
|
|
|
|
|
2016-09-16 18:33:11 +00:00
|
|
|
#define UNIPHIER_PLL_FREQ_DEFAULT (0)
|
|
|
|
|
2016-09-16 18:33:09 +00:00
|
|
|
void uniphier_ld4_dpll_ssc_en(void);
|
|
|
|
|
2016-09-16 18:33:11 +00:00
|
|
|
int uniphier_ld20_sscpll_init(unsigned long reg_base, unsigned int freq,
|
|
|
|
unsigned int ssc_rate, unsigned int divn);
|
|
|
|
int uniphier_ld20_sscpll_ssc_en(unsigned long reg_base);
|
2017-02-21 14:00:35 +00:00
|
|
|
int uniphier_ld20_sscpll_set_regi(unsigned long reg_base, unsigned regi);
|
2016-09-16 18:33:11 +00:00
|
|
|
int uniphier_ld20_vpll27_init(unsigned long reg_base);
|
|
|
|
int uniphier_ld20_dspll_init(unsigned long reg_base);
|
|
|
|
|
2016-09-16 18:33:09 +00:00
|
|
|
#endif /* MACH_PLL_H */
|