From 68725bb2bf995ed031cc4e39785014310960a4bb Mon Sep 17 00:00:00 2001 From: Rohit kumar Date: Fri, 23 Nov 2018 16:52:58 +0530 Subject: [PATCH] ASoC: audio-ext-clk: Add support for external pll clk Add clock node to support external pll clock source. Change-Id: Ic524f61933d3834896bd113c60a0499915794d0d Signed-off-by: Rohit kumar --- asoc/codecs/audio-ext-clk-up.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/asoc/codecs/audio-ext-clk-up.c b/asoc/codecs/audio-ext-clk-up.c index 0d95ff1041ea..e86b30eed11a 100644 --- a/asoc/codecs/audio-ext-clk-up.c +++ b/asoc/codecs/audio-ext-clk-up.c @@ -29,7 +29,8 @@ enum { AUDIO_EXT_CLK_LPASS7, AUDIO_EXT_CLK_LPASS_NPA_RSC_ISLAND, AUDIO_EXT_CLK_LPASS_MAX, - AUDIO_EXT_CLK_MAX = AUDIO_EXT_CLK_LPASS_MAX, + AUDIO_EXT_CLK_EXTERNAL_PLL = AUDIO_EXT_CLK_LPASS_MAX, + AUDIO_EXT_CLK_MAX, }; struct pinctrl_info { @@ -325,6 +326,17 @@ static struct audio_ext_clk audio_clk_array[] = { }, }, }, + { + .pnctrl_info = {NULL}, + .fact = { + .mult = 1, + .div = 1, + .hw.init = &(struct clk_init_data){ + .name = "audio_external_pll_clk", + .ops = &audio_ext_clk_ops, + }, + }, + }, }; static int audio_get_pinctrl(struct platform_device *pdev)