Skip to content

Commit

Permalink
clk: rockchip: add clock type for pll clocks and pll used on rk3066
Browse files Browse the repository at this point in the history
All known Rockchip SoCs down to the RK28xx (ARM9) use a similar pattern to
handle their plls:
                       |--\
xin32k ----------------|mux\
xin24m -----| pll |----|pll|--- pll output
       \---------------|src/
                       |--/

The pll output is sourced from 1 of 3 sources, the actual pll being one of
them. To change the pll frequency it is imperative to remux it to another
source beforehand. This is done by adding a clock-listener to the pll that
handles the remuxing before and after the rate change.

The output mux is implemented as a separate clock to make use of already
existing common-clock features for disabling the pll if one of the other
two sources is used.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-By: Max Schwarz <max.schwarz@online.de>
Tested-By: Max Schwarz <max.schwarz@online.de>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
  • Loading branch information
Heiko Stübner authored and Mike Turquette committed Jul 13, 2014
1 parent a245fec commit 90c5902
Show file tree
Hide file tree
Showing 4 changed files with 541 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/clk/rockchip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

obj-y += clk-rockchip.o
obj-y += clk.o
obj-y += clk-pll.o
Loading

0 comments on commit 90c5902

Please sign in to comment.