From: Purna Chandra Mandal Date: Mon, 21 Mar 2016 07:35:40 +0000 (+0530) Subject: arm: add missing writes[bwql], reads[bwql]. X-Git-Tag: v2016.05-rc1~29^2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f968467785b8dc04e86b1249b5109cc410ae30c5;p=u-boot arm: add missing writes[bwql], reads[bwql]. 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 --- diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 75773bdbe0..9d185a6122 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. *