blob: 88c4de864704dadad15119b9107b5dcb8e11832c [file] [log] [blame]
Grzegorz Jaszczyka3173d62019-12-18 15:58:27 +01001/*
2 * Copyright (C) 2019 Marvell International Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 * https://spdx.org/licenses
6 */
7
8/* DFX sub-FID */
9#define MV_SIP_DFX_THERMAL_INIT 1
10#define MV_SIP_DFX_THERMAL_READ 2
11#define MV_SIP_DFX_THERMAL_IS_VALID 3
12#define MV_SIP_DFX_THERMAL_IRQ 4
13#define MV_SIP_DFX_THERMAL_THRESH 5
14#define MV_SIP_DFX_THERMAL_SEL_CHANNEL 6
15
Grzegorz Jaszczyk7d509722020-01-03 09:35:21 +010016#define MV_SIP_DFX_SREAD 20
17#define MV_SIP_DFX_SWRITE 21
18
Grzegorz Jaszczyk755f0782020-01-02 16:14:13 +010019int mvebu_dfx_thermal_handle(u_register_t func, u_register_t *read,
20 u_register_t x2, u_register_t x3);
Grzegorz Jaszczyk7d509722020-01-03 09:35:21 +010021int mvebu_dfx_misc_handle(u_register_t func, u_register_t *read,
22 u_register_t addr, u_register_t val);