linux/sound/soc/mediatek/mt8365/mt8365-afe-clk.c

// SPDX-License-Identifier: GPL-2.0
/*
 * MediaTek 8365 AFE clock control
 *
 * Copyright (c) 2024 MediaTek Inc.
 * Authors: Jia Zeng <[email protected]>
 *          Alexandre Mergnat <[email protected]>
 */

#include "mt8365-afe-clk.h"
#include "mt8365-afe-common.h"
#include "mt8365-reg.h"
#include "../common/mtk-base-afe.h"
#include <linux/device.h>
#include <linux/mfd/syscon.h>

static const char *aud_clks[MT8365_CLK_NUM] =;

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)
{}

static unsigned int get_top_cg_reg(unsigned int cg_type)
{}

static unsigned int get_top_cg_mask(unsigned int cg_type)
{}

static unsigned int get_top_cg_on_val(unsigned int cg_type)
{}

static unsigned int get_top_cg_off_val(unsigned int cg_type)
{}

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)
{}

static int mt8365_afe_hd_engen_enable(struct mtk_base_afe *afe, bool apll1)
{}

static int mt8365_afe_hd_engen_disable(struct mtk_base_afe *afe, bool apll1)
{}

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)
{}