From: jamie@jamieiles.com (Jamie Iles)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 2.6.40 2/3] ARM:simpad: Cleanup CS3 accessors.
Date: Mon, 18 Apr 2011 14:47:12 +0100 [thread overview]
Message-ID: <20110418134712.GD2820@pulham.picochip.com> (raw)
In-Reply-To: <1303131636-19442-3-git-send-email-jochen@scram.de>
Hi Jochen,
On Mon, Apr 18, 2011 at 03:00:35PM +0200, Jochen Friedrich wrote:
> - prepend CS3 accessors by simpad_ to indicate they
> are specific to simpad devices.
> - use spinlock to protect shadow register.
> - implement 8 read-only pins.
> - use readl/writel macros so barriers are used where
> necessary.
> - register CS3 as GPIO controller with 24 pins
> (16 output only and 8 input only).
I think the basic-mmio-gpio driver (drivers/gpio/basic_mmio_gpio.c)
should cover the GPIO controller portion of this (including the
shadowing etc). This may need a few other bits (simpad_uart_pm(),
simpad_map_io() etc) converting over to use the GPIO API though.
Jamie
next prev parent reply other threads:[~2011-04-18 13:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-18 13:00 [PATCHv2 2.6.40 0/3] ARM: simpad: Add support for GPIO attached hardware Jochen Friedrich
2011-04-18 13:00 ` [PATCHv2 2.6.40 1/3] ARM:simpad: Add ucb1x00 GPIO definitions and register GPIO Jochen Friedrich
2011-04-18 13:00 ` [PATCHv2 2.6.40 2/3] ARM:simpad: Cleanup CS3 accessors Jochen Friedrich
2011-04-18 13:47 ` Jamie Iles [this message]
2011-04-18 14:35 ` Jochen Friedrich
2011-04-18 14:46 ` Henning Heinold
2011-04-18 16:49 ` Jamie Iles
2011-04-18 18:02 ` Jochen Friedrich
2011-04-19 9:09 ` Jamie Iles
2011-04-18 13:00 ` [PATCHv2 2.6.40 3/3] ARM:simpad: add GPIO based device definitions Jochen Friedrich
2011-04-19 13:52 ` Dmitry Artamonow
2011-04-19 14:46 ` Jochen Friedrich
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=20110418134712.GD2820@pulham.picochip.com \
--to=jamie@jamieiles.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 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.