Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Anton Vorontsov
Date: Thursday, August 14, 2008 - 8:10 am

On Thu, Aug 14, 2008 at 04:45:52PM +0200, Laurent Pinchart wrote:

Not exactly. But you can do this way, if you need to preserve
a direction. What I did is a bit different though.

qe_gpio_set_dedicated() actually just restores a mode that
firmware had set up, including direction (since direction could
be a part of dedicated configuration).

That is, upon GPIO controller registration, we save all registers,
then driver can set up a pin to a GPIO mode via standard API, and
then it can _revert_ a pin to a dedicated function via
qe_gpio_set_dedicated() call. Dedicated function is specified by
the firmware (or board file), we're just restoring it.

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] Patches to support QE USB Host Controller, Anton Vorontsov, (Fri Aug 8, 9:17 am)
[PATCH 1/3] gpiolib: make gpio_to_chip() public, Anton Vorontsov, (Fri Aug 8, 9:18 am)
Re: [PATCH 0/3] Patches to support QE USB Host Controller, Laurent Pinchart, (Thu Aug 14, 5:15 am)
Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public, Laurent Pinchart, (Thu Aug 14, 7:04 am)
Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public, Anton Vorontsov, (Thu Aug 14, 7:14 am)
Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public, Laurent Pinchart, (Thu Aug 14, 7:45 am)
Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public, Anton Vorontsov, (Thu Aug 14, 8:10 am)
Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public, Laurent Pinchart, (Mon Aug 18, 6:58 am)
Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public, Anton Vorontsov, (Mon Aug 18, 7:33 am)
Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public, Laurent Pinchart, (Mon Aug 18, 7:44 am)
Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public, Anton Vorontsov, (Mon Aug 18, 8:33 am)
Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public, Laurent Pinchart, (Tue Aug 19, 2:26 am)
Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public, Anton Vorontsov, (Tue Aug 19, 7:50 am)
Re: [PATCH 0/3] Patches to support QE USB Host Controller, Anton Vorontsov, (Tue Aug 26, 8:49 am)
Re: [PATCH 0/3] Patches to support QE USB Host Controller, David Brownell, (Wed Sep 24, 1:04 pm)