All of lore.kernel.org
 help / color / mirror / Atom feed
From: stigge@antcom.de (Roland Stigge)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] lpc32xx: Add the motor PWM clock
Date: Thu, 08 Nov 2012 11:00:21 +0100	[thread overview]
Message-ID: <509B82B5.9000003@antcom.de> (raw)
In-Reply-To: <CAAAP30FjE0QQSJaRN26M-1JdDCXCByK3UNkenBhoN3=dX1-Bbg@mail.gmail.com>

On 07/11/12 16:55, Alexandre Pereira da Silva wrote:
> On Wed, Nov 7, 2012 at 1:47 PM, Alban Bedel
> <alban.bedel@avionic-design.de> wrote:
>> Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
> 
> Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>

Acked-by: Roland Stigge <stigge@antcom.de>

I'm adding this to the lpc32xx tree.

Thanks,

Roland

> 
>> ---
>>  arch/arm/mach-lpc32xx/clock.c                 |    8 ++++++++
>>  arch/arm/mach-lpc32xx/include/mach/platform.h |    1 +
>>  2 files changed, 9 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c
>> index f48c2e9..dd5d6f5 100644
>> --- a/arch/arm/mach-lpc32xx/clock.c
>> +++ b/arch/arm/mach-lpc32xx/clock.c
>> @@ -585,6 +585,13 @@ static struct clk clk_timer3 = {
>>         .enable_mask    = LPC32XX_CLKPWR_TMRPWMCLK_TIMER3_EN,
>>         .get_rate       = local_return_parent_rate,
>>  };
>> +static struct clk clk_mpwm = {
>> +       .parent         = &clk_pclk,
>> +       .enable         = local_onoff_enable,
>> +       .enable_reg     = LPC32XX_CLKPWR_TIMERS_PWMS_CLK_CTRL_1,
>> +       .enable_mask    = LPC32XX_CLKPWR_TMRPWMCLK_MPWM_EN,
>> +       .get_rate       = local_return_parent_rate,
>> +};
>>  static struct clk clk_wdt = {
>>         .parent         = &clk_pclk,
>>         .enable         = local_onoff_enable,
>> @@ -1202,6 +1209,7 @@ static struct clk_lookup lookups[] = {
>>         CLKDEV_INIT("pl08xdmac", NULL, &clk_dma),
>>         CLKDEV_INIT("4003c000.watchdog", NULL, &clk_wdt),
>>         CLKDEV_INIT("4005c000.pwm", NULL, &clk_pwm),
>> +       CLKDEV_INIT("400e8000.mpwm", NULL, &clk_mpwm),
>>         CLKDEV_INIT(NULL, "uart3_ck", &clk_uart3),
>>         CLKDEV_INIT(NULL, "uart4_ck", &clk_uart4),
>>         CLKDEV_INIT(NULL, "uart5_ck", &clk_uart5),
>> diff --git a/arch/arm/mach-lpc32xx/include/mach/platform.h b/arch/arm/mach-lpc32xx/include/mach/platform.h
>> index acc4aab..b5612a1 100644
>> --- a/arch/arm/mach-lpc32xx/include/mach/platform.h
>> +++ b/arch/arm/mach-lpc32xx/include/mach/platform.h
>> @@ -515,6 +515,7 @@
>>  /*
>>   * clkpwr_timers_pwms_clk_ctrl_1 register definitions
>>   */
>> +#define LPC32XX_CLKPWR_TMRPWMCLK_MPWM_EN       0x40
>>  #define LPC32XX_CLKPWR_TMRPWMCLK_TIMER3_EN     0x20
>>  #define LPC32XX_CLKPWR_TMRPWMCLK_TIMER2_EN     0x10
>>  #define LPC32XX_CLKPWR_TMRPWMCLK_TIMER1_EN     0x08
>> --
>> 1.7.0.4
>>

      reply	other threads:[~2012-11-08 10:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-07 15:47 [PATCH] lpc32xx: Add the motor PWM clock Alban Bedel
2012-11-07 15:55 ` Alexandre Pereira da Silva
2012-11-08 10:00   ` Roland Stigge [this message]

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=509B82B5.9000003@antcom.de \
    --to=stigge@antcom.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.