diff options
author | Heiko Stuebner <heiko@sntech.de> | 2015-07-05 11:00:14 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-07-06 15:04:40 -0700 |
commit | 8a76f443a9ea6f7f72ede9f95fe0ca5b90f09a43 (patch) | |
tree | 3d15fd17c70ea1dd6e43efc55ac78a6fe6842b11 /drivers/clk/rockchip/clk.c | |
parent | 6f085072534363b68c705d54b9dbbed0474ff357 (diff) | |
download | op-kernel-dev-8a76f443a9ea6f7f72ede9f95fe0ca5b90f09a43.zip op-kernel-dev-8a76f443a9ea6f7f72ede9f95fe0ca5b90f09a43.tar.gz |
clk: rockchip: add support for phase inverters
Most Rockchip socs have optional phase inverters connected to some
clocks that move the clock-phase by 180 degrees.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
[sboyd@codeaurora.org: Dropped lazy part of commit text]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/rockchip/clk.c')
-rw-r--r-- | drivers/clk/rockchip/clk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c index 052b94d..2493881 100644 --- a/drivers/clk/rockchip/clk.c +++ b/drivers/clk/rockchip/clk.c @@ -277,6 +277,13 @@ void __init rockchip_clk_register_branches( list->div_shift ); break; + case branch_inverter: + clk = rockchip_clk_register_inverter( + list->name, list->parent_names, + list->num_parents, + reg_base + list->muxdiv_offset, + list->div_shift, list->div_flags, &clk_lock); + break; } /* none of the cases above matched */ |