arm: add missing writes[bwql], reads[bwql].
authorPurna Chandra Mandal <purna.mandal@microchip.com>
Mon, 21 Mar 2016 07:35:40 +0000 (13:05 +0530)
committerMarek Vasut <marex@denx.de>
Sun, 10 Apr 2016 15:18:41 +0000 (17:18 +0200)
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@microchip.com>
arch/arm/include/asm/io.h

index 75773bdbe079701026986037f3bc019c5fc45b12..9d185a61223afbdb392f39d536c380976f169a0e 100644 (file)
@@ -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.
  *