summaryrefslogtreecommitdiff
path: root/dtc.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@arm.com>2018-06-28 15:37:01 -0600
committerDavid Gibson <david@gibson.dropbear.id.au>2018-06-29 11:06:49 +1000
commit32b9c61307629ac76c6ac0bead6f926d579b3d2c (patch)
tree29972344f301164e0368137f031d1410ca99b082 /dtc.h
parent6dcb8ba408ec18009083acaa9f85429afa39e453 (diff)
downloaddevice-tree-compiler-32b9c61307629ac76c6ac0bead6f926d579b3d2c.tar.gz
Preserve datatype markers when emitting dts format
If datatype markers are present in the property value, use them to output the data in the correct format instead of trying to guess the datatype. This also will preserve data grouping, such as in an interrupts list. This is a step forward for preserving and using datatype information when processing DTS/DTB files. Schema validation tools can use the datatype information to make sure a DT is correctly formed and intepreted. Signed-off-by: Grant Likely <grant.likely@arm.com> [robh: rework marker handling and fix label output] Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc.h')
-rw-r--r--dtc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dtc.h b/dtc.h
index e648cdf..303c2a6 100644
--- a/dtc.h
+++ b/dtc.h
@@ -74,6 +74,7 @@ typedef uint32_t cell_t;
/* Data blobs */
enum markertype {
+ TYPE_NONE,
REF_PHANDLE,
REF_PATH,
LABEL,