d7964de8a8
To implement frequency hopping and spread spectrum clocking function, we introduce new clock type and APIs to handle FHCTL hardware. Co-developed-by: Edward-JW Yang <edward-jw.yang@mediatek.com> Signed-off-by: Edward-JW Yang <edward-jw.yang@mediatek.com> Signed-off-by: Johnson Wang <johnson.wang@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20221121122957.21611-4-johnson.wang@mediatek.com Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
27 lines
557 B
C
27 lines
557 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2022 MediaTek Inc.
|
|
* Author: Edward-JW Yang <edward-jw.yang@mediatek.com>
|
|
*/
|
|
|
|
#ifndef __CLK_FHCTL_H
|
|
#define __CLK_FHCTL_H
|
|
|
|
struct fhctl_offset {
|
|
u32 offset_hp_en;
|
|
u32 offset_clk_con;
|
|
u32 offset_rst_con;
|
|
u32 offset_slope0;
|
|
u32 offset_slope1;
|
|
u32 offset_cfg;
|
|
u32 offset_updnlmt;
|
|
u32 offset_dds;
|
|
u32 offset_dvfs;
|
|
u32 offset_mon;
|
|
};
|
|
const struct fhctl_offset *fhctl_get_offset_table(void);
|
|
const struct fh_operation *fhctl_get_ops(void);
|
|
void fhctl_hw_init(struct mtk_fh *fh);
|
|
|
|
#endif
|