clk: add table lookup to mux
authorPeter De Schrijver <pdeschrijver@nvidia.com>
Fri, 22 Mar 2013 12:07:53 +0000 (14:07 +0200)
committerMike Turquette <mturquette@linaro.org>
Fri, 22 Mar 2013 22:18:18 +0000 (15:18 -0700)
commitce4f3313b05c836c21a91ac89f87dccf84ce9561
treeab0f642d4ad1cc37b5a08ca0db5ac34f83ca84a8
parent5fda6858a49c2d8706adcc05f083b64af172d3eb
clk: add table lookup to mux

Add a table lookup feature to the mux clock. Also allow arbitrary masks
instead of the width. This will be used by some clocks on Tegra114. Also
adapt the tegra periph clk because it uses struct clk_mux directly.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-mux.c
drivers/clk/tegra/clk.h
include/linux/clk-private.h
include/linux/clk-provider.h