Grzegorz Jaszczyk | a3173d6 | 2019-12-18 15:58:27 +0100 | [diff] [blame] | 1 | /* |
| 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 Jaszczyk | 7d50972 | 2020-01-03 09:35:21 +0100 | [diff] [blame] | 16 | #define MV_SIP_DFX_SREAD 20 |
| 17 | #define MV_SIP_DFX_SWRITE 21 |
| 18 | |
Grzegorz Jaszczyk | 755f078 | 2020-01-02 16:14:13 +0100 | [diff] [blame] | 19 | int mvebu_dfx_thermal_handle(u_register_t func, u_register_t *read, |
| 20 | u_register_t x2, u_register_t x3); |
Grzegorz Jaszczyk | 7d50972 | 2020-01-03 09:35:21 +0100 | [diff] [blame] | 21 | int mvebu_dfx_misc_handle(u_register_t func, u_register_t *read, |
| 22 | u_register_t addr, u_register_t val); |