source "drivers/clk/mvebu/Kconfig"
source "drivers/clk/samsung/Kconfig"
+source "drivers/clk/tegra/Kconfig"
--- /dev/null
+config TEGRA_CLK_EMC
+ def_bool y
+ depends on TEGRA124_EMC
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 clk-emc.o
+obj-$(CONFIG_ARCH_TEGRA_124_SOC) += clk-tegra124.o
obj-$(CONFIG_ARCH_TEGRA_132_SOC) += clk-tegra124.o
+obj-$(CONFIG_TEGRA_CLK_EMC) += clk-emc.o
void __iomem *pmc_base, struct tegra_clk *tegra_clks,
struct tegra_clk_pll_params *pll_params);
+#ifdef CONFIG_TEGRA_CLK_EMC
struct clk *tegra_emc_init(struct device_node *np, void __iomem *clk_regs,
spinlock_t *lock);
+#else
+static inline struct clk *tegra_emc_init(struct device_node *np,
+ void __iomem *clk_regs,
+ spinlock_t *lock)
+{
+ return NULL;
+}
+#endif
void tegra114_clock_tune_cpu_trimmers_high(void);
void tegra114_clock_tune_cpu_trimmers_low(void);
NVIDIA Tegra SoCs.
config TEGRA124_EMC
- bool "Tegra124 External Memory Controller driver"
+ bool "NVIDIA Tegra124 External Memory Controller driver"
default y
depends on TEGRA_MC && ARCH_TEGRA_124_SOC
help
Tegra124 chips. The EMC controls the external DRAM on the board.
This driver is required to change memory timings / clock rate for
external memory.
-