All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tero Kristo <t-kristo@ti.com>
To: Brian Hutchinson <b.hutchman@gmail.com>,
	mturquette@linaro.org, sboyd@codeaurora.org
Cc: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org,
	paul@pwsan.com, Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH 1/1] add pwm capability to dm816x
Date: Mon, 15 Jun 2015 22:32:59 +0300	[thread overview]
Message-ID: <557F286B.6010003@ti.com> (raw)
In-Reply-To: <CAFZh4h8ikia8oKsZ6B12QZ1HdTV8Teu-+U9x_Ydu_-uOyh7-HA@mail.gmail.com>

On 06/15/2015 09:36 PM, Brian Hutchinson wrote:
> Clocks 4-7 are capable of PWM output on dm816x.
>
> This adds the pwm capability to those timers.

Use checkpatch pls, I see lots of whitespace errors.

Also, I don't think Mike / Stephen care about this patch, as it is 
against omap hwmod data only.

-Tero

>
> Cc: Paul Walmsley <paul@pwsan.com <mailto:paul@pwsan.com>>
> Cc: Tero Kristo <t-kristo@ti.com <mailto:t-kristo@ti.com>>
> Cc: Tony Lindgren <tony@atomide.com <mailto:tony@atomide.com>>
> Signed-off-by: Brian Hutchinson <b.hutchman@gmail.com
> <mailto:b.hutchman@gmail.com><mailto:tony@atomide.com>>
>
> --- arch/arm/mach-omap2/omap_hwmod_81xx_data.c_orig     2015-06-15
> 13:20:43.174343431 -0400
> +++ arch/arm/mach-omap2/omap_hwmod_81xx_data.c  2015-06-15
> 13:34:51.770551392 -0400
> @@ -546,6 +546,14 @@ static struct omap_timer_capability_dev_
>          .timer_capability       = OMAP_TIMER_ALWON,
>   };
>
> +/* pwm timers dev attribute.
> + * timers 4-7 may be used for PWM output - see datasheet timer terminal
> + * functions table
> + */
> +static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
> +       .timer_capability       = OMAP_TIMER_ALWON | OMAP_TIMER_HAS_PWM,
> +};
> +
>   static struct omap_hwmod dm816x_timer1_hwmod = {
>          .name           = "timer1",
>          .clkdm_name     = "alwon_l3s_clkdm",
> @@ -619,7 +627,7 @@ static struct omap_hwmod dm816x_timer4_h
>                          .modulemode = MODULEMODE_SWCTRL,
>                  },
>          },
> -       .dev_attr       = &capability_alwon_dev_attr,
> +       .dev_attr       = &capability_pwm_dev_attr,
>          .class          = &dm816x_timer_hwmod_class,
>   };
>
> @@ -640,7 +648,7 @@ static struct omap_hwmod dm816x_timer5_h
>                          .modulemode = MODULEMODE_SWCTRL,
>                  },
>          },
> -       .dev_attr       = &capability_alwon_dev_attr,
> +       .dev_attr       = &capability_pwm_dev_attr,
>          .class          = &dm816x_timer_hwmod_class,
>   };
>
> @@ -661,7 +669,7 @@ static struct omap_hwmod dm816x_timer6_h
>                          .modulemode = MODULEMODE_SWCTRL,
>                  },
>          },
> -       .dev_attr       = &capability_alwon_dev_attr,
> +       .dev_attr       = &capability_pwm_dev_attr,
>          .class          = &dm816x_timer_hwmod_class,
>   };
>
> @@ -682,7 +690,7 @@ static struct omap_hwmod dm816x_timer7_h
>                          .modulemode = MODULEMODE_SWCTRL,
>                  },
>          },
> -       .dev_attr       = &capability_alwon_dev_attr,
> +       .dev_attr       = &capability_pwm_dev_attr,
>          .class          = &dm816x_timer_hwmod_class,
>   };

WARNING: multiple messages have this Message-ID (diff)
From: Tero Kristo <t-kristo@ti.com>
To: Brian Hutchinson <b.hutchman@gmail.com>, <mturquette@linaro.org>,
	<sboyd@codeaurora.org>
Cc: <linux-kernel@vger.kernel.org>, <linux-omap@vger.kernel.org>,
	<paul@pwsan.com>, Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH 1/1] add pwm capability to dm816x
Date: Mon, 15 Jun 2015 22:32:59 +0300	[thread overview]
Message-ID: <557F286B.6010003@ti.com> (raw)
In-Reply-To: <CAFZh4h8ikia8oKsZ6B12QZ1HdTV8Teu-+U9x_Ydu_-uOyh7-HA@mail.gmail.com>

On 06/15/2015 09:36 PM, Brian Hutchinson wrote:
> Clocks 4-7 are capable of PWM output on dm816x.
>
> This adds the pwm capability to those timers.

Use checkpatch pls, I see lots of whitespace errors.

Also, I don't think Mike / Stephen care about this patch, as it is 
against omap hwmod data only.

-Tero

>
> Cc: Paul Walmsley <paul@pwsan.com <mailto:paul@pwsan.com>>
> Cc: Tero Kristo <t-kristo@ti.com <mailto:t-kristo@ti.com>>
> Cc: Tony Lindgren <tony@atomide.com <mailto:tony@atomide.com>>
> Signed-off-by: Brian Hutchinson <b.hutchman@gmail.com
> <mailto:b.hutchman@gmail.com><mailto:tony@atomide.com>>
>
> --- arch/arm/mach-omap2/omap_hwmod_81xx_data.c_orig     2015-06-15
> 13:20:43.174343431 -0400
> +++ arch/arm/mach-omap2/omap_hwmod_81xx_data.c  2015-06-15
> 13:34:51.770551392 -0400
> @@ -546,6 +546,14 @@ static struct omap_timer_capability_dev_
>          .timer_capability       = OMAP_TIMER_ALWON,
>   };
>
> +/* pwm timers dev attribute.
> + * timers 4-7 may be used for PWM output - see datasheet timer terminal
> + * functions table
> + */
> +static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
> +       .timer_capability       = OMAP_TIMER_ALWON | OMAP_TIMER_HAS_PWM,
> +};
> +
>   static struct omap_hwmod dm816x_timer1_hwmod = {
>          .name           = "timer1",
>          .clkdm_name     = "alwon_l3s_clkdm",
> @@ -619,7 +627,7 @@ static struct omap_hwmod dm816x_timer4_h
>                          .modulemode = MODULEMODE_SWCTRL,
>                  },
>          },
> -       .dev_attr       = &capability_alwon_dev_attr,
> +       .dev_attr       = &capability_pwm_dev_attr,
>          .class          = &dm816x_timer_hwmod_class,
>   };
>
> @@ -640,7 +648,7 @@ static struct omap_hwmod dm816x_timer5_h
>                          .modulemode = MODULEMODE_SWCTRL,
>                  },
>          },
> -       .dev_attr       = &capability_alwon_dev_attr,
> +       .dev_attr       = &capability_pwm_dev_attr,
>          .class          = &dm816x_timer_hwmod_class,
>   };
>
> @@ -661,7 +669,7 @@ static struct omap_hwmod dm816x_timer6_h
>                          .modulemode = MODULEMODE_SWCTRL,
>                  },
>          },
> -       .dev_attr       = &capability_alwon_dev_attr,
> +       .dev_attr       = &capability_pwm_dev_attr,
>          .class          = &dm816x_timer_hwmod_class,
>   };
>
> @@ -682,7 +690,7 @@ static struct omap_hwmod dm816x_timer7_h
>                          .modulemode = MODULEMODE_SWCTRL,
>                  },
>          },
> -       .dev_attr       = &capability_alwon_dev_attr,
> +       .dev_attr       = &capability_pwm_dev_attr,
>          .class          = &dm816x_timer_hwmod_class,
>   };


       reply	other threads:[~2015-06-15 19:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFZh4h8ikia8oKsZ6B12QZ1HdTV8Teu-+U9x_Ydu_-uOyh7-HA@mail.gmail.com>
2015-06-15 19:32 ` Tero Kristo [this message]
2015-06-15 19:32   ` [PATCH 1/1] add pwm capability to dm816x Tero Kristo
2015-06-16 20:56   ` Suman Anna
2015-07-16  6:07 ` Paul Walmsley

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=557F286B.6010003@ti.com \
    --to=t-kristo@ti.com \
    --cc=b.hutchman@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mturquette@linaro.org \
    --cc=paul@pwsan.com \
    --cc=sboyd@codeaurora.org \
    --cc=tony@atomide.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 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.