Thomas Gleixner | 9952f69 | 2019-05-28 10:10:04 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Joseph Lo | 731a927 | 2013-08-12 17:40:05 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2013, NVIDIA Corporation. All rights reserved. |
Joseph Lo | 731a927 | 2013-08-12 17:40:05 +0800 | [diff] [blame] | 4 | */ |
Thierry Reding | a0524ac | 2014-07-11 09:44:49 +0200 | [diff] [blame] | 5 | |
Joseph Lo | 731a927 | 2013-08-12 17:40:05 +0800 | [diff] [blame] | 6 | #include <linux/kernel.h> |
| 7 | |
| 8 | #include "pm.h" |
| 9 | |
| 10 | #ifdef CONFIG_PM_SLEEP |
| 11 | extern u32 tegra20_iram_start, tegra20_iram_end; |
| 12 | extern void tegra20_sleep_core_finish(unsigned long); |
| 13 | |
| 14 | void tegra20_lp1_iram_hook(void) |
| 15 | { |
| 16 | tegra_lp1_iram.start_addr = &tegra20_iram_start; |
| 17 | tegra_lp1_iram.end_addr = &tegra20_iram_end; |
| 18 | } |
| 19 | |
| 20 | void tegra20_sleep_core_init(void) |
| 21 | { |
| 22 | tegra_sleep_core_finish = tegra20_sleep_core_finish; |
| 23 | } |
| 24 | #endif |