From: Frank.Li@freescale.com (Frank.Li at freescale.com)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 6/9] ARM: imx: add gpt system timer support for imx7d
Date: Fri, 17 Apr 2015 03:17:37 +0800 [thread overview]
Message-ID: <1429211860-14438-7-git-send-email-Frank.Li@freescale.com> (raw)
In-Reply-To: <1429211860-14438-1-git-send-email-Frank.Li@freescale.com>
From: Frank Li <Frank.Li@freescale.com>
Add GPT system timer support for i.MX7D, it has same hardware
as i.MX6DL.
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: Anson Huang <b20788@freescale.com>
---
arch/arm/mach-imx/time.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/time.c b/arch/arm/mach-imx/time.c
index 15d18e1..7c1d8a3 100644
--- a/arch/arm/mach-imx/time.c
+++ b/arch/arm/mach-imx/time.c
@@ -321,7 +321,7 @@ static void __init _mxc_timer_init(int irq,
tctl_val = V2_TCTL_FRR | V2_TCTL_WAITEN | MXC_TCTL_TEN;
if (clk_get_rate(clk_per) == V2_TIMER_RATE_OSC_DIV8) {
tctl_val |= V2_TCTL_CLK_OSC_DIV8;
- if (cpu_is_imx6dl() || cpu_is_imx6sx()) {
+ if (cpu_is_imx6dl() || cpu_is_imx6sx() || cpu_is_imx7d()) {
/* 24 / 8 = 3 MHz */
__raw_writel(7 << V2_TPRER_PRE24M,
timer_base + MXC_TPRER);
@@ -383,3 +383,4 @@ CLOCKSOURCE_OF_DECLARE(mx53_timer, "fsl,imx53-gpt", mxc_timer_init_dt);
CLOCKSOURCE_OF_DECLARE(mx6q_timer, "fsl,imx6q-gpt", mxc_timer_init_dt);
CLOCKSOURCE_OF_DECLARE(mx6sl_timer, "fsl,imx6sl-gpt", mxc_timer_init_dt);
CLOCKSOURCE_OF_DECLARE(mx6sx_timer, "fsl,imx6sx-gpt", mxc_timer_init_dt);
+CLOCKSOURCE_OF_DECLARE(mx7d_timer, "fsl,imx7d-gpt", mxc_timer_init_dt);
--
1.9.1
next prev parent reply other threads:[~2015-04-16 19:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-16 19:17 [PATCH v2 0/9] Add Freescale i.mx7d support Frank.Li at freescale.com
2015-04-16 19:17 ` [PATCH v2 2/9] ARM: dts: add clock include file to support imx7d Frank.Li at freescale.com
2015-04-16 19:17 ` [PATCH v2 3/9] ARM: dts: add imx7d soc dtsi file Frank.Li at freescale.com
2015-04-16 20:15 ` Nathan Lynch
2015-04-17 20:53 ` Zhi Li
2015-04-16 19:17 ` [PATCH v2 4/9] pinctrl: add imx7d support Frank.Li at freescale.com
2015-04-16 19:44 ` Fabio Estevam
2015-04-16 19:17 ` [PATCH v2 5/9] ARM: imx: add msl support for imx7d Frank.Li at freescale.com
2015-04-17 23:04 ` Russell King - ARM Linux
2015-04-20 15:55 ` Zhi Li
2015-04-20 18:28 ` Robert Schwebel
2015-04-21 8:48 ` Russell King - ARM Linux
2015-04-16 19:17 ` Frank.Li at freescale.com [this message]
2015-04-16 19:17 ` [PATCH v2 7/9] ARM: imx: add imx7d clk tree support Frank.Li at freescale.com
2015-04-16 19:17 ` [PATCH v2 8/9] arm: dts: add imx7d-sdb support Frank.Li at freescale.com
2015-04-16 19:43 ` Fabio Estevam
2015-04-16 19:17 ` [PATCH v2 9/9] ARM: config: imx_v6_v7_defconfig add imx7d support Frank.Li at freescale.com
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=1429211860-14438-7-git-send-email-Frank.Li@freescale.com \
--to=frank.li@freescale.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).