diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-08-12 14:19:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-08-23 16:09:26 +0200 |
commit | 79f8074d9217fb3316b8f9426b361a70537e4094 (patch) | |
tree | 1af10fd2ecb43d4656c618d4890fd9d8aaec13db /include | |
parent | 1ebfb6e6c6312138ce128d7b51fbe2092b37d907 (diff) | |
download | barebox-79f8074d9217fb3316b8f9426b361a70537e4094.tar.gz barebox-79f8074d9217fb3316b8f9426b361a70537e4094.tar.xz |
asm-generic: include bitio.h from io.h
This is currently used on ARM and sandbox, but it's relevant for
other platforms like x86 as well if driver code wants to make use
of the functions defined within.
MIPS and PowerPC already defines the symbols, but that's ok because
<bitio.h> doesn't override existing macros. This works for MIPS, but
not PowerPC, where those aren't macros. Fix that up.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20210812121944.4419-3-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index a4b0dc4b43..47f8c3ec1b 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h @@ -479,4 +479,6 @@ static inline void memcpy_toio(volatile void __iomem *addr, const void *buffer, } #endif +#include <asm-generic/bitio.h> + #endif /* __ASM_GENERIC_IO_H */ |