From patchwork Tue Nov 20 11:14:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 151572 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp471367ljp; Tue, 20 Nov 2018 03:15:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/XpRfPMCBNNFlzD4JW9k6d9h1pUD6p8bSN5D9iHEi1Fj+ipd/rsiODK4UYUV8PwRlbaCdBw X-Received: by 2002:a65:434d:: with SMTP id k13mr1490554pgq.269.1542712501440; Tue, 20 Nov 2018 03:15:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542712501; cv=none; d=google.com; s=arc-20160816; b=GCssGbTNLMUSjH4p9Ai5eWBOKhQ/4+iyrM9MTu+cOQ4D76fdR7mgxff2/h/I3UKhIw ttyJ15q/zoeeH9h1UQMjw/Ug8JZl/QVj3vorDzjTw40k6MTTS4GuB/0a/jwWTIfHzwCj A16fvHIQRVmhfIipisg0Wd6tI7Zg8MljyJ/8dqjxdwygJD/HUyfy7pAAPImFfUktMn6h 2pMskX6idO4r3yFfSTy2FxXvWewyMp6I3kr1iLTBHthiDvcGtsRsMyUc+oV5l43Jm6UH XBd8O5U/wpcqEKEK4ZAXdQBIH6AroTZraEHf7LBQeveCUOS5YLDpD3AKDKl6I1HkeNGF ACOw== 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; bh=xZcEPIfg4frvh5Hs0xnUDMuN5+SH2Ev3SNI6h8iKwZs=; b=mBju0Y+IHE0Yvmp2D6iGyoPKUNw1iadC9TaV5cDDsVHKGyH4WpfnROLijh3KA+LxkI YUbfbgdYC5cFJsrwfGEdLjsJz1v0CZeMg77RNrZ7Po3MBzU1K/8/Hl40g6QF9FmRi18Z 3DWXgF7u1zDBRpzWcwDu5NNAPW/M2RdCRoufV48mWwMymiN7b7fd76d3kAKc7KmHggGa ghEd+PIm07kwCsduf/oPBPZ1jEljGe5PfWriYS6+O1Y4zA4ZII2xT7LTeNseDWE9p2Fh CGo2ASgpjQydom02B23fdsuLS+02La50eeX/IYczndmP15szTnBVj6NLvc+h8Ms/mn5a Ghvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ae03QBU+; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 g187si17485754pfc.43.2018.11.20.03.15.01; Tue, 20 Nov 2018 03:15:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=Ae03QBU+; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1728411AbeKTVnh (ORCPT + 15 others); Tue, 20 Nov 2018 16:43:37 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42954 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728352AbeKTVng (ORCPT ); Tue, 20 Nov 2018 16:43:36 -0500 Received: by mail-wr1-f67.google.com with SMTP id q18so1512363wrx.9 for ; Tue, 20 Nov 2018 03:14:59 -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=xZcEPIfg4frvh5Hs0xnUDMuN5+SH2Ev3SNI6h8iKwZs=; b=Ae03QBU+GQwGkbonnlUfPhiDmDATEFd1gAYOd4U2kdIAyJm9PBnC1bHoA9+6S49AR7 Q8yVGJz378/f/s4vsSKJHKkNUFJgP/g0k5XUo1fDiQqT7berX0kJk9hBZ61Q6zA5XfJz wXyyWSodb4lKnyZDznTUVXYmIKTWwjDyK1UGI= 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=xZcEPIfg4frvh5Hs0xnUDMuN5+SH2Ev3SNI6h8iKwZs=; b=jnZDHIZabR6wzj1QxmnDHt9RXAPH6Fdw0jgMZSbSW2KXW7mvKrWJ6TkZtiVR6YKPcw 6SK4ie8GL/TkFfMQG2jnD+V9tS70/TblnEp7cDqJ/7q1JLrz4V2pSpivTrIyWJGiAzhJ dsSCJUbLclm28qjF2ez7YeQQ1o0Wm1oFQKSBJCh8HpB7+p9mTZtuFYl1RaGYeZV0ub3C qCxfBOZCTR/mkn3uM/ujSHjVhGN280rwcqaPwLlrq3d8MvZsvVG8rLbQATsBT6e1Qrdd E/tMA9whyCpgYmkRY3y26Mxc/HdoiH9otjkkBVMphCKdQ4Rar5+uFMMiSajU/lH9Yf6L jFxQ== X-Gm-Message-State: AA+aEWb76HHhEDxA7lWB1Sue/7GVPJjlgRQ8Y0hz2WS8iYmns7xrq7kH RcjydOukereggvcuoMMzwAu0nA== X-Received: by 2002:adf:ae41:: with SMTP id u1mr1510793wrd.20.1542712498693; Tue, 20 Nov 2018 03:14:58 -0800 (PST) Received: from lpoulain-ThinkPad-T470p.home (atoulouse-654-1-394-222.w90-55.abo.wanadoo.fr. [90.55.193.222]) by smtp.gmail.com with ESMTPSA id q3sm13222795wrn.84.2018.11.20.03.14.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Nov 2018 03:14:57 -0800 (PST) From: Loic Poulain To: andy.gross@linaro.org, david.brown@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Loic Poulain Subject: [PATCH] clk: qcom: msm8916: Additional clock rates for spi Date: Tue, 20 Nov 2018 12:14:56 +0100 Message-Id: <1542712496-24941-1-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add SPI friendly clock rates to the spi freq table. Today it's not possible to use SPI at lower than 960Khz. This patch adds 100/250/500/1000 khz configs to the table. Signed-off-by: Loic Poulain --- drivers/clk/qcom/gcc-msm8916.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 diff --git a/drivers/clk/qcom/gcc-msm8916.c b/drivers/clk/qcom/gcc-msm8916.c index ac2b0aa..7d9647c 100644 --- a/drivers/clk/qcom/gcc-msm8916.c +++ b/drivers/clk/qcom/gcc-msm8916.c @@ -544,7 +544,11 @@ static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src = { }; static const struct freq_tbl ftbl_gcc_blsp1_qup1_6_spi_apps_clk[] = { + F(100000, P_XO, 16, 2, 24), + F(250000, P_XO, 16, 5, 24), + F(500000, P_XO, 8, 5, 24), F(960000, P_XO, 10, 1, 2), + F(1000000, P_XO, 4, 5, 24), F(4800000, P_XO, 4, 0, 0), F(9600000, P_XO, 2, 0, 0), F(16000000, P_GPLL0, 10, 1, 5),