From: John Stultz <john.stultz@linaro.org>
To: lkml <linux-kernel@vger.kernel.org>, arm@kernel.org
Cc: Zhangfei Gao <zhangfei.gao@linaro.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Wei Xu <xuwei5@hisilicon.com>, Guodong Xu <guodong.xu@linaro.org>,
John Stultz <john.stultz@linaro.org>
Subject: [PATCH 1/2 v3] clk: hi6220: Add RTC clock for pl031
Date: Wed, 29 Jun 2016 17:48:44 -0700 [thread overview]
Message-ID: <1467247725-3665-2-git-send-email-john.stultz@linaro.org> (raw)
In-Reply-To: <1467247725-3665-1-git-send-email-john.stultz@linaro.org>
From: Zhangfei Gao <zhangfei.gao@linaro.org>
Adds clk support for the pl031 RTC on hi6220
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Wei Xu <xuwei5@hisilicon.com>
Cc: Guodong Xu <guodong.xu@linaro.org>
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
[jstultz: Forward ported, tweaked commit description]
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
v3: No changes from v1, version noted just to be consistent
with the other patch in this patchset.
drivers/clk/hisilicon/clk-hi6220.c | 2 ++
include/dt-bindings/clock/hi6220-clock.h | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/hisilicon/clk-hi6220.c b/drivers/clk/hisilicon/clk-hi6220.c
index f02cb41..76de9a7 100644
--- a/drivers/clk/hisilicon/clk-hi6220.c
+++ b/drivers/clk/hisilicon/clk-hi6220.c
@@ -68,6 +68,8 @@ static struct hisi_gate_clock hi6220_separated_gate_clks_ao[] __initdata = {
{ HI6220_TIMER7_PCLK, "timer7_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 22, 0, },
{ HI6220_TIMER8_PCLK, "timer8_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 23, 0, },
{ HI6220_UART0_PCLK, "uart0_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 24, 0, },
+ { HI6220_RTC0_PCLK, "rtc0_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 25, 0, },
+ { HI6220_RTC1_PCLK, "rtc1_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 26, 0, },
};
static void __init hi6220_clk_ao_init(struct device_node *np)
diff --git a/include/dt-bindings/clock/hi6220-clock.h b/include/dt-bindings/clock/hi6220-clock.h
index 70ee383..6b03c84 100644
--- a/include/dt-bindings/clock/hi6220-clock.h
+++ b/include/dt-bindings/clock/hi6220-clock.h
@@ -55,8 +55,9 @@
#define HI6220_TIMER7_PCLK 34
#define HI6220_TIMER8_PCLK 35
#define HI6220_UART0_PCLK 36
-
-#define HI6220_AO_NR_CLKS 37
+#define HI6220_RTC0_PCLK 37
+#define HI6220_RTC1_PCLK 38
+#define HI6220_AO_NR_CLKS 39
/* clk in Hi6220 systrl */
/* gate clock */
--
1.9.1
next prev parent reply other threads:[~2016-06-30 0:55 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-30 0:48 [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 John Stultz
2016-06-30 0:48 ` John Stultz [this message]
2016-06-30 19:15 ` [PATCH 1/2 v3] clk: hi6220: Add RTC clock for pl031 Stephen Boyd
2016-06-30 19:23 ` John Stultz
2016-06-30 0:48 ` [PATCH 2/2 v3] arm64: dts: hi6220: Add pl031 RTC support John Stultz
2016-06-30 15:12 ` [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 Wei Xu
2016-07-06 5:22 ` Olof Johansson
2016-07-06 6:55 ` John Stultz
2016-07-06 7:04 ` Olof Johansson
2016-07-06 7:20 ` John Stultz
2016-07-06 7:38 ` Arnd Bergmann
2016-07-06 8:13 ` Wei Xu
2016-07-12 1:03 ` John Stultz
2016-07-07 0:19 ` Michael Turquette
2016-07-07 8:13 ` Arnd Bergmann
[not found] ` <146794382979.73491.3322475351079454720@resonance>
2016-07-11 20:21 ` Arnd Bergmann
[not found] ` <146827441381.73491.4865692343236492728@resonance>
2016-07-12 8:51 ` Arnd Bergmann
[not found] ` <146834751937.73491.12265160509757545340@resonance>
2016-07-14 14:30 ` Arnd Bergmann
2016-07-07 0:58 ` John Stultz
2016-07-07 8:22 ` Arnd Bergmann
2016-07-08 2:21 ` Michael Turquette
2016-07-15 8:06 ` Arnd Bergmann
2016-07-11 1:30 ` Guodong Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1467247725-3665-2-git-send-email-john.stultz@linaro.org \
--to=john.stultz@linaro.org \
--cc=arm@kernel.org \
--cc=guodong.xu@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=xuwei5@hisilicon.com \
--cc=zhangfei.gao@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome