aboutsummaryrefslogtreecommitdiff
path: root/tools/dtoc
diff options
context:
space:
mode:
authorSimon Glass2018-10-01 12:22:49 -0600
committerSimon Glass2018-10-09 04:40:27 -0600
commit41b781ddf1869f5349e05ace888979f3673fe8c6 (patch)
treec7c4155b3dfa572cc2f9aba0186c4f61d2b11b52 /tools/dtoc
parent8c466ed3807811de0c5daf3e803048a6f4bd7401 (diff)
dtoc: Fix the value of SetInt()
This does not set the correct value at present. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc')
-rw-r--r--tools/dtoc/fdt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
index 2df2d4b0cc7..9ad72f89ec7 100644
--- a/tools/dtoc/fdt.py
+++ b/tools/dtoc/fdt.py
@@ -171,7 +171,7 @@ class Prop:
val: Integer value (32-bit, single cell)
"""
self.bytes = struct.pack('>I', val);
- self.value = val
+ self.value = self.bytes
self.type = TYPE_INT
self.dirty = True