diff options
author | Chao Xie <chao.xie@marvell.com> | 2014-10-31 10:13:45 +0800 |
---|---|---|
committer | Michael Turquette <mturquette@linaro.org> | 2014-11-12 16:33:52 -0800 |
commit | ee81f4ee2a3632a2d7928f680c4af8243a18762f (patch) | |
tree | 7e0f473833adb5b523c033b32a31c10ee8cf5cf7 /drivers/clk/mmp/Makefile | |
parent | 3a2b2f84957d3c1e380640e23e438c40c730cfd1 (diff) | |
download | linux-stable-ee81f4ee2a3632a2d7928f680c4af8243a18762f.tar.gz linux-stable-ee81f4ee2a3632a2d7928f680c4af8243a18762f.tar.bz2 linux-stable-ee81f4ee2a3632a2d7928f680c4af8243a18762f.zip |
clk: mmp: add clock type mix
The clock type mix is a kind of clock combines "div" and "mux".
This kind of clock can not allow to change div first then
mux or change mux first or div.
The reason is
1. Some clock has frequency change bit. Each time want to change
the frequency, there are some operations based on this bit, and
these operations are time-cost.
Seperating div and mux change will make the process longer, and
waste more time.
2. Seperting the div and mux may generate middle clock that the
peripharals do not support. It may make the peripharals hang.
There are three kinds of this type of clock in all SOCes.
1. The clock has bit to trigger the frequency change.
2. Same as #1, but the operations for the bit is different
3. Do not have frequency change bit.
So this type of clock has implemented the callbacks
->determine_rate
->set_rate_and_parent
These callbacks can help to change the div and mux together.
Signed-off-by: Chao Xie <chao.xie@marvell.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/mmp/Makefile')
-rw-r--r-- | drivers/clk/mmp/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/mmp/Makefile b/drivers/clk/mmp/Makefile index 392d78044ce3..8bfee8605949 100644 --- a/drivers/clk/mmp/Makefile +++ b/drivers/clk/mmp/Makefile @@ -2,7 +2,7 @@ # Makefile for mmp specific clk # -obj-y += clk-apbc.o clk-apmu.o clk-frac.o +obj-y += clk-apbc.o clk-apmu.o clk-frac.o clk-mix.o obj-$(CONFIG_CPU_PXA168) += clk-pxa168.o obj-$(CONFIG_CPU_PXA910) += clk-pxa910.o |