diff options
Diffstat (limited to 'arch/riscv/include/asm/arch-jh7100/io.h')
-rw-r--r-- | arch/riscv/include/asm/arch-jh7100/io.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/arch-jh7100/io.h b/arch/riscv/include/asm/arch-jh7100/io.h new file mode 100644 index 0000000000..1f78f24ea5 --- /dev/null +++ b/arch/riscv/include/asm/arch-jh7100/io.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* Copyright (c) 2021 StarFive Technology Co., Ltd. */ + +#ifndef __ASM_RISCV_ARCH_IO_H +#define __ASM_RISCV_ARCH_IO_H +#ifdef __KERNEL__ + +#include <asm/io.h> + +#define MA_OUTW(io, val) (*(volatile uint32_t __iomem *)(io) = (uint32_t)(val)) +#define MA_INW(io) (*(volatile uint32_t __iomem *)(io)) + +#endif /* __KERNEL__ */ +#endif /* __ASM_RISCV_ARCH_IO_H */
\ No newline at end of file |