From: "Philip, Avinash" <avinashphilip@ti.com>
To: "thierry.reding@avionic-design.de"
<thierry.reding@avionic-design.de>,
"paul@pwsan.com" <paul@pwsan.com>,
"tony@atomide.com" <tony@atomide.com>,
"linux@arm.linux.org.uk" <linux@arm.linux.org.uk>,
"Cousson, Benoit" <b-cousson@ti.com>
Cc: "Hiremath, Vaibhav" <hvaibhav@ti.com>,
"AnilKumar, Chimata" <anilkumar@ti.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"Nori, Sekhar" <nsekhar@ti.com>,
"Hebbar, Gururaja" <gururaja.hebbar@ti.com>,
"Bedia, Vaibhav" <vaibhav.bedia@ti.com>
Subject: RE: [PATCH v3 02/10] ARM: am33xx: clk: Add optional clock for EHRPWM
Date: Fri, 23 Nov 2012 11:03:50 +0000 [thread overview]
Message-ID: <518397C60809E147AF5323E0420B992E3E9EEA70@DBDE01.ent.ti.com> (raw)
In-Reply-To: <1353387831-31538-3-git-send-email-avinashphilip@ti.com>
On Tue, Nov 20, 2012 at 10:33:43, Philip, Avinash wrote:
> EHRPWM module requires explicit clock gating from control module.
> Hence add clock node in clock tree for EHRPWM modules.
>
Is there any review on this patch?
This patch depends on EHRPWM to work in am335x.
Thanks
Avinash
> Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
> ---
> :100644 100644 17e3de5... 833260f... M arch/arm/mach-omap2/clock33xx_data.c
> :100644 100644 a89e825... c0e34e6... M arch/arm/mach-omap2/control.h
> arch/arm/mach-omap2/clock33xx_data.c | 37 ++++++++++++++++++++++++++++++++++
> arch/arm/mach-omap2/control.h | 8 +++++++
> 2 files changed, 45 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/clock33xx_data.c b/arch/arm/mach-omap2/clock33xx_data.c
> index 17e3de5..833260f 100644
> --- a/arch/arm/mach-omap2/clock33xx_data.c
> +++ b/arch/arm/mach-omap2/clock33xx_data.c
> @@ -995,6 +995,40 @@ static struct clk wdt1_fck = {
> };
>
> /*
> + * PWMSS Time based module clock node. This node is
> + * requred to enable clock gating for EHRPWM TBCLK.
> + */
> +static struct clk ehrpwm0_tbclk = {
> + .name = "ehrpwm0_tbclk",
> + .clkdm_name = "l4ls_clkdm",
> + .enable_reg = AM33XX_CTRL_REGADDR(AM33XX_PWMSS_TBCLK_CLKCTRL),
> + .enable_bit = AM33XX_PWMSS0_TBCLKEN_SHIFT,
> + .ops = &clkops_omap2_dflt,
> + .parent = &l4ls_gclk,
> + .recalc = &followparent_recalc,
> +};
> +
> +static struct clk ehrpwm1_tbclk = {
> + .name = "ehrpwm1_tbclk",
> + .clkdm_name = "l4ls_clkdm",
> + .enable_reg = AM33XX_CTRL_REGADDR(AM33XX_PWMSS_TBCLK_CLKCTRL),
> + .enable_bit = AM33XX_PWMSS1_TBCLKEN_SHIFT,
> + .ops = &clkops_omap2_dflt,
> + .parent = &l4ls_gclk,
> + .recalc = &followparent_recalc,
> +};
> +
> +static struct clk ehrpwm2_tbclk = {
> + .name = "ehrpwm2_tbclk",
> + .clkdm_name = "l4ls_clkdm",
> + .enable_reg = AM33XX_CTRL_REGADDR(AM33XX_PWMSS_TBCLK_CLKCTRL),
> + .enable_bit = AM33XX_PWMSS2_TBCLKEN_SHIFT,
> + .ops = &clkops_omap2_dflt,
> + .parent = &l4ls_gclk,
> + .recalc = &followparent_recalc,
> +};
> +
> +/*
> * clkdev
> */
> static struct omap_clk am33xx_clks[] = {
> @@ -1074,6 +1108,9 @@ static struct omap_clk am33xx_clks[] = {
> CLK(NULL, "clkout2_ck", &clkout2_ck, CK_AM33XX),
> CLK(NULL, "timer_32k_ck", &clkdiv32k_ick, CK_AM33XX),
> CLK(NULL, "timer_sys_ck", &sys_clkin_ck, CK_AM33XX),
> + CLK(NULL, "ehrpwm0_tbclk", &ehrpwm0_tbclk, CK_AM33XX),
> + CLK(NULL, "ehrpwm1_tbclk", &ehrpwm1_tbclk, CK_AM33XX),
> + CLK(NULL, "ehrpwm2_tbclk", &ehrpwm2_tbclk, CK_AM33XX),
> };
>
> int __init am33xx_clk_init(void)
> diff --git a/arch/arm/mach-omap2/control.h b/arch/arm/mach-omap2/control.h
> index a89e825..c0e34e6 100644
> --- a/arch/arm/mach-omap2/control.h
> +++ b/arch/arm/mach-omap2/control.h
> @@ -357,6 +357,14 @@
> #define AM33XX_CONTROL_STATUS_SYSBOOT1_WIDTH 0x2
> #define AM33XX_CONTROL_STATUS_SYSBOOT1_MASK (0x3 << 22)
>
> +/* AM33XX PWMSS Control register */
> +#define AM33XX_PWMSS_TBCLK_CLKCTRL 0x664
> +
> +/* AM33XX PWMSS Control bitfields */
> +#define AM33XX_PWMSS0_TBCLKEN_SHIFT 0
> +#define AM33XX_PWMSS1_TBCLKEN_SHIFT 1
> +#define AM33XX_PWMSS2_TBCLKEN_SHIFT 2
> +
> /* CONTROL OMAP STATUS register to identify OMAP3 features */
> #define OMAP3_CONTROL_OMAP_STATUS 0x044c
>
> --
> 1.7.0.4
>
>
next prev parent reply other threads:[~2012-11-23 11:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-20 5:03 [PATCH v3 00/10] Support for AM33xx PWM Subsystem Philip, Avinash
[not found] ` <1353387831-31538-1-git-send-email-avinashphilip-l0cyMroinI0@public.gmane.org>
2012-11-20 5:03 ` [PATCH v3 01/10] PWMSS: Add PWM Subsystem driver for parent<->child relationship Philip, Avinash
2012-11-20 5:03 ` [PATCH v3 02/10] ARM: am33xx: clk: Add optional clock for EHRPWM Philip, Avinash
2012-11-23 11:03 ` Philip, Avinash [this message]
2012-11-20 5:03 ` [PATCH v3 03/10] ARM: OMAP: AM33xx hwmod: Add parent-child relationship for PWM subsystem Philip, Avinash
2012-11-23 11:06 ` Philip, Avinash
2012-11-26 5:19 ` Bedia, Vaibhav
2012-11-26 9:02 ` Benoit Cousson
2012-11-26 11:07 ` Bedia, Vaibhav
[not found] ` <B5906170F1614E41A8A28DE3B8D121433EC4D5C7-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2012-11-27 6:24 ` Philip, Avinash
2012-11-20 5:03 ` [PATCH v3 04/10] pwm: pwm-tiecap: Add device-tree binding support for APWM driver Philip, Avinash
2012-11-20 5:03 ` [PATCH v3 05/10] pwm: pwm-tiecap: pinctrl support Philip, Avinash
2012-11-20 5:03 ` [PATCH v3 06/10] pwm: pwm-tiehrpwm: Add device-tree binding support for EHRPWM driver Philip, Avinash
2012-11-20 5:03 ` [PATCH v3 07/10] pwm: pwm-tiehrpwm: pinctrl support Philip, Avinash
2012-11-20 5:03 ` [PATCH v3 08/10] pwm: pwm-tiehrpwm: Adding TBCLK gating support Philip, Avinash
2012-11-20 5:03 ` [PATCH v3 09/10] ARM: dts: AM33XX: Add PWMSS device tree nodes Philip, Avinash
2012-11-20 5:03 ` [PATCH v3 10/10] ARM: dts: AM33XX: Add PWM backlight DT data to am335x-evm Philip, Avinash
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=518397C60809E147AF5323E0420B992E3E9EEA70@DBDE01.ent.ti.com \
--to=avinashphilip@ti.com \
--cc=anilkumar@ti.com \
--cc=b-cousson@ti.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=gururaja.hebbar@ti.com \
--cc=hvaibhav@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=nsekhar@ti.com \
--cc=paul@pwsan.com \
--cc=thierry.reding@avionic-design.de \
--cc=tony@atomide.com \
--cc=vaibhav.bedia@ti.com \
/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).