Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1616778ybv; Fri, 21 Feb 2020 00:21:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwhXZP3rY1z2CJxML3j7IpdpOXH8S6+s/+w2BPAonUaY2K/N0wYgJ3LlNEheccx2G3dgOY4 X-Received: by 2002:aca:3114:: with SMTP id x20mr1002290oix.121.1582273301571; Fri, 21 Feb 2020 00:21:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582273301; cv=none; d=google.com; s=arc-20160816; b=E4T2vvFxnDX7C0QM9yGCb5s0YGJzR0XxUT4CpliFHuwZ2lhm0nEvX9d+INfWlilt+d gMmuzflfr529graJj5Z+K+RIB365UgamTFRm8BvgVEcPipo8evpjRaQs1XXHc6p/87hD tieOZCZndnb8YsmzYEGKFPKSyQFYLL+lm/aGZkv7foG56rkjwy/G4SBXWQo3MHqPSwNa iy5hvY2jRdcQ5iC+2W2EfQQ5vNxW3dPHnl++JNI9B5vz5mIl0I8AoXxFfJ7lu6U1dnl5 Fc3Qj492ta+D7JwpnQNmvZOm5QPxa7aIt9TKNF8c6y3F82CEvFqDfkztLR7IsHIBYVzM EZ1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TzIhZoh7qQLX/1CZXQ/QYmjM+xU64Tt9MZ0g/6MW1Ec=; b=Vtc/WIEBJLhQ6nTZDr3ZkeMuuE5wfCvHjv33hKzU+SLkoSmPF/uXcsUnzzJKqphSkB A1PqQ7gcOH0rQ3kJCreSv99K179p7KWIT5dnSG6YZvnt38KKSiDD+3ukKXnSWAKBwyhh 6uqlF6g2Prd3GF1D77aO7S1wadxt3046Gtw93q4yWL8cOHt0x46FaKvh2CJTGOSoQJmI 5VQ/x9jXqZOX4IkMuOYktQ60zRZkAXm6ac36TAa7p7HhIVWdHZjNEqoxpfysl+pPEu39 JY0vBQWBadGeJrvtC27+KLOA/HOq6eeH5O0e6iEfTm05lmNycHj8Wo9LBe+koi+/q5CB SdJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2QUg+Zvm; 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 w4si1178859otl.214.2020.02.21.00.21.29; Fri, 21 Feb 2020 00:21:41 -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=@kernel.org header.s=default header.b=2QUg+Zvm; 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 S1732507AbgBUIUp (ORCPT + 99 others); Fri, 21 Feb 2020 03:20:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:59718 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732311AbgBUIUf (ORCPT ); Fri, 21 Feb 2020 03:20:35 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 76FDB2469F; Fri, 21 Feb 2020 08:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582273234; bh=Ag7cfjgAZDTtorJGvLhjabkF2VDVmnJ8PY2cP1WcwfE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2QUg+Zvm/Lmy2c7UFsW9IBNEhu/Iq27vnkItIkJgELIEoWYoe/hwvumbjBmegahNK 3C/O/7gxWP0/6CWdNjSx4xwHhvqsiLABxRUv2Rpq8m3rRv2zdU1PaRiiXIzOmbjVZQ OOIank0pbU27KZRHieQwjyah+nIqzzEIruXSUYiw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kunihiko Hayashi , Masahiro Yamada , Stephen Boyd , Sasha Levin Subject: [PATCH 4.19 096/191] clk: uniphier: Add SCSSI clock gate for each channel Date: Fri, 21 Feb 2020 08:41:09 +0100 Message-Id: <20200221072302.736941484@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072250.732482588@linuxfoundation.org> References: <20200221072250.732482588@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kunihiko Hayashi [ Upstream commit 1ec09a2ec67a0baa46a3ccac041dbcdbc6db2cb9 ] 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. Fixes: ff388ee36516 ("clk: uniphier: add clock frequency support for SPI") Signed-off-by: Kunihiko Hayashi Acked-by: Masahiro Yamada Link: https://lkml.kernel.org/r/1577410925-22021-1-git-send-email-hayashi.kunihiko@socionext.com Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/uniphier/clk-uniphier-peri.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/clk/uniphier/clk-uniphier-peri.c b/drivers/clk/uniphier/clk-uniphier-peri.c index 89b3ac378b3f9..8b75dc116a98c 100644 --- a/drivers/clk/uniphier/clk-uniphier-peri.c +++ b/drivers/clk/uniphier/clk-uniphier-peri.c @@ -27,8 +27,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) @@ -44,7 +44,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 */ } }; @@ -60,7 +60,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 */ } }; -- 2.20.1