aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/include/dt-bindings/mtd/partitions
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2021-01-20 18:36:48 +0100
committerPetr Štetiar <ynezz@true.cz>2021-01-22 21:03:11 +0100
commit01a1e21863aa30c7a2c252ff06b9aef0cf957970 (patch)
tree8157324075c0f77d339c13375970448fd948a9b2 /target/linux/generic/files/include/dt-bindings/mtd/partitions
parented39f7ec1abde0d447a2dde8a8dce8042a3c5b29 (diff)
downloadupstream-01a1e21863aa30c7a2c252ff06b9aef0cf957970.tar.gz
upstream-01a1e21863aa30c7a2c252ff06b9aef0cf957970.tar.bz2
upstream-01a1e21863aa30c7a2c252ff06b9aef0cf957970.zip
kernel: mtdsplit_uimage: replace "openwrt, okli" parser
The only difference between the "openwrt,okli" and the generic parser is the magic. Set this in device tree for all affected devices and remove the "openwrt,okli" parser. Tested-by: Michael Pratt <mcpratt@protonmail.com> # EAP300 v2, ENS202EXT and ENH202 Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'target/linux/generic/files/include/dt-bindings/mtd/partitions')
-rw-r--r--target/linux/generic/files/include/dt-bindings/mtd/partitions/uimage.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/generic/files/include/dt-bindings/mtd/partitions/uimage.h b/target/linux/generic/files/include/dt-bindings/mtd/partitions/uimage.h
index 29eec38dd2..407e46ce2c 100644
--- a/target/linux/generic/files/include/dt-bindings/mtd/partitions/uimage.h
+++ b/target/linux/generic/files/include/dt-bindings/mtd/partitions/uimage.h
@@ -188,4 +188,9 @@
#define IH_MAGIC 0x27051956 /* Image Magic Number */
#define IH_NMLEN 32 /* Image Name Length */
+/*
+ * Magic values specific to "openwrt,uimage" partitions
+ */
+#define IH_MAGIC_OKLI 0x4f4b4c49 /* 'OKLI' */
+
#endif /* __UIMAGE_H__ */