All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH v4] QE IO: Add initial data to pin configuration + read/write functions
Date: Thu, 07 Feb 2008 09:28:56 -0600	[thread overview]
Message-ID: <47AB23B8.60409@freescale.com> (raw)
In-Reply-To: <B27D27F93BC429468DBC3B0DA043AA4401D507D3@ilptex01.ecitele.com>

David Saada wrote:

> +void qe_read_iopin(u8 port, u8 pin, int *data)
> +{
> +	u32			pin_1bit_mask;
> +	u32			tmp_val;
> +	volatile immap_t	*im = (volatile immap_t *)CFG_IMMR;
> +	volatile qepio83xx_t	*par_io = (volatile qepio83xx_t

Don't use volatile.  Use the accessor functions: in_be32 and out_be32.


> --- a/common/Makefile	2008-01-23 15:41:38.000000000 +0200
> +++ b/common/Makefile	2008-02-07 11:09:18.087398000 +0200
> @@ -76,6 +76,7 @@ COBJS-y += cmd_nand.o
>  COBJS-$(CONFIG_CMD_NET) += cmd_net.o
>  COBJS-y += cmd_nvedit.o
>  COBJS-y += cmd_onenand.o
> +COBJS-$(CONFIG_CMD_PARIO) += cmd_pario.o
>  ifdef CONFIG_PCI
>  COBJS-$(CONFIG_CMD_PCI) += cmd_pci.o
>  endif
> --- /dev/null	2008-02-04 11:16:39.378100988 +0200
> +++ b/common/cmd_pario.c	2008-02-07 10:49:33.000000000 +0200
> @@ -0,0 +1,87 @@
> +/*
> + * Copyright 2007 ECI Telecommunication.

Did you mean 2008?

> + *
> + * (C) Copyright 2002 David Saada <david.saada@ecitele.com>

And here

> + *
> + * See file CREDITS for list of people who contributed to this
> + * project.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> + * MA 02111-1307 USA
> + */
> +
> +#include <common.h>
> +#include <command.h>
> +
> +void qe_read_iopin(u8 port, u8 pin, int *data);
> +void qe_write_iopin(u8 port, u8 pin, int data);

Put these in a header file.



-- 
Timur Tabi
Linux kernel developer at Freescale

  reply	other threads:[~2008-02-07 15:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17 14:31 [U-Boot-Users] [PATCH v2] QE IO: Add initial data to pin configuration + read/write functions David Saada
2008-01-17 17:30 ` Timur Tabi
2008-01-17 17:39 ` Timur Tabi
2008-01-20  6:48   ` David Saada
2008-01-20  9:36   ` [U-Boot-Users] [PATCH v3] " David Saada
2008-01-22 18:11   ` David Saada
2008-01-22 18:55     ` Timur Tabi
2008-01-23  7:47       ` David Saada
2008-01-23 22:43         ` Timur Tabi
2008-01-28 16:01         ` Timur Tabi
2008-01-28 16:21           ` David Saada
2008-02-05 16:54             ` Andy Fleming
2008-02-06  7:44               ` David Saada
2008-02-07 10:26               ` [U-Boot-Users] [PATCH v4] " David Saada
2008-02-07 15:28                 ` Timur Tabi [this message]
2008-02-07 15:55                   ` David Saada
2008-02-07 15:57                     ` Timur Tabi

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=47AB23B8.60409@freescale.com \
    --to=timur@freescale.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.