clk: tegra: Add stubs needed for compile testing
authorThierry Reding <treding@nvidia.com>
Mon, 4 Oct 2021 20:06:41 +0000 (22:06 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 5 Oct 2021 17:08:11 +0000 (19:08 +0200)
These stubs are needed to allow the tegra-cpuidle driver to be
compile-tested.

Signed-off-by: Thierry Reding <treding@nvidia.com>
include/linux/clk/tegra.h

index d128ad1570aa3ee0d5d970a0bb37e3d4aaaf64cc..3650e926e93f4472631ac52eb5885940c89c8f22 100644 (file)
@@ -42,6 +42,7 @@ struct tegra_cpu_car_ops {
 #endif
 };
 
+#ifdef CONFIG_ARCH_TEGRA
 extern struct tegra_cpu_car_ops *tegra_cpu_car_ops;
 
 static inline void tegra_wait_cpu_in_reset(u32 cpu)
@@ -83,8 +84,29 @@ static inline void tegra_disable_cpu_clock(u32 cpu)
 
        tegra_cpu_car_ops->disable_clock(cpu);
 }
+#else
+static inline void tegra_wait_cpu_in_reset(u32 cpu)
+{
+}
 
-#ifdef CONFIG_PM_SLEEP
+static inline void tegra_put_cpu_in_reset(u32 cpu)
+{
+}
+
+static inline void tegra_cpu_out_of_reset(u32 cpu)
+{
+}
+
+static inline void tegra_enable_cpu_clock(u32 cpu)
+{
+}
+
+static inline void tegra_disable_cpu_clock(u32 cpu)
+{
+}
+#endif
+
+#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_PM_SLEEP)
 static inline bool tegra_cpu_rail_off_ready(void)
 {
        if (WARN_ON(!tegra_cpu_car_ops->rail_off_ready))