clk: tegra: dfll: build clk-dfll.c for Tegra124 and Tegra210
authorPeter De Schrijver <pdeschrijver@nvidia.com>
Fri, 4 Jan 2019 03:06:52 +0000 (11:06 +0800)
committerThierry Reding <treding@nvidia.com>
Wed, 6 Feb 2019 13:29:37 +0000 (14:29 +0100)
Tegra210 has a DFLL as well and can share the majority of the code with
the Tegra124 implementation. So build the same code for both platforms.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/Kconfig
drivers/clk/tegra/Makefile

index 7ddacae5d0b1718c48d400774d12069426c922e4..1adcccfa7829961c129760b9e8c27887568a2b1a 100644 (file)
@@ -5,3 +5,8 @@ config TEGRA_CLK_EMC
 config CLK_TEGRA_BPMP
        def_bool y
        depends on TEGRA_BPMP
+
+config TEGRA_CLK_DFLL
+       depends on ARCH_TEGRA_124_SOC || ARCH_TEGRA_210_SOC
+       select PM_OPP
+       def_bool y
index 6507acc843c7fd2440117c94c48878641dce12fc..4812e45c22142670158747c173bf0383f8206a8c 100644 (file)
@@ -20,7 +20,7 @@ obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += clk-tegra20.o
 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += clk-tegra30.o
 obj-$(CONFIG_ARCH_TEGRA_114_SOC)       += clk-tegra114.o
 obj-$(CONFIG_ARCH_TEGRA_124_SOC)       += clk-tegra124.o
-obj-$(CONFIG_ARCH_TEGRA_124_SOC)       += clk-tegra124-dfll-fcpu.o
+obj-$(CONFIG_TEGRA_CLK_DFLL)           += clk-tegra124-dfll-fcpu.o
 obj-$(CONFIG_ARCH_TEGRA_132_SOC)       += clk-tegra124.o
 obj-y                                  += cvb.o
 obj-$(CONFIG_ARCH_TEGRA_210_SOC)       += clk-tegra210.o