diff options
Diffstat (limited to 'arch/arm/mach-tegra/pm.c')
-rw-r--r-- | arch/arm/mach-tegra/pm.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pm.c b/arch/arm/mach-tegra/pm.c index 10689924a6a7..7739d5586cb7 100644 --- a/arch/arm/mach-tegra/pm.c +++ b/arch/arm/mach-tegra/pm.c | |||
@@ -209,6 +209,15 @@ static int tegra_sleep_core(unsigned long v2p) | |||
209 | */ | 209 | */ |
210 | static bool tegra_lp1_iram_hook(void) | 210 | static bool tegra_lp1_iram_hook(void) |
211 | { | 211 | { |
212 | switch (tegra_chip_id) { | ||
213 | case TEGRA30: | ||
214 | if (IS_ENABLED(CONFIG_ARCH_TEGRA_3x_SOC)) | ||
215 | tegra30_lp1_iram_hook(); | ||
216 | break; | ||
217 | default: | ||
218 | break; | ||
219 | } | ||
220 | |||
212 | if (!tegra_lp1_iram.start_addr || !tegra_lp1_iram.end_addr) | 221 | if (!tegra_lp1_iram.start_addr || !tegra_lp1_iram.end_addr) |
213 | return false; | 222 | return false; |
214 | 223 | ||
@@ -222,6 +231,15 @@ static bool tegra_lp1_iram_hook(void) | |||
222 | 231 | ||
223 | static bool tegra_sleep_core_init(void) | 232 | static bool tegra_sleep_core_init(void) |
224 | { | 233 | { |
234 | switch (tegra_chip_id) { | ||
235 | case TEGRA30: | ||
236 | if (IS_ENABLED(CONFIG_ARCH_TEGRA_3x_SOC)) | ||
237 | tegra30_sleep_core_init(); | ||
238 | break; | ||
239 | default: | ||
240 | break; | ||
241 | } | ||
242 | |||
225 | if (!tegra_sleep_core_finish) | 243 | if (!tegra_sleep_core_finish) |
226 | return false; | 244 | return false; |
227 | 245 | ||