18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2010 Google, Inc. 48c2ecf20Sopenharmony_ci * Copyright (c) 2010-2012 NVIDIA Corporation. All rights reserved. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Author: 78c2ecf20Sopenharmony_ci * Colin Cross <ccross@google.com> 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#ifndef _MACH_TEGRA_PM_H_ 118c2ecf20Sopenharmony_ci#define _MACH_TEGRA_PM_H_ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_cistruct tegra_lp1_iram { 148c2ecf20Sopenharmony_ci void *start_addr; 158c2ecf20Sopenharmony_ci void *end_addr; 168c2ecf20Sopenharmony_ci}; 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciextern struct tegra_lp1_iram tegra_lp1_iram; 198c2ecf20Sopenharmony_ciextern void (*tegra_sleep_core_finish)(unsigned long v2p); 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_civoid tegra20_lp1_iram_hook(void); 228c2ecf20Sopenharmony_civoid tegra20_sleep_core_init(void); 238c2ecf20Sopenharmony_civoid tegra30_lp1_iram_hook(void); 248c2ecf20Sopenharmony_civoid tegra30_sleep_core_init(void); 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciextern void (*tegra_tear_down_cpu)(void); 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#ifdef CONFIG_PM_SLEEP 298c2ecf20Sopenharmony_civoid tegra_init_suspend(void); 308c2ecf20Sopenharmony_ci#else 318c2ecf20Sopenharmony_cistatic inline void tegra_init_suspend(void) {} 328c2ecf20Sopenharmony_ci#endif 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#endif /* _MACH_TEGRA_PM_H_ */ 35