linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: radoslav.kolev@rnd.bg (Radoslav Kolev)
To: linux-arm-kernel@lists.infradead.org
Subject: imx: PWM module on mx35
Date: Fri, 22 Oct 2010 01:30:57 +0300	[thread overview]
Message-ID: <1287700257.4822.29.camel@rado-desktop> (raw)

Hello,

I am trying to use the PWM module on a Freescale MX35 SOC but all writes
to the PWM module registers seem to be ignored.

I have found two issues reported as fixed in the changelog of
Freescales's Linux BSP for the i.MX31ADS (with similar PWM module) at
http://www.freescale.com/files/soft_dev_tools/doc/support_info/BSPIMX31ADSLTIB__RN.txt

851     Unable to write to PWM registers
1438	Cannot write to PWM registers

Unfortunately I couldn't find any more info about how/where these issues
were fixed or find the issues in some public issue tracking system.

I added this code to the plat-mxc/pwm.c module after request_mem and
ioremap of the PWM registers to make a simple test writing to the period
register:

//read value of period register and print to console
reg=ioread32(pwm->mmio_base+0x10);
printk("PWMPR1: %lx \n", reg);

//write new value
iowrite32(0x123, pwm->mmio_base+0x10);

//read value and print to console
reg=ioread32(pwm->mmio_base + 0x10);
printk("PWMPR2: %lx \n", reg);


Which yields the following output:

PWMPR1: fffe 
PWMPR2: fffe 

According to the MX35 reference manual 0xfffe is exactly the default
reset value of the PWM period register, so it seems I'm accessing the
right register and reads work fine, but all writes are ignored. It is
the same with other registers like PWM control register.

Any ideas, pointers to possible cause of this problem or just sharing if
you have been (un)successful using the PWM module on the MX35 will be
greatly appreciated.

Best regards,
Radoslav Kolev

             reply	other threads:[~2010-10-21 22:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-21 22:30 Radoslav Kolev [this message]
2010-10-22  1:10 ` imx: PWM module on mx35 Fabio Estevam
2010-10-22 10:13   ` Radoslav Kolev

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=1287700257.4822.29.camel@rado-desktop \
    --to=radoslav.kolev@rnd.bg \
    --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).