UPSTREAM: clk: rockchip: add a clock-type for muxes based in the grf
authorHeiko Stuebner <heiko@sntech.de>
Mon, 26 Dec 2016 23:00:38 +0000 (00:00 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 5 Jan 2017 03:48:57 +0000 (11:48 +0800)
commitacb2ae387574a89f32d9962236b8beb8dea3c9f1
treecbad9817fc755568fea714d16477e4bf559def4a
parentb90df318ef0078bf4d77778b8fa235cdd1197848
UPSTREAM: clk: rockchip: add a clock-type for muxes based in the grf

Rockchip socs often have some tiny number of muxes not controlled from
the core clock controller but through bits set in the general register
files. Add a clock-type that can control these as well, so that we
don't need to work around them being absent.

BUG=None
TEST=Build and boot on RK3399

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from git.kernel.org mmind/linux-rockchip.git v4.11-clk/next
 commit cb1d9f6ddaa436f2dce2710740b7a3546700949c)

Change-Id: I79352c8596f4d03fde519cd544c9d509d84c3a66
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
drivers/clk/rockchip/Makefile
drivers/clk/rockchip/clk-muxgrf.c [new file with mode: 0644]
drivers/clk/rockchip/clk.c
drivers/clk/rockchip/clk.h