summaryrefslogtreecommitdiff
path: root/include/part.h
diff options
context:
space:
mode:
authorAlexey Romanov <avromanov@salutedevices.com>2024-07-18 08:46:04 +0300
committerMichael Trimarchi <michael@amarulasolutions.com>2024-08-08 09:27:45 +0200
commitc29a6daec184dd429bfccee42179bb5b079843b8 (patch)
tree401b0f8112d47dbc375df16347927641ee205128 /include/part.h
parentb7d5ce05b1b52136af09cf34541c6a91079a4b86 (diff)
disk: support MTD partitions
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov <avromanov@salutedevices.com> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Diffstat (limited to 'include/part.h')
-rw-r--r--include/part.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/part.h b/include/part.h
index b187ec4b4bd..a5994f2cace 100644
--- a/include/part.h
+++ b/include/part.h
@@ -30,12 +30,15 @@ struct block_drvr {
#define PART_TYPE_ISO 0x03
#define PART_TYPE_AMIGA 0x04
#define PART_TYPE_EFI 0x05
+#define PART_TYPE_MTD 0x06
/* maximum number of partition entries supported by search */
#define DOS_ENTRY_NUMBERS 8
#define ISO_ENTRY_NUMBERS 64
#define MAC_ENTRY_NUMBERS 64
#define AMIGA_ENTRY_NUMBERS 8
+#define MTD_ENTRY_NUMBERS 64
+
/*
* Type string for U-Boot bootable partitions
*/