[U-Boot] [PATCH v5 1/4] arm: add missing writes[bwql], reads[bwql].

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Sun Apr 10 19:03:57 CEST 2016


Hi,

Am 21.03.2016 um 08:35 schrieb Purna Chandra Mandal:
> ARM defines __raw_writes[bwql], __raw_reads[bwql] in arch io.h
> but not the writes[bwql], reads[bwql] needed by some drivers.
> 
> Signed-off-by: Purna Chandra Mandal <purna.mandal at microchip.com>
> ---

sorry for noticing this so late, but this patch is assigned to me in
patchwork. I think this patch [1] as well as [2] should be merged via
Albert's u-boot-arm tree, shouldn't it?

[1] http://patchwork.ozlabs.org/patch/599979/
[2] http://patchwork.ozlabs.org/patch/599980/

> 
> Changes in v5: None
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
> 
>  arch/arm/include/asm/io.h | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h
> index 75773bd..9d185a6 100644
> --- a/arch/arm/include/asm/io.h
> +++ b/arch/arm/include/asm/io.h
> @@ -284,6 +284,13 @@ static inline void __raw_readsl(unsigned long addr, void *data, int longlen)
>  #define insw_p(port,to,len)		insw(port,to,len)
>  #define insl_p(port,to,len)		insl(port,to,len)
>  
> +#define writesl(a, d, s)	__raw_writesl((unsigned long)a, d, s)
> +#define readsl(a, d, s)		__raw_readsl((unsigned long)a, d, s)
> +#define writesw(a, d, s)	__raw_writesw((unsigned long)a, d, s)
> +#define readsw(a, d, s)		__raw_readsw((unsigned long)a, d, s)
> +#define writesb(a, d, s)	__raw_writesb((unsigned long)a, d, s)
> +#define readsb(a, d, s)		__raw_readsb((unsigned long)a, d, s)
> +
>  /*
>   * ioremap and friends.
>   *
> 

-- 
- Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160410/3305be72/attachment.sig>


More information about the U-Boot mailing list