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