public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: x86: add "mclk" alias for Baytrail/Cherrytrail
@ 2017-02-12 22:06 Pierre-Louis Bossart
  2017-02-14 19:04 ` Stephen Boyd
  0 siblings, 1 reply; 6+ messages in thread
From: Pierre-Louis Bossart @ 2017-02-12 22:06 UTC (permalink / raw)
  To: linux-clk, x86, platform-driver-x86, Stephen Boyd
  Cc: alsa-devel, Michael Turquette, Takashi Iwai, Mark Brown,
	Andy Shevchenko, Vinod Koul, Pierre-Louis Bossart

Due to timing requirements, TI and Conexant manage the audio
reference clock from their ASoC codec drivers using the "mclk"
string. This patch adds a default alias to "pmc_plt_clk_3" to
avoid Intel-specific tests in those codec drivers and use code
as-is.
"pmc_plt_clk_3" is used exclusively for audio on all known
Baytrail/CherryTrail designs and is e.g. routed on the MCLK
(pin 26) of the MinnowBoardMAX Turbot LSE connector.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---

Notes:
    This patch only applies on top of linux-next or clk-next, the
    previous clk-related patches are not yet merged in the audio
    trees

 drivers/clk/x86/clk-pmc-atom.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/clk/x86/clk-pmc-atom.c b/drivers/clk/x86/clk-pmc-atom.c
index 2b60577..ba00d27 100644
--- a/drivers/clk/x86/clk-pmc-atom.c
+++ b/drivers/clk/x86/clk-pmc-atom.c
@@ -340,6 +340,8 @@ static int plt_clk_probe(struct platform_device *pdev)
 
 	plt_clk_free_parent_names_loop(parent_names, data->nparents);
 
+	clk_add_alias("mclk", dev_name(&pdev->dev), "pmc_plt_clk_3", NULL);
+
 	platform_set_drvdata(pdev, data);
 	return 0;
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-02-16 10:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-12 22:06 [PATCH] clk: x86: add "mclk" alias for Baytrail/Cherrytrail Pierre-Louis Bossart
2017-02-14 19:04 ` Stephen Boyd
2017-02-14 19:23   ` Pierre-Louis Bossart
2017-02-16  0:56     ` Stephen Boyd
2017-02-16  2:05       ` Andy Shevchenko
2017-02-16 10:31         ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox