/* * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef _LINUX_TEGRA_POWERGATE_H #define _LINUX_TEGRA_POWERGATE_H #include #include #include #include #include struct platform_device; extern int TEGRA_POWERGATE_DISA; #ifdef CONFIG_POWERGATE_TEGRA_BPMP int tegra_bpmp_init_powergate(struct platform_device *pdev); #else static inline int tegra_bpmp_init_powergate(struct platform_device *pdev) { return 0; } #endif #endif