From: Grant Erickson <marathon96@gmail.com>
To: Hemanth V <hemanthv@ti.com>
Cc: Tony Lindgren <tony@atomide.com>, linux-omap@vger.kernel.org
Subject: Re: [PATCH] Add OMAP Support for Generic PWM Devices using Dual-mode Timers
Date: Tue, 16 Nov 2010 09:45:59 -0800 [thread overview]
Message-ID: <C9080357.1FE83%marathon96@gmail.com> (raw)
In-Reply-To: <DDDB4A81DAFB4611A2BE7C99D7F92684@wipblrx0099946>
On 11/16/10 4:37 AM, Hemanth V wrote:
> ----- Original Message -----
> From: "Grant Erickson" <marathon96@gmail.com>
> Sent: Monday, November 15, 2010 12:58 AM
>
>> This patch adds support to request and use one or more of the OMAP
>> dual-mode timers as a generic PWM device compatible with other generic
>> PWM drivers such as the PWM backlight or PWM beeper driver.
>
> Generally PWMs are supported on PMIC chip. Is this driver intended for use
> when OMAP is used standalone?
Correct.
>> Boards can register such devices using platform data such as in the
>> following
>> example:
>>
>> static struct omap2_pwm_platform_config pwm_config = {
>> .timer_id = 10, // GPT10_PWM_EVT
>
> Since only specific GPTs can be configured for PWM, can some check
> we added in probe function?
Yes, that check is already present in the probe function:
pwm->dm_timer = omap_dm_timer_request_specific(pdata->timer_id);
if (pwm->dm_timer == NULL) {
status = -ENOENT;
goto err_free;
}
> Can the above file be part of mach-omap2, since comment say its
> specifically for OMAP2/3 or will this work on OMAP1 also?
It should work wherever dmtimers are supported. To the extent that dmtimer.c
is in plat-omap/, I located pwm.c there as well.
Thanks for the feedback!
Best,
Grant
next prev parent reply other threads:[~2010-11-16 17:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-14 19:28 [PATCH] Add OMAP Support for Generic PWM Devices using Dual-mode Timers Grant Erickson
2010-11-16 12:37 ` Hemanth V
2010-11-16 17:45 ` Grant Erickson [this message]
2010-11-17 9:58 ` Hemanth V
2010-11-16 12:42 ` Felipe Balbi
2010-11-16 18:00 ` Grant Erickson
2010-11-16 17:01 ` Kevin Hilman
2010-11-16 18:13 ` Grant Erickson
2010-11-16 18:43 ` Kevin Hilman
2010-11-16 19:39 ` Grant Erickson
2010-11-16 19:52 ` Kevin Hilman
2010-11-16 20:20 ` Tony Lindgren
2010-11-16 18:54 ` Premi, Sanjeev
2010-11-16 19:11 ` Grant Erickson
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=C9080357.1FE83%marathon96@gmail.com \
--to=marathon96@gmail.com \
--cc=hemanthv@ti.com \
--cc=linux-omap@vger.kernel.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.