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 */ 16a0524accSThierry Reding 17e7a932b1SJoseph Lo #include <linux/kernel.h> 18e7a932b1SJoseph Lo 19e7a932b1SJoseph Lo #include "pm.h" 20e7a932b1SJoseph Lo 21e7a932b1SJoseph Lo #ifdef CONFIG_PM_SLEEP 22e7a932b1SJoseph Lo extern u32 tegra30_iram_start, tegra30_iram_end; 23e7a932b1SJoseph Lo extern void tegra30_sleep_core_finish(unsigned long); 24e7a932b1SJoseph Lo 25e7a932b1SJoseph Lo void tegra30_lp1_iram_hook(void) 26e7a932b1SJoseph Lo { 27e7a932b1SJoseph Lo tegra_lp1_iram.start_addr = &tegra30_iram_start; 28e7a932b1SJoseph Lo tegra_lp1_iram.end_addr = &tegra30_iram_end; 29e7a932b1SJoseph Lo } 30e7a932b1SJoseph Lo 31e7a932b1SJoseph Lo void tegra30_sleep_core_init(void) 32e7a932b1SJoseph Lo { 33e7a932b1SJoseph Lo tegra_sleep_core_finish = tegra30_sleep_core_finish; 34e7a932b1SJoseph Lo } 35e7a932b1SJoseph Lo #endif 36