devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] libfdt: add fdt type definitions in libfdt_env.h
@ 2013-02-27  1:36 Kim Phillips
  2013-02-27  1:36 ` [PATCH 2/3] dtc: import latest upstream dtc Kim Phillips
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Kim Phillips @ 2013-02-27  1:36 UTC (permalink / raw)
  To: Grant Likely, Rob Herring, Russell King
  Cc: Nicolas Pitre, devicetree-discuss, linux-arm-kernel, linux-kernel

in preparation for the forthcoming dtc update which adds fdt specific
types: fdt{16,32,64}_t.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
---
 arch/arm/boot/compressed/libfdt_env.h | 4 ++++
 include/linux/libfdt_env.h            | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/arch/arm/boot/compressed/libfdt_env.h b/arch/arm/boot/compressed/libfdt_env.h
index 1f4e718..17ae0f3 100644
--- a/arch/arm/boot/compressed/libfdt_env.h
+++ b/arch/arm/boot/compressed/libfdt_env.h
@@ -5,6 +5,10 @@
 #include <linux/string.h>
 #include <asm/byteorder.h>
 
+typedef __be16 fdt16_t;
+typedef __be32 fdt32_t;
+typedef __be64 fdt64_t;
+
 #define fdt16_to_cpu(x)		be16_to_cpu(x)
 #define cpu_to_fdt16(x)		cpu_to_be16(x)
 #define fdt32_to_cpu(x)		be32_to_cpu(x)
diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h
index 01508c7..da98097 100644
--- a/include/linux/libfdt_env.h
+++ b/include/linux/libfdt_env.h
@@ -5,6 +5,12 @@
 
 #include <asm/byteorder.h>
 
+typedef __be16 fdt16_t;
+typedef __be32 fdt32_t;
+typedef __be64 fdt64_t;
+
+#define fdt16_to_cpu(x) be16_to_cpu(x)
+#define cpu_to_fdt16(x) cpu_to_be16(x)
 #define fdt32_to_cpu(x) be32_to_cpu(x)
 #define cpu_to_fdt32(x) cpu_to_be32(x)
 #define fdt64_to_cpu(x) be64_to_cpu(x)
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-02-27 17:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-27  1:36 [PATCH 1/3] libfdt: add fdt type definitions in libfdt_env.h Kim Phillips
2013-02-27  1:36 ` [PATCH 2/3] dtc: import latest upstream dtc Kim Phillips
2013-02-27  3:08   ` Rob Landley
2013-02-27 16:45     ` Kim Phillips
2013-02-27  1:36 ` [PATCH 3/3] ARM: zImage: sparse fixes Kim Phillips
2013-02-27 17:05 ` [PATCH 1/3] libfdt: add fdt type definitions in libfdt_env.h Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).