2 * Copyright (C) 2014 NVIDIA Corporation
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.
9 #ifndef __SOC_TEGRA_PM_H__
10 #define __SOC_TEGRA_PM_H__
12 enum tegra_suspend_mode
{
13 TEGRA_SUSPEND_NONE
= 0,
14 TEGRA_SUSPEND_LP2
, /* CPU voltage off */
15 TEGRA_SUSPEND_LP1
, /* CPU voltage off, DRAM self-refresh */
16 TEGRA_SUSPEND_LP0
, /* CPU + core voltage off, DRAM self-refresh */
17 TEGRA_MAX_SUSPEND_MODE
,
20 #if defined(CONFIG_PM_SLEEP) && defined(CONFIG_ARM)
21 enum tegra_suspend_mode
22 tegra_pm_validate_suspend_mode(enum tegra_suspend_mode mode
);
24 /* low-level resume entry point */
25 void tegra_resume(void);
27 static inline enum tegra_suspend_mode
28 tegra_pm_validate_suspend_mode(enum tegra_suspend_mode mode
)
30 return TEGRA_SUSPEND_NONE
;
33 static inline void tegra_resume(void)
36 #endif /* CONFIG_PM_SLEEP */
38 #endif /* __SOC_TEGRA_PM_H__ */