Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3228956pxj; Mon, 7 Jun 2021 05:46:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb6mIViLJXUUUbwqdYYSBEKEalC+lg/QW3SC0pjG7ywgQIQiZo/+te4NiUFpAaSZWewEK7 X-Received: by 2002:a17:906:2a8e:: with SMTP id l14mr17537837eje.549.1623069972280; Mon, 07 Jun 2021 05:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623069972; cv=none; d=google.com; s=arc-20160816; b=JC6u2G/XkJvmgW3KXqQUYWEpZQ8HKNc0hhBrZqVfw05cHpBTcIEOzd5d0ss21SC/1W Dajant6EFZzD5Kqa0t6RGVg+5ZijJRT2qqiRKMaj7kYRvOVixikl8cSJFOlZ5lfzZs8R rONNjvaY3xcvUV4muYvw/jpiGCKKuXHfHVySwcAcYUesHcupn5mFAeKTOd0bBeykOWom w94ZpKt5TjLIIaS33PV4DH1a+5cU7ZY7C8RUhnUY8FfL9Xl3HY56GhbvEu4LDnhgv4Ur IdeURtnEbFM5TDBY9UH6+pXn4esmysEm4dq2lzB1g43tCMi5dowKr8aoByBAfV7vV3nh 1zsg== 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=BFHbWgjImkOCIugQhkJAwt2b0lLjLvPY3WDEdyTBzTY=; b=bDuvfuCOMDT0oAc3WluzXfwrsjH3iBx6iY0bPyYc9Nf4M/theKXGH2y15EziN+lv6J 92DkzrrXb2OZoXcx+/Aq1dJb32qhRknK1ueUFumWxxVP+f4mtoZilSBFhWOqzy1ccTE1 40mVAnpPYrKNcsBVOJ/yTM+wMrG5IYwo1tnc75eRsgftsWuqTNWhLIQNNxvlLKOTTcZT WhudMxNha7IBnc4x3XZztGmsHvKvsg02xpp7xyFJ8YnyGFm/Elr39svSSN2maJr1fhQK lQOWsjja2IFLtd+61xapus4lQmncP5FvFVJymS2VSlG3lX3nxPLtGUJdpVkkwVASGG6x oSJg== 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 x5si12926809edq.391.2021.06.07.05.45.49; Mon, 07 Jun 2021 05:46:12 -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 S231164AbhFGMpi (ORCPT + 99 others); Mon, 7 Jun 2021 08:45:38 -0400 Received: from lucky1.263xmail.com ([211.157.147.131]:37214 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230454AbhFGMpc (ORCPT ); Mon, 7 Jun 2021 08:45:32 -0400 Received: from localhost (unknown [192.168.167.16]) by lucky1.263xmail.com (Postfix) with ESMTP id EF557BA627; Mon, 7 Jun 2021 20:43:13 +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 P32529T140357073352448S1623069785962833_; Mon, 07 Jun 2021 20:43:14 +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: 17 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, Chris Morgan Subject: [PATCH v5 4/8] clk: rockchip: Add support for hclk_sfc on rk3036 Date: Mon, 7 Jun 2021 20:42:59 +0800 Message-Id: <20210607124303.22393-5-jon.lin@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210607124303.22393-1-jon.lin@rock-chips.com> References: <20210607124303.22393-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 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 91d56ad45817..ebb628733f6d 100644 --- a/drivers/clk/rockchip/clk-rk3036.c +++ b/drivers/clk/rockchip/clk-rk3036.c @@ -403,7 +403,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", CLK_IGNORE_UNUSED, 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