summaryrefslogtreecommitdiffstats
path: root/drivers/marvell/secure_dfx_access/dfx.h
blob: 88c4de864704dadad15119b9107b5dcb8e11832c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (C) 2019 Marvell International Ltd.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 * https://spdx.org/licenses
 */

/* DFX sub-FID */
#define MV_SIP_DFX_THERMAL_INIT		1
#define MV_SIP_DFX_THERMAL_READ		2
#define MV_SIP_DFX_THERMAL_IS_VALID	3
#define MV_SIP_DFX_THERMAL_IRQ		4
#define MV_SIP_DFX_THERMAL_THRESH	5
#define MV_SIP_DFX_THERMAL_SEL_CHANNEL	6

#define MV_SIP_DFX_SREAD		20
#define MV_SIP_DFX_SWRITE		21

int mvebu_dfx_thermal_handle(u_register_t func, u_register_t *read,
			     u_register_t x2, u_register_t x3);
int mvebu_dfx_misc_handle(u_register_t func, u_register_t *read,
			  u_register_t addr, u_register_t val);