summaryrefslogtreecommitdiffstats
path: root/include/mci.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-01-13 15:06:57 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-19 15:21:33 +0100
commit6e9a87b39429c7f63627556d7e1ff6e9c5ac2b81 (patch)
tree66eef93b9d5fd54c86bbe5d556cecc768829683a /include/mci.h
parent32da9097e71d917803ab244ffdddeb3bead00d41 (diff)
downloadbarebox-6e9a87b39429c7f63627556d7e1ff6e9c5ac2b81.tar.gz
barebox-6e9a87b39429c7f63627556d7e1ff6e9c5ac2b81.tar.xz
mci: Allow to partition eMMC boot partitions
So far the eMMC boot partitions cannot be partitioned from the device tree. Since they are often 4MiB in size they are big enough to hold a barebox image and the environment. Add partition parsing to the boot partitions to allow this usecase. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mci.h')
-rw-r--r--include/mci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mci.h b/include/mci.h
index 0370547b0f..cc4712cfad 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -433,6 +433,7 @@ struct mci_part {
uint64_t size; /* partition size (in bytes) */
unsigned int part_cfg; /* partition type */
char *name;
+ int idx;
unsigned int area_type;
#define MMC_BLK_DATA_AREA_MAIN (1<<0)
#define MMC_BLK_DATA_AREA_BOOT (1<<1)