xref: /openbmc/linux/drivers/clk/mediatek/clk-fhctl.h (revision 5626af8f)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (c) 2022 MediaTek Inc.
4  * Author: Edward-JW Yang <edward-jw.yang@mediatek.com>
5  */
6 
7 #ifndef __CLK_FHCTL_H
8 #define __CLK_FHCTL_H
9 
10 struct fhctl_offset {
11 	u32 offset_hp_en;
12 	u32 offset_clk_con;
13 	u32 offset_rst_con;
14 	u32 offset_slope0;
15 	u32 offset_slope1;
16 	u32 offset_cfg;
17 	u32 offset_updnlmt;
18 	u32 offset_dds;
19 	u32 offset_dvfs;
20 	u32 offset_mon;
21 };
22 const struct fhctl_offset *fhctl_get_offset_table(void);
23 const struct fh_operation *fhctl_get_ops(void);
24 void fhctl_hw_init(struct mtk_fh *fh);
25 
26 #endif
27