From: arnaud.patard@rtp-net.org (Arnaud Patard (Rtp))
To: linux-arm-kernel@lists.infradead.org
Subject: device-tree vs gpio-leds gpio_blink_set
Date: Mon, 23 Apr 2012 14:01:10 +0200 [thread overview]
Message-ID: <87bomiy7w9.fsf@lebrac.rtp-net.org> (raw)
In-Reply-To: <20120423115140.GA15792@lunn.ch> (Andrew Lunn's message of "Mon, 23 Apr 2012 13:51:40 +0200")
Andrew Lunn <andrew@lunn.ch> writes:
>> One way to solve it would be to add a blink function to gpiolib so
>> that the gpio-led driver can access it through a common wrapper
>> and we can make the orion_gpio_set_blink() function a pointer in
>> the gpio_chip structure rather than an export from
>> arch/arm/plat-orion/gpio.c. I've put a few people on Cc that might
>> have an opion on this.
>
> Hi Arnd
>
> That would work for Orion based devices. However, take a look at
> mach-s3c24xx. It has two different blink_set functions, one in
> mach-s3c24xx/mach-h1940.c and another in mach-s3c24xx/mach-rx1950.c.
[ for the record, it happens that I worked on the h1940 support but it's
been quite some time I didn't boot it ]
>
> So the blink_set function probably needs to be board specific in some
> cases.
imho the kirkwood/orion/... case is an exception rather than the
rule. Moreover, nothing prevents a HW designer to use something else to
handle hw blinking instead of the kirkwood blinking method. After all,
this method has a fixed frequency of 2^24 tclk (which makes it 100ms on
most boards).
Arnaud
next parent reply other threads:[~2012-04-23 12:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20120423115140.GA15792@lunn.ch>
2012-04-23 12:01 ` Arnaud Patard (Rtp) [this message]
2012-04-23 7:27 device-tree vs gpio-leds gpio_blink_set Arnaud Patard (Rtp)
2012-04-23 11:22 ` Arnd Bergmann
2012-04-23 17:49 ` Mark Brown
2012-04-24 12:24 ` Linus Walleij
2012-04-24 12:36 ` Mark Brown
2012-04-24 13:04 ` Thierry Reding
2012-04-24 12:39 ` jonsmirl at gmail.com
2012-04-24 12:41 ` jonsmirl at gmail.com
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=87bomiy7w9.fsf@lebrac.rtp-net.org \
--to=arnaud.patard@rtp-net.org \
--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.