xref: /openbmc/u-boot/include/linux/io.h (revision 1d2c0506)
1 /*
2  * SPDX-License-Identifier:	GPL-2.0+
3  */
4 
5 #ifndef _LINUX_IO_H
6 #define _LINUX_IO_H
7 
8 #include <linux/compiler.h>
9 #include <linux/types.h>
10 #include <asm/io.h>
11 
12 #ifndef CONFIG_HAVE_ARCH_IOREMAP
13 static inline void __iomem *ioremap(resource_size_t offset,
14 				    resource_size_t size)
15 {
16 	return (void __iomem *)(unsigned long)offset;
17 }
18 
19 static inline void iounmap(void __iomem *addr)
20 {
21 }
22 
23 #define devm_ioremap(dev, offset, size)		ioremap(offset, size)
24 #endif
25 
26 #endif /* _LINUX_IO_H */
27