clk: tegra: Implement Tegra210 EMC clock
authorJoseph Lo <josephl@nvidia.com>
Wed, 29 May 2019 08:21:35 +0000 (16:21 +0800)
committerThierry Reding <treding@nvidia.com>
Tue, 12 May 2020 20:48:42 +0000 (22:48 +0200)
commit0ac65fc946d3a15ff30cea28b38a00b9ba98217b
treea52d5434512c1a1854e4e81dd85d63c0e5339bfa
parenta3cba697a2a09e6769996d5265991a3228004d92
clk: tegra: Implement Tegra210 EMC clock

The EMC clock needs to carefully coordinate with the EMC controller
programming to make sure external memory can be properly clocked. Do so
by hooking up the EMC clock with an EMC provider that will specify which
rates are supported by the EMC and provide a callback to use for setting
the clock rate at the EMC.

Based on work by Peter De Schrijver <pdeschrijver@nvidia.com>.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/Makefile
drivers/clk/tegra/clk-tegra210-emc.c [new file with mode: 0644]
drivers/clk/tegra/clk.h
include/linux/clk/tegra.h