| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Copyright (c) 2020 MediaTek Inc. |
| 4 | */ |
| 5 | #ifndef SAFEXCEL_PROC_H |
| 6 | #define SAFEXCEL_PROC_H |
| 7 | |
| 8 | extern int dbg_disable_eip97; |
| 9 | extern int dbg_enable_log; |
| 10 | extern int dbg_eip97_vcore_max; |
| 11 | extern int dbg_eip97_vcore_min; |
| 12 | |
| 13 | #define DEFAULT_DISABLE_EIP97 0 |
| 14 | #define DEFAULT_ENABLE_LOG 1 |
| 15 | #define DEFAULT_VCORE_MAX 750000 |
| 16 | #define DEFAULT_VCORE_MIN 550000 |
| 17 | |
| 18 | #define PROC_UPDATE_DISABLE_EIP97 BIT(0) |
| 19 | #define PROC_UPDATE_ENABLE_LOG BIT(1) |
| 20 | #define PROC_UPDATE_EIP97_VCORE BIT(2) |
| 21 | |
| 22 | typedef void (*debug_proc_update_func)(long stat, void *priv); |
| 23 | |
| 24 | int safexcel_proc_init(debug_proc_update_func callback, void *priv); |
| 25 | void safexcel_proc_exit(void); |
| 26 | |
| 27 | #endif |