aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/arch/blackfin/include/asm/byteorder.h
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/arch/blackfin/include/asm/byteorder.h')
-rw-r--r--roms/u-boot/arch/blackfin/include/asm/byteorder.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/roms/u-boot/arch/blackfin/include/asm/byteorder.h b/roms/u-boot/arch/blackfin/include/asm/byteorder.h
new file mode 100644
index 00000000..98fb7bf7
--- /dev/null
+++ b/roms/u-boot/arch/blackfin/include/asm/byteorder.h
@@ -0,0 +1,24 @@
+/*
+ * U-boot - byteorder.h
+ *
+ * Copyright (c) 2005-2007 Analog Devices Inc.
+ *
+ * (C) Copyright 2000-2004
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef _BLACKFIN_BYTEORDER_H
+#define _BLACKFIN_BYTEORDER_H
+
+#include <asm/types.h>
+
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__)
+# define __BYTEORDER_HAS_U64__
+# define __SWAB_64_THRU_32__
+#endif
+
+#include <linux/byteorder/little_endian.h>
+
+#endif