All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom <Tom.Rix@windriver.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/9 V3] convert all at91 files to use at91_gpio driver syntax
Date: Sat, 30 Jan 2010 19:10:10 -0600	[thread overview]
Message-ID: <4B64D872.6070703@windriver.com> (raw)
In-Reply-To: <4B5AD77F.7030807@scharsoft.de>

Jens Scharsig wrote:
> * convert all files cpu/../at91 to use at91_gpio driver syntax 
> * change AT91_PINP([A-F])(\d+) to AT91_PORTPIN(\1, \2),   
>   this makes all 160 AT91_PINPxxx defines obsolete 
> * AT91_PINPxxx defines can be remove if all boards converted 
>   to new SoC access
> 
> Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
> ---
>  cpu/arm926ejs/at91/at91cap9_devices.c       |  100 +++++++++++++-------------
>  cpu/arm926ejs/at91/at91sam9260_devices.c    |  100 +++++++++++++-------------
>  cpu/arm926ejs/at91/at91sam9261_devices.c    |   60 ++++++++--------
>  cpu/arm926ejs/at91/at91sam9263_devices.c    |  104 +++++++++++++-------------
>  cpu/arm926ejs/at91/at91sam9m10g45_devices.c |   96 ++++++++++++------------
>  cpu/arm926ejs/at91/at91sam9rl_devices.c     |   38 +++++-----
>  6 files changed, 249 insertions(+), 249 deletions(-)
> 
> diff --git a/cpu/arm926ejs/at91/at91cap9_devices.c b/cpu/arm926ejs/at91/at91cap9_devices.c
> index 39e405f..c41e139 100644
> --- a/cpu/arm926ejs/at91/at91cap9_devices.c
> +++ b/cpu/arm926ejs/at91/at91cap9_devices.c
> @@ -34,29 +34,29 @@
>  
>  void at91_serial0_hw_init(void)
>  {
> -	at91_set_A_periph(AT91_PIN_PA22, 1);		/* TXD0 */
> -	at91_set_A_periph(AT91_PIN_PA23, 0);		/* RXD0 */
> +	at91_set_a_periph(AT91_PORTPIN(A, 22), 1);		/* TXD0 */
> +	at91_set_a_periph(AT91_PORTPIN(A, 23), 0);		/* RXD0 */

See comments about AT91_PORTPIN and converting the gpio functions to
pass in the port and the pin as parameters

The other changes are straight forward.
Tom

  reply	other threads:[~2010-01-31  1:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-23 11:03 [U-Boot] [PATCH 4/9 V3] convert all at91 files to use at91_gpio driver syntax Jens Scharsig
2010-01-31  1:10 ` Tom [this message]
2010-02-03 21:46 ` [U-Boot] [PATCH 4/9 V4] " Jens Scharsig

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=4B64D872.6070703@windriver.com \
    --to=tom.rix@windriver.com \
    --cc=u-boot@lists.denx.de \
    /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.