clk: tegra: Add sdmmc mux divider clock
authorPeter De-Schrijver <pdeschrijver@nvidia.com>
Thu, 12 Jul 2018 11:53:01 +0000 (14:53 +0300)
committerStephen Boyd <sboyd@kernel.org>
Wed, 25 Jul 2018 20:45:09 +0000 (13:45 -0700)
commit633e79650b4f0ed8cd26076a376b5372c413b0f8
tree003efc93a2f1b3bd8091bf3579097acdca04c2a9
parentcb3ac5947afb3bb7e2f89c1b59f61dcf3e115fe1
clk: tegra: Add sdmmc mux divider clock

Add a clock type to model the sdmmc switch divider clocks which have paths
to source clocks bypassing the divider (Low Jitter paths). These
are handled by selecting the lj path when the divider is 1 (ie the
rate is the parent rate), otherwise the normal path with divider
will be selected. Otherwise this clock behaves as a normal peripheral
clock.

Signed-off-by: Peter De-Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Aapo Vienamo <avienamo@nvidia.com>
Acked-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/tegra/Makefile
drivers/clk/tegra/clk-sdmmc-mux.c [new file with mode: 0644]
drivers/clk/tegra/clk.h