Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5076096pxj; Wed, 9 Jun 2021 08:36:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRI5SfJ9ECKgf0ZOCcwCVhSYVVld5iKdPhr4DRFmFKnBlwbmh0D0PDSLrUyy4MSScog4k7 X-Received: by 2002:a17:907:3e1a:: with SMTP id hp26mr475309ejc.77.1623253018729; Wed, 09 Jun 2021 08:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623253018; cv=none; d=google.com; s=arc-20160816; b=plgHPIRfE3cZEFKp34NkWAJkz0BNdVWsc2Uzl3/X0k240O6X2qjnXqq7Ms5GegN6pN xUV50EpsGN6FWMGe4zZM5xlSv8bUtIYSJaGo+b/U4JuqyOKL5jUQk9PR2Rs8AP2WbIFF qsJ9ftmZg0QHF/ZeAhIzLqmWRCZbSkPjHipGghgl+S/4zrhR/0hOSqPkoXcvhF4tJKao B7jybT6aNARVcDQE8bpFq30/UeotTQ3mQsETxF3yiXzOynZ4jVV1Az6X2rSZVwxWKNg5 8a3JMAmuu8EpKL2Yo+V7umoJR3z4nMFrfHEawN3Sjr9Y+pqSOsMQ0g+P1uvRLLNcM0lP 5LcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=gq7TvxXeE0jg4YMxyDC5Tot57TODaSJKeeza1vNQpTU=; b=mpFBuz3nBAgmNQ8ychhY85gcrjSrzb4Z/urjppf2CXkOggmaXYiZt/FuWrRPSO0m0m k4W4KB0GP/rEeQfmny3ayjXdF4hEEQn7kQe+kw2wTzIjTi50v7GTrRNlJyjKm17o3a7C wvASqmC3lQZYXQ2DAJzRYE4zWmdMJT1SBqGSC8M9Ow2YnYwu1FmK5k3raFzW9D9Cbrqr te3GsCup/4PLm20OJq0iJn25AdpRzo7VazU5qXnGljLNX7vV5SIBkPyt7IL/dVDhVaWk c1A+Xq9qrxG5Pvk4BOYa6VabNUUt09uXUoBlj5dLrUbzzwZwKkxpeC5gWe2rxgR7EKR2 UEiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp35si121583ejc.227.2021.06.09.08.36.34; Wed, 09 Jun 2021 08:36:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237554AbhFIOPx (ORCPT + 99 others); Wed, 9 Jun 2021 10:15:53 -0400 Received: from lucky1.263xmail.com ([211.157.147.134]:35088 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237545AbhFIOPw (ORCPT ); Wed, 9 Jun 2021 10:15:52 -0400 Received: from localhost (unknown [192.168.167.235]) by lucky1.263xmail.com (Postfix) with ESMTP id 8762BC86DC; Wed, 9 Jun 2021 22:13:51 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P31748T140095021577984S1623248030099962_; Wed, 09 Jun 2021 22:13:52 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: jon.lin@rock-chips.com X-SENDER: jon.lin@rock-chips.com X-LOGIN-NAME: jon.lin@rock-chips.com X-FST-TO: linux-spi@vger.kernel.org X-RCPT-COUNT: 20 X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: Jon Lin To: linux-spi@vger.kernel.org Cc: jon.lin@rock-chips.com, broonie@kernel.org, robh+dt@kernel.org, heiko@sntech.de, jbx6244@gmail.com, hjc@rock-chips.com, yifeng.zhao@rock-chips.com, sugar.zhang@rock-chips.com, linux-rockchip@lists.infradead.org, linux-mtd@lists.infradead.org, p.yadav@ti.com, macroalpha82@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org, Chris Morgan Subject: [PATCH v7 5/9] clk: rockchip: Add support for hclk_sfc on rk3036 Date: Wed, 9 Jun 2021 22:13:44 +0800 Message-Id: <20210609141348.19178-1-jon.lin@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210609140412.16058-1-jon.lin@rock-chips.com> References: <20210609140412.16058-1-jon.lin@rock-chips.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Morgan Add support for the bus clock for the serial flash controller on the rk3036. Taken from the Rockchip BSP kernel but not tested on real hardware (as I lack a 3036 based SoC to test). Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None Changes in v1: None drivers/clk/rockchip/clk-rk3036.c | 2 +- include/dt-bindings/clock/rk3036-cru.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3036.c b/drivers/clk/rockchip/clk-rk3036.c index 1986856d94b2..828af715d92e 100644 --- a/drivers/clk/rockchip/clk-rk3036.c +++ b/drivers/clk/rockchip/clk-rk3036.c @@ -404,7 +404,7 @@ static struct rockchip_clk_branch rk3036_clk_branches[] __initdata = { GATE(HCLK_OTG0, "hclk_otg0", "hclk_peri", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(5), 13, GFLAGS), GATE(HCLK_OTG1, "hclk_otg1", "hclk_peri", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(7), 3, GFLAGS), GATE(HCLK_I2S, "hclk_i2s", "hclk_peri", 0, RK2928_CLKGATE_CON(7), 2, GFLAGS), - GATE(0, "hclk_sfc", "hclk_peri", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(3), 14, GFLAGS), + GATE(HCLK_SFC, "hclk_sfc", "hclk_peri", 0, RK2928_CLKGATE_CON(3), 14, GFLAGS), GATE(HCLK_MAC, "hclk_mac", "hclk_peri", 0, RK2928_CLKGATE_CON(3), 5, GFLAGS), /* pclk_peri gates */ diff --git a/include/dt-bindings/clock/rk3036-cru.h b/include/dt-bindings/clock/rk3036-cru.h index 35a5a01f9697..a96a9870ad59 100644 --- a/include/dt-bindings/clock/rk3036-cru.h +++ b/include/dt-bindings/clock/rk3036-cru.h @@ -81,6 +81,7 @@ #define HCLK_OTG0 449 #define HCLK_OTG1 450 #define HCLK_NANDC 453 +#define HCLK_SFC 454 #define HCLK_SDMMC 456 #define HCLK_SDIO 457 #define HCLK_EMMC 459 -- 2.17.1