From patchwork Wed Nov 29 18:25:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 120042 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3395443qgn; Wed, 29 Nov 2017 10:27:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMZhjDJ6OYZPFDKq5wFTzPpnz6sUrhswdy/UbFX3bWk1lQFp6r8GldJpk28nTo4b3DYoUh3G X-Received: by 10.98.16.199 with SMTP id 68mr3924881pfq.182.1511980074226; Wed, 29 Nov 2017 10:27:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511980074; cv=none; d=google.com; s=arc-20160816; b=gh/9kNnsaad35txvl1v24Ib8X/DqADyTBgOSE2L/d5BD5dIjji0YA2caxfqM01HArd XRNrMmX60B4I3G6AF7t5TQkoMQZB1E1VqgaFd2wWTYD8dkVSvNKFfBpOFjnfWSPmsLXd 8ip3oQdtI2dDvKxtKkwy4mv2yJdl+RFWl2Lgetrchh8bfBqMXwwhwJ5w+EdWzcguj3ti DcYVka4T/2kRSq2CiXiMJSADODOnBUERuG6E7cVZ75RPJpRaMUkcRlaznjSbcOOGn6hj QDswJ6owJZcenHUiuUw/hmU1EmsH9y38lq2lDROHOv6w1g2jZe38+crb2yg3VYymQsSz yVUw== 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 :dkim-signature:arc-authentication-results; bh=JfCD2wWGzmL+KVyfWLUAOuMn8f6W7AALN2E9Wge7lAk=; b=lSlID6pBmouVefskVebgz0ujm9t8H3s9088PKxTyU+QdP2ypt9V4KtO1J96/emdDns +tT1UAqzg5t2FSNJqiLm5btFOcJEqvLAGrmiODh+7YPSz+2pEG1oyM3oSE6ViZSTh3nt vWYLyHwvhvoCF5C8SwBL1zJkAr5rhWNFDeFB4EAETUAARm3apCZRTJ2y11QW+T1q8khx GhgsurpUWG0LX1nMcaVqP5NuG8XpVUr+xkT6E9aCX9xD2EWMliykMirCqjmX4cDzgbkv eIH907QwG365CZNK6nhmGHtr9HryrdU3e9DPGHouomsy7SyU65Bh422xF/AyAVcu1o/Y ZpxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KnEuQZcn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p27si1635469pgc.402.2017.11.29.10.27.53; Wed, 29 Nov 2017 10:27:54 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=KnEuQZcn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752014AbdK2S1v (ORCPT + 28 others); Wed, 29 Nov 2017 13:27:51 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:45708 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbdK2S1f (ORCPT ); Wed, 29 Nov 2017 13:27:35 -0500 Received: by mail-wm0-f66.google.com with SMTP id 9so8221586wme.4 for ; Wed, 29 Nov 2017 10:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=JfCD2wWGzmL+KVyfWLUAOuMn8f6W7AALN2E9Wge7lAk=; b=KnEuQZcnCNHy1EpN4ESAKwE7MJmoRgJ+3lkxQkxPBKxMx8apaoqUb8cRMfziL3H3Fk IeXzy+6Y0u7sedj+dNiGMTRvUQ/9GR2SG7i/QhlY3y7RNEXCadstnFKK/Xkk8TbXVGXm fwUSkUpgmW2rq49RkCwxhXAHBQ2M2FtgHvSNc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JfCD2wWGzmL+KVyfWLUAOuMn8f6W7AALN2E9Wge7lAk=; b=kqrCXTZUDe8BlOkcoBaq0qPCQJ16GqT7ozD7BjQefpNyBvXmxU652aX02rqfqoP0M4 Us19Fn01Ip1tNR0Z2gXwoltTwQ/1oLmDgB/lp+huKSZTKlosMSi/cewCGUIm3cwI3Ljt PgGam3ctxC3k/FGsJohPTYQPJR5WxpxmKZwjyxg5qpmG0wpBN29tg9B2Jc1Hlw/aVHoh 38RAdTGLqb7VTf34TdO0OrgrCTEMvTAERqBl+g1XXoKINnrzlfA2KxHXVQSiYE9GEKsA KmGImu4Pnevwq7kZuEzvNf5F9HxrIMYK+4gUiTx+KaAt0aAILcbpczKEXbfhQN5PbpwP OwVQ== X-Gm-Message-State: AJaThX5yoZgZ8gUZPGsx6ry/ZjZJ1K9W2V2rGS2qINUvWjoKrUhI7fNf n8h93bfwpbGsWEp5dcvfiM5qUiOxWjE= X-Received: by 10.28.11.20 with SMTP id 20mr3587330wml.42.1511980053719; Wed, 29 Nov 2017 10:27:33 -0800 (PST) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id q140sm1967166wmd.35.2017.11.29.10.27.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Nov 2017 10:27:33 -0800 (PST) From: srinivas.kandagatla@linaro.org To: sboyd@codeaurora.org Cc: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH] clk: qcom: msm8916: Fix i2s clk rates required for mclk Date: Wed, 29 Nov 2017 18:25:25 +0000 Message-Id: <20171129182525.18603-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Srinivas Kandagatla lpaif i2s clk rates in the freq table are not accurate enough for I2S mclk. Fix the inaccurate ones and add few more clock rates that are used in LPASS audio driver. Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/gcc-msm8916.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) -- 2.15.0 diff --git a/drivers/clk/qcom/gcc-msm8916.c b/drivers/clk/qcom/gcc-msm8916.c index 3410ee68d4bc..506e0736bf92 100644 --- a/drivers/clk/qcom/gcc-msm8916.c +++ b/drivers/clk/qcom/gcc-msm8916.c @@ -1259,20 +1259,25 @@ static struct clk_branch gcc_ultaudio_ahbfabric_ixfabric_lpm_clk = { }; static const struct freq_tbl ftbl_gcc_ultaudio_lpaif_i2s_clk[] = { + F(128000, P_XO, 10, 1, 15), F(256000, P_XO, 5, 1, 15), + F(384000, P_XO, 5, 1, 10), F(512000, P_XO, 5, 2, 15), + F(576000, P_XO, 5, 3, 20), F(705600, P_GPLL1, 16, 1, 80), F(768000, P_XO, 5, 1, 5), F(800000, P_XO, 5, 5, 24), - F(1024000, P_GPLL1, 14, 1, 63), + F(1024000, P_XO, 5, 4, 15), F(1152000, P_XO, 1, 3, 50), F(1411200, P_GPLL1, 16, 1, 40), F(1536000, P_XO, 1, 2, 25), F(1600000, P_XO, 12, 0, 0), - F(2048000, P_GPLL1, 9, 1, 49), + F(1728000, P_XO, 5, 9, 20), + F(2048000, P_XO, 5, 8, 15), + F(2304000, P_XO, 5, 3, 5), F(2400000, P_XO, 8, 0, 0), F(2822400, P_GPLL1, 16, 1, 20), - F(3072000, P_GPLL1, 14, 1, 21), + F(3072000, P_XO, 5, 4, 5), F(4096000, P_GPLL1, 9, 2, 49), F(4800000, P_XO, 4, 0, 0), F(5644800, P_GPLL1, 16, 1, 10),