summaryrefslogtreecommitdiff
path: root/dtc.h
diff options
context:
space:
mode:
authorTim Wang <timwang@asrmicro.com>2016-07-18 15:56:53 +0800
committerDavid Gibson <david@gibson.dropbear.id.au>2016-09-22 14:25:50 +1000
commit874f40588d3eb7e406521117c6e24d5a3376a77e (patch)
tree07dde61a1be800cff7da07d8eada795936e11f42 /dtc.h
parent1ed45d40a137299671b8d0c924e87f9c080899d7 (diff)
downloaddevice-tree-compiler-874f40588d3eb7e406521117c6e24d5a3376a77e.tar.gz
Implement the -a option to pad dtb aligned
There is one condition that need cat the dtb files into one dtb.img which can support several boards use same SoC platform. And the original dtb file size is not aligned to any base. This may cause "Synchronous Abort" when load from a unligned address on some SoC machine, such as ARM. So this patch implement the -a <aligned number> option to pad zero at the end of dtb files and make the dtb size aligned to <aligned number>. Then, the aligned dtbs can cat together and load without "Synchronous Abort". Signed-off-by: Tim Wang <timwang@asrmicro.com> 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 56212c8..32009bc 100644
--- a/dtc.h
+++ b/dtc.h
@@ -53,6 +53,7 @@ extern int quiet; /* Level of quietness */
extern int reservenum; /* Number of memory reservation slots */
extern int minsize; /* Minimum blob size */
extern int padsize; /* Additional padding to blob */
+extern int alignsize; /* Additional padding to blob accroding to the alignsize */
extern int phandle_format; /* Use linux,phandle or phandle properties */
#define PHANDLE_LEGACY 0x1