From patchwork Fri Nov 29 04:16:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 180471 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp984424ile; Thu, 28 Nov 2019 20:16:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyqKMan1eONnKu21h18WWYeddH3xeKisre2A/ZN1aZFCmwYgXvfam5zXHFQDoZSIvquE4Hg X-Received: by 2002:a50:9b0b:: with SMTP id o11mr12013623edi.78.1575000989493; Thu, 28 Nov 2019 20:16:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575000989; cv=none; d=google.com; s=arc-20160816; b=QgK2jBcVQAFxMN+1lg1CpCsDMvg7nFA8s4zu0SSLafbybZdSx0gluBxoEbTRfGnvj2 F87RN2dPolu8ah2NN77IiA4qG++vMpcdbMrAWx8BlRUy+Ays1TpDKouuypg4xHCSucIb CZo8fcnwv26Gx0jXOaZpB5sM5duTaKyRtN+i503U1ni0wJViBis2Sjnfj3PGMJeU8kQu eybc02d4Q5QQIdJkpnqYiaHvGMpO8aqHsOb/FpeI+qEsELZt8PjW9nCf7ztkDwb/L6UX haar6q1lWrmmgA0Z6lSbq2A2SXvX7AetNrvtG+rhI4kKFf43YO2oABFtgovI84bCV8b/ 6qzg== 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; bh=UQ3D5+rqMp6ylSdEayiqDkWNDeifx7PozdrOYSGX6iM=; b=vbwuJ4tuuB+6qtP1sTrbBhFDhFweN06+MCakOaWdUJBFONLc/3bDk6RcOxWjxXXTaE FNjONC/t5liu2QjkqYwsSHYWgvALKytlJgqvA3jNMENGAxQoRECTBCTToCmU1ipmmjCz WjFHRp8Ix7u91P4i7LtTFeyjRWnd8KpDAOOm8ZEUWb9MMc9ULSPqyyi8AOA3BxHMjC30 LZ3HTy7DWF+cMDym5tUAhO9pQ/FiDF9U3yCzhlvtt7gtfouC43zezi861iWpQp7IIR23 bJrjjz/JQKCItkYDAyO51Ye2+GAsIn8lgWeVx2aC2+RfIL7VqqP45auFcUowp0L0iHEz 1Lhw== 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 k23si13264558ejd.176.2019.11.28.20.16.28; Thu, 28 Nov 2019 20:16:29 -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; 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 S1726987AbfK2EQY (ORCPT + 27 others); Thu, 28 Nov 2019 23:16:24 -0500 Received: from mx.socionext.com ([202.248.49.38]:23322 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726764AbfK2EQY (ORCPT ); Thu, 28 Nov 2019 23:16:24 -0500 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 29 Nov 2019 13:16:21 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id DA8A3603AB; Fri, 29 Nov 2019 13:16:21 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Fri, 29 Nov 2019 13:16:44 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id A00441A0006; Fri, 29 Nov 2019 13:16:21 +0900 (JST) From: Kunihiko Hayashi To: Michael Turquette , Stephen Boyd , Masahiro Yamada Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH] clk: uniphier: Add SCSSI clock gate for each channel Date: Fri, 29 Nov 2019 13:16:08 +0900 Message-Id: <1575000968-19434-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SCSSI has clock gates for each channel in the SoCs newer than Pro4, so this adds missing clock gates for channel 1, 2 and 3. And more, this moves MCSSI clock ID after SCSSI. Signed-off-by: Kunihiko Hayashi --- drivers/clk/uniphier/clk-uniphier-peri.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) -- 2.7.4 Acked-by: Masahiro Yamada diff --git a/drivers/clk/uniphier/clk-uniphier-peri.c b/drivers/clk/uniphier/clk-uniphier-peri.c index 9caa529..3e32db9 100644 --- a/drivers/clk/uniphier/clk-uniphier-peri.c +++ b/drivers/clk/uniphier/clk-uniphier-peri.c @@ -18,8 +18,8 @@ #define UNIPHIER_PERI_CLK_FI2C(idx, ch) \ UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c", 0x24, 24 + (ch)) -#define UNIPHIER_PERI_CLK_SCSSI(idx) \ - UNIPHIER_CLK_GATE("scssi", (idx), "spi", 0x20, 17) +#define UNIPHIER_PERI_CLK_SCSSI(idx, ch) \ + UNIPHIER_CLK_GATE("scssi" #ch, (idx), "spi", 0x20, 17 + (ch)) #define UNIPHIER_PERI_CLK_MCSSI(idx) \ UNIPHIER_CLK_GATE("mcssi", (idx), "spi", 0x24, 14) @@ -35,7 +35,7 @@ const struct uniphier_clk_data uniphier_ld4_peri_clk_data[] = { UNIPHIER_PERI_CLK_I2C(6, 2), UNIPHIER_PERI_CLK_I2C(7, 3), UNIPHIER_PERI_CLK_I2C(8, 4), - UNIPHIER_PERI_CLK_SCSSI(11), + UNIPHIER_PERI_CLK_SCSSI(11, 0), { /* sentinel */ } }; @@ -51,7 +51,10 @@ const struct uniphier_clk_data uniphier_pro4_peri_clk_data[] = { UNIPHIER_PERI_CLK_FI2C(8, 4), UNIPHIER_PERI_CLK_FI2C(9, 5), UNIPHIER_PERI_CLK_FI2C(10, 6), - UNIPHIER_PERI_CLK_SCSSI(11), - UNIPHIER_PERI_CLK_MCSSI(12), + UNIPHIER_PERI_CLK_SCSSI(11, 0), + UNIPHIER_PERI_CLK_SCSSI(12, 1), + UNIPHIER_PERI_CLK_SCSSI(13, 2), + UNIPHIER_PERI_CLK_SCSSI(14, 3), + UNIPHIER_PERI_CLK_MCSSI(15), { /* sentinel */ } };