Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2851531imm; Sun, 3 Jun 2018 13:16:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKMi8Erywg70c+6RmusEyyVe6BCGBYxD+AmoSt82P58xTrOGNipCcQT7ZrYaQc9+c3R1Iv0 X-Received: by 2002:a17:902:a581:: with SMTP id az1-v6mr4339930plb.61.1528056980609; Sun, 03 Jun 2018 13:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528056980; cv=none; d=google.com; s=arc-20160816; b=HwFxe7Fh7QUoIb4uEjCqjYUMe5dOxmIMo09L5A5KyyPDzq0kczJFrIHIWsOB0GpW9d z8htRz55y+n+KBZAFq4OhhRwhZmOCUMOxgO/eeh+w42C7jH9bGLUerfQGGhyzEU4vpvK S5MTi+zT7Sr0eVa69gQWNs0xWl+ejaf4VJv11Ighccg+nl2N29ie9SDDZO+evg2nCkWi Pdk9hUNWngGGlnIFRyT/7W/MhhNObK6wDYL1tOQbabgL1skbUi3UUsGVIfbKjiAOxnlB p9poigbRosZimEracPYNuaw5zV2XMwpJ4P5ImLW/CbD78RmD/n4X6QVGh9XG9idMNOJJ Kf2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qZvibOwTFaynhlazXlSPzRk0sKkyXsXzWIycT0rnPWk=; b=aydXoGsLOBcwYhXEFqjSE2njz/25oS8bPrN2e7nPpiJ4tRgxXhzYJEVjTjKecDywwd pv8C0ZImMVZXVIg/XZSs0P/K2mJBNNpWT0X31vBNAnlwHtt8K2vLFiA8DSoV1UFEk9B+ Xjya4WdSiPjrJp/yIcW1eYX05/dWJ+nlUG7upy9fivRFQ49w98uDYVcd3YIc1LD5Rtwm FiuvJmybQG7WoB2LJGFdWDKRF/MTXpNHi3tWFnzZfiBdIgVV/AicY9ZNC/4vwb9dtXqM k2Cv8ariCYzkraBtaYeqIYOjYayie/m82OqZlwZ7jM+VGyqcu/yduAv16nbJFlloS4ik SlAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w1-v6si35554111pgp.10.2018.06.03.13.16.06; Sun, 03 Jun 2018 13:16:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751232AbeFCUPo (ORCPT + 99 others); Sun, 3 Jun 2018 16:15:44 -0400 Received: from smtp04.smtpout.orange.fr ([80.12.242.126]:51930 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751057AbeFCUPn (ORCPT ); Sun, 3 Jun 2018 16:15:43 -0400 Received: from belgarion.home ([90.55.202.35]) by mwinf5d27 with ME id uLFh1x00D0mKt3N03LFiLR; Sun, 03 Jun 2018 22:15:42 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Sun, 03 Jun 2018 22:15:42 +0200 X-ME-IP: 90.55.202.35 From: Robert Jarzmik To: Daniel Mack , Haojian Zhuang , Robert Jarzmik Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: pxa: add the missing AC97 clocks Date: Sun, 3 Jun 2018 22:15:39 +0200 Message-Id: <20180603201539.15704-1-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The AC97 bit clock is added as the pxa internally generated 13MHz clock. This is a consequence of the new ac97 framework. Signed-off-by: Robert Jarzmik --- arch/arm/mach-pxa/devices.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index 5a16ea74e28a..a24783a03827 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -477,6 +478,18 @@ struct platform_device pxa_device_ac97 = { void __init pxa_set_ac97_info(pxa2xx_audio_ops_t *ops) { + int ret; + + ret = clk_add_alias("ac97_clk", "pxa2xx-ac97:0", "AC97CLK", + &pxa_device_ac97.dev); + if (ret) + pr_err("PXA AC97 clock1 alias error: %d\n", ret); + + ret = clk_add_alias("ac97_clk", "pxa2xx-ac97:1", "AC97CLK", + &pxa_device_ac97.dev); + if (ret) + pr_err("PXA AC97 clock2 alias error: %d\n", ret); + pxa_register_device(&pxa_device_ac97, ops); } -- 2.11.0