From patchwork Sun Feb 12 22:06:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 9568591 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 47EAF60572 for ; Sun, 12 Feb 2017 22:07:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32D5E2624A for ; Sun, 12 Feb 2017 22:07:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27A2126E81; Sun, 12 Feb 2017 22:07:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4BCF26E5D for ; Sun, 12 Feb 2017 22:07:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751571AbdBLWHR (ORCPT ); Sun, 12 Feb 2017 17:07:17 -0500 Received: from mga02.intel.com ([134.134.136.20]:60696 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbdBLWHQ (ORCPT ); Sun, 12 Feb 2017 17:07:16 -0500 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2017 14:07:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,155,1484035200"; d="scan'208";a="933077574" Received: from pbossart-mobl3.an.intel.com (HELO pbossart-mobl3.intel.com) ([10.254.31.246]) by orsmga003.jf.intel.com with ESMTP; 12 Feb 2017 14:07:14 -0800 From: Pierre-Louis Bossart To: linux-clk@vger.kernel.org, x86@kernel.org, platform-driver-x86@vger.kernel.org, Stephen Boyd Cc: alsa-devel@alsa-project.org, Michael Turquette , Takashi Iwai , Mark Brown , Andy Shevchenko , Vinod Koul , Pierre-Louis Bossart Subject: [PATCH] clk: x86: add "mclk" alias for Baytrail/Cherrytrail Date: Sun, 12 Feb 2017 16:06:52 -0600 Message-Id: <1486937212-10093-1-git-send-email-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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;