diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-30 11:13:03 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-30 23:47:31 +0200 |
commit | a2fa18f9f483a7fd1703996782778ee142a47141 (patch) | |
tree | e60cfc49916ab3bdca888a2b61c5b72e78211faf /include | |
parent | bd28ade42a334d7102cd3999331d9320f169bcbf (diff) | |
download | barebox-a2fa18f9f483a7fd1703996782778ee142a47141.tar.gz barebox-a2fa18f9f483a7fd1703996782778ee142a47141.tar.xz |
mtd: of: Make used partition binding configurable
So far we used the legacy partition binding when fixing up the
mtd partition nodes. Change this to default to the new binding
with a "partitions" submode. Make this behaviour configurable
though: This creates a new of_binding device variable for
mtd devices. This can be set to:
- "new": Use the new partition binding (default)
- "legacy": Use the old partition binding
- "donttouch": Do not touch the partition node
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/mtd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index f93fac00f2..fa35c7ef39 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -228,6 +228,7 @@ struct mtd_info { struct list_head partitions_entry; char *of_path; + unsigned int of_binding; }; int mtd_erase(struct mtd_info *mtd, struct erase_info *instr); |