Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
33 lines
1.4 KiB
C
33 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0
|
|
*
|
|
* MediaTek 8365 AFE clock control definitions
|
|
*
|
|
* Copyright (c) 2024 MediaTek Inc.
|
|
* Authors: Jia Zeng <jia.zeng@mediatek.com>
|
|
* Alexandre Mergnat <amergnat@baylibre.com>
|
|
*/
|
|
|
|
#ifndef _MT8365_AFE_UTILS_H_
|
|
#define _MT8365_AFE_UTILS_H_
|
|
|
|
struct mtk_base_afe;
|
|
struct clk;
|
|
|
|
int mt8365_afe_init_audio_clk(struct mtk_base_afe *afe);
|
|
void mt8365_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk);
|
|
int mt8365_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk, unsigned int rate);
|
|
int mt8365_afe_set_clk_parent(struct mtk_base_afe *afe, struct clk *clk, struct clk *parent);
|
|
int mt8365_afe_enable_top_cg(struct mtk_base_afe *afe, unsigned int cg_type);
|
|
int mt8365_afe_disable_top_cg(struct mtk_base_afe *afe, unsigned int cg_type);
|
|
int mt8365_afe_enable_main_clk(struct mtk_base_afe *afe);
|
|
int mt8365_afe_disable_main_clk(struct mtk_base_afe *afe);
|
|
int mt8365_afe_emi_clk_on(struct mtk_base_afe *afe);
|
|
int mt8365_afe_emi_clk_off(struct mtk_base_afe *afe);
|
|
int mt8365_afe_enable_afe_on(struct mtk_base_afe *afe);
|
|
int mt8365_afe_disable_afe_on(struct mtk_base_afe *afe);
|
|
int mt8365_afe_enable_apll_tuner_cfg(struct mtk_base_afe *afe, unsigned int apll);
|
|
int mt8365_afe_disable_apll_tuner_cfg(struct mtk_base_afe *afe, unsigned int apll);
|
|
int mt8365_afe_enable_apll_associated_cfg(struct mtk_base_afe *afe, unsigned int apll);
|
|
int mt8365_afe_disable_apll_associated_cfg(struct mtk_base_afe *afe, unsigned int apll);
|
|
#endif
|