drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()
[drm/drm-misc.git] / drivers / clk / mediatek / clk-fhctl.h
blobbfa6d281a3ee3f830a31b32c81a74f9ea304c33b
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 */
7 #ifndef __CLK_FHCTL_H
8 #define __CLK_FHCTL_H
10 #include "clk-pllfh.h"
12 enum fhctl_variant {
13 FHCTL_PLLFH_V1,
14 FHCTL_PLLFH_V2,
17 struct fhctl_offset {
18 u32 offset_hp_en;
19 u32 offset_clk_con;
20 u32 offset_rst_con;
21 u32 offset_slope0;
22 u32 offset_slope1;
23 u32 offset_cfg;
24 u32 offset_updnlmt;
25 u32 offset_dds;
26 u32 offset_dvfs;
27 u32 offset_mon;
29 const struct fhctl_offset *fhctl_get_offset_table(enum fhctl_variant v);
30 const struct fh_operation *fhctl_get_ops(void);
31 void fhctl_hw_init(struct mtk_fh *fh);
33 #endif