aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/test/190_files_align.dts
diff options
context:
space:
mode:
authorSimon Glass2021-01-06 21:35:18 -0700
committerSimon Glass2021-01-30 14:25:41 -0700
commit6eb9932668fa6bd8c659484b2d18d8a73713208c (patch)
tree6c4b726aaceedc0f28c522457dc14438a86316e9 /tools/binman/test/190_files_align.dts
parent5af9ebc4bcbcca91b21257c18cb94c78e7356980 (diff)
binman: Support alignment of files
When packing files it is sometimes useful to align the start of each file, e.g. if the flash driver can only access 32-bit-aligned data. Provides a new property to support this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test/190_files_align.dts')
-rw-r--r--tools/binman/test/190_files_align.dts12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/binman/test/190_files_align.dts b/tools/binman/test/190_files_align.dts
new file mode 100644
index 00000000000..213ba966d35
--- /dev/null
+++ b/tools/binman/test/190_files_align.dts
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+
+/ {
+ binman {
+ files {
+ pattern = "files/*.dat";
+ files-compress = "none";
+ files-align = <4>;
+ };
+ };
+};