xref: /openbmc/linux/arch/arm/mach-tegra/pm-tegra30.c (revision e7a932b1)
1e7a932b1SJoseph Lo /*
2e7a932b1SJoseph Lo  * Copyright (c) 2013, NVIDIA Corporation. All rights reserved.
3e7a932b1SJoseph Lo  *
4e7a932b1SJoseph Lo  * This program is free software; you can redistribute it and/or modify it
5e7a932b1SJoseph Lo  * under the terms and conditions of the GNU General Public License,
6e7a932b1SJoseph Lo  * version 2, as published by the Free Software Foundation.
7e7a932b1SJoseph Lo  *
8e7a932b1SJoseph Lo  * This program is distributed in the hope it will be useful, but WITHOUT
9e7a932b1SJoseph Lo  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10e7a932b1SJoseph Lo  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11e7a932b1SJoseph Lo  * more details.
12e7a932b1SJoseph Lo  *
13e7a932b1SJoseph Lo  * You should have received a copy of the GNU General Public License
14e7a932b1SJoseph Lo  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15e7a932b1SJoseph Lo  */
16e7a932b1SJoseph Lo #include <linux/kernel.h>
17e7a932b1SJoseph Lo 
18e7a932b1SJoseph Lo #include "pm.h"
19e7a932b1SJoseph Lo 
20e7a932b1SJoseph Lo #ifdef CONFIG_PM_SLEEP
21e7a932b1SJoseph Lo extern u32 tegra30_iram_start, tegra30_iram_end;
22e7a932b1SJoseph Lo extern void tegra30_sleep_core_finish(unsigned long);
23e7a932b1SJoseph Lo 
24e7a932b1SJoseph Lo void tegra30_lp1_iram_hook(void)
25e7a932b1SJoseph Lo {
26e7a932b1SJoseph Lo 	tegra_lp1_iram.start_addr = &tegra30_iram_start;
27e7a932b1SJoseph Lo 	tegra_lp1_iram.end_addr = &tegra30_iram_end;
28e7a932b1SJoseph Lo }
29e7a932b1SJoseph Lo 
30e7a932b1SJoseph Lo void tegra30_sleep_core_init(void)
31e7a932b1SJoseph Lo {
32e7a932b1SJoseph Lo 	tegra_sleep_core_finish = tegra30_sleep_core_finish;
33e7a932b1SJoseph Lo }
34e7a932b1SJoseph Lo #endif
35