pm.h 986 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (C) 2014 NVIDIA Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __SOC_TEGRA_PM_H__
  9. #define __SOC_TEGRA_PM_H__
  10. enum tegra_suspend_mode {
  11. TEGRA_SUSPEND_NONE = 0,
  12. TEGRA_SUSPEND_LP2, /* CPU voltage off */
  13. TEGRA_SUSPEND_LP1, /* CPU voltage off, DRAM self-refresh */
  14. TEGRA_SUSPEND_LP0, /* CPU + core voltage off, DRAM self-refresh */
  15. TEGRA_MAX_SUSPEND_MODE,
  16. };
  17. #if defined(CONFIG_PM_SLEEP) && defined(CONFIG_ARM)
  18. enum tegra_suspend_mode
  19. tegra_pm_validate_suspend_mode(enum tegra_suspend_mode mode);
  20. /* low-level resume entry point */
  21. void tegra_resume(void);
  22. #else
  23. static inline enum tegra_suspend_mode
  24. tegra_pm_validate_suspend_mode(enum tegra_suspend_mode mode)
  25. {
  26. return TEGRA_SUSPEND_NONE;
  27. }
  28. static inline void tegra_resume(void)
  29. {
  30. }
  31. #endif /* CONFIG_PM_SLEEP */
  32. #endif /* __SOC_TEGRA_PM_H__ */