summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/clk/pll.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-09-16 18:33:11 (GMT)
committerMasahiro Yamada <yamada.masahiro@socionext.com>2016-09-18 15:12:26 (GMT)
commit682e09ff9f3514e79ee3382988b74f63b4bdd06b (patch)
treef0ad6ed0c890bebd7bd627b29be27c1ebd9d64a0 /arch/arm/mach-uniphier/clk/pll.h
parentfcc238baee1495ff9796dfc4e13f8069a152e85f (diff)
downloadu-boot-fsl-qoriq-682e09ff9f3514e79ee3382988b74f63b4bdd06b.tar.xz
ARM: uniphier: add PLL init code for LD20 SoC
Initialize the DPLL (PLL for DRAM) in SPL, and others in U-Boot proper. Split the common code into pll-base-ld20.c for easier re-use. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/clk/pll.h')
-rw-r--r--arch/arm/mach-uniphier/clk/pll.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/clk/pll.h b/arch/arm/mach-uniphier/clk/pll.h
index ef0f722..d7e9303 100644
--- a/arch/arm/mach-uniphier/clk/pll.h
+++ b/arch/arm/mach-uniphier/clk/pll.h
@@ -8,6 +8,14 @@
#ifndef MACH_PLL_H
#define MACH_PLL_H
+#define UNIPHIER_PLL_FREQ_DEFAULT (0)
+
void uniphier_ld4_dpll_ssc_en(void);
+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);
+int uniphier_ld20_vpll27_init(unsigned long reg_base);
+int uniphier_ld20_dspll_init(unsigned long reg_base);
+
#endif /* MACH_PLL_H */