mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 22:21:49 +01:00
riscv: add #define in asm/io.h for some device drivers
This patch adds memcpy_fromio and memcpy_toio definitions for some device drivers which have these definitions, like cadence_qspi_apb.c Signed-off-by: Wei Fu <wefu@redhat.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
89a86dcf61
commit
41635cca6e
@ -64,6 +64,10 @@ static inline phys_addr_t map_to_sysmem(const void *ptr)
|
|||||||
#define __raw_readl(a) __arch_getl(a)
|
#define __raw_readl(a) __arch_getl(a)
|
||||||
#define __raw_readq(a) __arch_getq(a)
|
#define __raw_readq(a) __arch_getq(a)
|
||||||
|
|
||||||
|
/* adding for cadence_qspi_apb.c */
|
||||||
|
#define memcpy_fromio(a, c, l) memcpy((a), (c), (l))
|
||||||
|
#define memcpy_toio(c, a, l) memcpy((c), (a), (l))
|
||||||
|
|
||||||
#define dmb() mb()
|
#define dmb() mb()
|
||||||
#define __iormb() rmb()
|
#define __iormb() rmb()
|
||||||
#define __iowmb() wmb()
|
#define __iowmb() wmb()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user