summaryrefslogtreecommitdiff
path: root/arch/sh/include/asm/bitops.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-02-07 14:48:56 -0500
committerTom Rini <trini@konsulko.com>2019-02-07 14:48:56 -0500
commit50e24381c097579ff2a8b171838347c82c2fba04 (patch)
tree211a78888bf1fa02244bb7dcd5963eaa050b9199 /arch/sh/include/asm/bitops.h
parent4dfe43849a4c76ac5fc2486d20e37d459f980a00 (diff)
parent4d40e009c06742df9582f8b54f37f6cea0680ba1 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-spi
- SPI-NOR support
Diffstat (limited to 'arch/sh/include/asm/bitops.h')
-rw-r--r--arch/sh/include/asm/bitops.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h
index 8cb8385d76..765f28f116 100644
--- a/arch/sh/include/asm/bitops.h
+++ b/arch/sh/include/asm/bitops.h
@@ -153,6 +153,10 @@ static inline int ffs (int x)
}
#define PLATFORM_FFS
+#define hweight32(x) generic_hweight32(x)
+#define hweight16(x) generic_hweight16(x)
+#define hweight8(x) generic_hweight8(x)
+
#endif /* __KERNEL__ */
#endif /* __ASM_SH_BITOPS_H */