blob: 34b9f0c280a112060131d20168cfa65c1a70cf25 [file] [log] [blame]
xjb04a4022021-11-25 15:01:52 +08001/* 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)
12void mt_fhctl_init_debugfs(struct mtk_fhctl *fhctl);
13void mt_fhctl_exit_debugfs(struct mtk_fhctl *fhctl);
14void mt_fhctl_log_b4_hopping(struct clk_mt_fhctl *fhctl, unsigned int target_dds, unsigned int tx_id, struct pll_status *fh_log);
15void 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);
16void mt_fh_dump_register(void);
17
18#else
19static inline void mt_fhctl_init_debugfs(struct mtk_fhctl *fhctl)
20{
21}
22static inline void mt_fhctl_exit_debugfs(struct mtk_fhctl *fhctl)
23{
24}
25static 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}
28static 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}
31static inline void mt_fh_dump_register(void)
32{
33}
34
35#endif
36
37#endif /* __DRV_CLK_FHCTL_DEBUG_H */
38