aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Prusov <ivprusov@salutedevices.com>2023-11-14 14:02:49 +0300
committerTom Rini <trini@konsulko.com>2023-11-28 16:19:06 -0500
commit7c107ef2053609cbacde12e5d80f14c44f7f68b7 (patch)
tree68b33791aec269eb0ea9f669b00dd1f327fa2c32
parent65778d1f3d6b132fc922aadd2f512976141ecfc1 (diff)
downloadu-boot-7c107ef2053609cbacde12e5d80f14c44f7f68b7.zip
u-boot-7c107ef2053609cbacde12e5d80f14c44f7f68b7.tar.gz
u-boot-7c107ef2053609cbacde12e5d80f14c44f7f68b7.tar.bz2
riscv: io.h: Add defines for reads/writes functions
Add defines for {read,write}s{b,w,l} functions to make asm-generic/io.h aware of them. Signed-off-by: Igor Prusov <ivprusov@salutedevices.com>
-rw-r--r--arch/riscv/include/asm/io.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/io.h b/arch/riscv/include/asm/io.h
index 4170877..cedd537 100644
--- a/arch/riscv/include/asm/io.h
+++ b/arch/riscv/include/asm/io.h
@@ -307,6 +307,14 @@ static inline void writesl(unsigned int *addr, const void *data, int longlen)
longlen--;
}
}
+
+#define readsb readsb
+#define readsw readsw
+#define readsl readsl
+#define writesb writesb
+#define writesw writesw
+#define writesl writesl
+
#endif
#define outb_p(val, port) outb((val), (port))