mci: Add devicetree partition parsing
MMC/SD cards normally have a DOS/GPT partition table, but sometimes barebox uses the unpartitioned area to store its environment. Add devicetree partition parsing also for SD/MMC cards so that we have a way to describe the partition in the devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
3095043274
commit
da6c4b21a8
|
@ -1558,6 +1558,7 @@ static int mci_card_probe(struct mci *mci)
|
|||
dev_warn(&mci->dev, "No partition table found\n");
|
||||
rc = 0; /* it's not a failure */
|
||||
}
|
||||
of_parse_partitions(&part->blk.cdev, host->hw_dev->device_node);
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_MCI_MMC_BOOT_PARTITIONS) &&
|
||||
|
|
Loading…
Reference in New Issue