linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: alexander.stein@systec-electronic.com (Alexander Stein)
To: linux-arm-kernel@lists.infradead.org
Subject: clock enable for i.mx35 pwm
Date: Tue, 16 Nov 2010 12:17:32 +0100	[thread overview]
Message-ID: <201011161217.57831.alexander.stein@systec-electronic.com> (raw)

Hello,

I tried to use the PWM for activating a beeper. I noticed I had to write twice 
to the input device (pwm-beeper.c) to get a sound. I noticed the clock is 
enabled after the PWM is configured (or should be configured). So it seems 
while the clock is disabled, you can't program the PWM unit. So on pwm_request 
the clock should be enabled immediately and on pwm_enable the MX3_PWMCR_EN bit 
should be set (at least for i.mx > 2.1). No idea how to do that in the "older" 
variants.

Any opinions/fix about that?

Best regards,
Alexander

                 reply	other threads:[~2010-11-16 11:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201011161217.57831.alexander.stein@systec-electronic.com \
    --to=alexander.stein@systec-electronic.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).