This website requires JavaScript.
Explore
Help
Sign In
OrgACRN
/
acrn-kernel
mirror of
https://github.com/projectacrn/acrn-kernel.git
Watch
1
Star
0
Fork
You've already forked acrn-kernel
0
Code
Issues
Releases
Wiki
Activity
270b9f421e
acrn-kernel
/
drivers
/
clk
/
spear
/
Makefile
6 lines
99 B
Makefile
Raw
Normal View
History
Unescape
Escape
SPEAr: clk: Add VCO-PLL Synthesizer clock All SPEAr SoC's contain PLLs. Their Fout is derived based on following equations - In normal mode vco = (2 * M[15:8] * Fin)/N - In Dithered mode vco = (2 * M[15:0] * Fin)/(256 * N) pll_rate = vco/2^p vco and pll are very closely bound to each other, "vco needs to program: mode, m & n" and "pll needs to program p", both share common enable/disable logic and registers. This patch adds in support for this type of clock. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Reviewed-by: Mike Turquette <mturquette@linaro.org>
2012-04-10 11:32:35 +08:00
#
# SPEAr Clock specific Makefile
#
SPEAr: clk: Add Fractional Synthesizer clock All SPEAr SoC's contain Fractional Synthesizers. Their Fout is derived from following equations: Fout = Fin / (2 * div) (division factor) div is 17 bits:- 0-13 (fractional part) 14-16 (integer part) div is (16-14 bits).(13-0 bits) (in binary) Fout = Fin/(2 * div) Fout = ((Fin / 10000)/(2 * div)) * 10000 Fout = (2^14 * (Fin / 10000)/(2^14 * (2 * div))) * 10000 Fout = (((Fin / 10000) << 14)/(2 * (div << 14))) * 10000 div << 14 is simply 17 bit value written at register. This patch adds in support for this type of clock. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Reviewed-by: Mike Turquette <mturquette@linaro.org>
2012-04-11 20:34:23 +08:00
obj-y
+=
clk.o clk-aux-synth.o clk-frac-synth.o clk-vco-pll.o