git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65778d1
)
riscv: io.h: Add defines for reads/writes functions
author
Igor Prusov
<ivprusov@salutedevices.com>
Tue, 14 Nov 2023 11:02:49 +0000
(14:02 +0300)
committer
Tom Rini
<trini@konsulko.com>
Tue, 28 Nov 2023 21:19:06 +0000
(16:19 -0500)
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>
arch/riscv/include/asm/io.h
patch
|
blob
|
history
diff --git
a/arch/riscv/include/asm/io.h
b/arch/riscv/include/asm/io.h
index
4170877
..
cedd537
100644
(file)
--- 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))