summaryrefslogtreecommitdiff
path: root/arch/openrisc
diff options
context:
space:
mode:
authorStefan Kristiansson <stefan.kristiansson@saunalahti.fi>2012-02-22 07:10:09 +0000
committerTom Rini <trini@ti.com>2012-10-02 11:55:45 -0700
commitf9882246a0784f20f12f997a5b1f8a0496d4ffb4 (patch)
tree8feac0a96a55eb27b53f6f88c65b4c02619724b6 /arch/openrisc
parent2bcffa6faa6208e7202f039ddecb4a8e54d71102 (diff)
downloadu-boot-imx-f9882246a0784f20f12f997a5b1f8a0496d4ffb4.zip
u-boot-imx-f9882246a0784f20f12f997a5b1f8a0496d4ffb4.tar.gz
u-boot-imx-f9882246a0784f20f12f997a5b1f8a0496d4ffb4.tar.bz2
openrisc/bitops: add hweightX defines
Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Diffstat (limited to 'arch/openrisc')
-rw-r--r--arch/openrisc/include/asm/bitops.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/openrisc/include/asm/bitops.h b/arch/openrisc/include/asm/bitops.h
index c001a5d..c76a409 100644
--- a/arch/openrisc/include/asm/bitops.h
+++ b/arch/openrisc/include/asm/bitops.h
@@ -25,4 +25,8 @@
#define PLATFORM_FFS
#include <asm/bitops/ffs.h>
+#define hweight32(x) generic_hweight32(x)
+#define hweight16(x) generic_hweight16(x)
+#define hweight8(x) generic_hweight8(x)
+
#endif /* __ASM_GENERIC_BITOPS_H */