| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Copyright (c) 2019 MediaTek Inc. |
| 4 | * Author: Pierre Lee <pierre.lee@mediatek.com> |
| 5 | */ |
| 6 | |
| 7 | |
| 8 | #ifndef __DRV_CLK_FHCTL_DEBUG_H |
| 9 | #define __DRV_CLK_FHCTL_DEBUG_H |
| 10 | |
| 11 | #if defined(CONFIG_DEBUG_FS) |
| 12 | void mt_fhctl_init_debugfs(struct mtk_fhctl *fhctl); |
| 13 | void mt_fhctl_exit_debugfs(struct mtk_fhctl *fhctl); |
| 14 | void mt_fhctl_log_b4_hopping(struct clk_mt_fhctl *fhctl, unsigned int target_dds, unsigned int tx_id, struct pll_status *fh_log); |
| 15 | void mt_fhctl_log_af_hopping(struct clk_mt_fhctl *fhctl, int ret_from_ipi, unsigned int tx_id, struct pll_status *fh_log, void (*ipi_get_data)(unsigned int), u64 time_ns); |
| 16 | void mt_fh_dump_register(void); |
| 17 | |
| 18 | #else |
| 19 | static inline void mt_fhctl_init_debugfs(struct mtk_fhctl *fhctl) |
| 20 | { |
| 21 | } |
| 22 | static inline void mt_fhctl_exit_debugfs(struct mtk_fhctl *fhctl) |
| 23 | { |
| 24 | } |
| 25 | static inline void mt_fhctl_log_b4_hopping(struct clk_mt_fhctl *fhctl, unsigned int target_dds, unsigned int tx_id, struct pll_status *fh_log) |
| 26 | { |
| 27 | } |
| 28 | static inline void mt_fhctl_log_af_hopping(struct clk_mt_fhctl *fhctl, int ret_from_ipi, unsigned int ack_data, struct pll_status *fh_log, void (*ipi_get_data)(unsigned int), u64 time_ns) |
| 29 | { |
| 30 | } |
| 31 | static inline void mt_fh_dump_register(void) |
| 32 | { |
| 33 | } |
| 34 | |
| 35 | #endif |
| 36 | |
| 37 | #endif /* __DRV_CLK_FHCTL_DEBUG_H */ |
| 38 | |