summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/powergate-ops-txx.h
blob: 7acbd06efed4f5f76574e6aa6100f50d032ff908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that 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.
 *
 */

#ifndef __POWERGATE_OPS_TXX_H__
#define __POWERGATE_OPS_TXX_H__

/* Common APIs for tegra2 and tegra3 SoCs */
int tegraxx_powergate_partition(int id,
	struct powergate_partition_info *pg_info);

int tegraxx_unpowergate_partition(int id,
	struct powergate_partition_info *pg_info);

int tegraxx_powergate_partition_with_clk_off(int id,
	struct powergate_partition_info *pg_info);

int tegraxx_unpowergate_partition_with_clk_on(int id,
	struct powergate_partition_info *pg_info);

#endif /* __POWERGATE_OPS_TXX_H__ */