diff options
author | Thierry Reding <treding@nvidia.com> | 2021-10-04 22:06:41 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2021-10-05 19:08:11 +0200 |
commit | 4ad81f6ef89b62434f1d2ed26e9bec9d0e3d9dfe (patch) | |
tree | 4200fe51acf112b1de92b97753dcaafc7ed40e62 /include/linux | |
parent | 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f (diff) | |
download | linux-4ad81f6ef89b62434f1d2ed26e9bec9d0e3d9dfe.tar.gz linux-4ad81f6ef89b62434f1d2ed26e9bec9d0e3d9dfe.tar.bz2 linux-4ad81f6ef89b62434f1d2ed26e9bec9d0e3d9dfe.zip |
clk: tegra: Add stubs needed for compile testing
These stubs are needed to allow the tegra-cpuidle driver to be
compile-tested.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/clk/tegra.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/include/linux/clk/tegra.h b/include/linux/clk/tegra.h index d128ad1570aa..3650e926e93f 100644 --- a/include/linux/clk/tegra.h +++ b/include/linux/clk/tegra.h @@ -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)) |