summaryrefslogtreecommitdiffstats
path: root/drivers/platform/tegra/denver-knobs.h
blob: 3e3ba9e1193858d2ede73bebc663313d7d713a6a (plain) (blame)
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
32
33
34
35
36
37
38
39
40
/*
 * Copyright (c) 2014-2018 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 <http://www.gnu.org/licenses/>.
 */

#ifndef _MACH_DENVER_KNOBS_H_
#define _MACH_DENVER_KNOBS_H_

int smp_call_function_denver(smp_call_func_t func, void *info, int wait);

bool denver_get_bg_allowed(int cpu);
void denver_set_bg_allowed(int cpu, bool enable);

enum denver_pmic_type {
	UNDEFINED,
	AMS_372x,
	TI_TPS_65913_22,
	OPEN_VR,
	TI_TPS_65913_23,
	NR_PMIC_TYPES
};

#define DENVER_PMIC_DEF_RET_VOL 0xffff

int denver_set_pmic_config(enum denver_pmic_type type, u16 ret_vol, bool lock);
int denver_get_pmic_config(enum denver_pmic_type *type,
		u16 *ret_vol, bool *lock);

#endif /* _MACH_DENVER_KNOBS_H_ */