cmd: nand/sf: update legacy mtd code
Base the legacy code to found MTD partition on MTD stack. This patch allows to found a MTD partition when they are are not defined in mtdparts variable but in device tree after commit dc339bf784f0 ("mtd: add support for parsing partitions defined in OF"). This patch also removes dependency with CONFIG_CMD_MTDPARTS as the selection of MTD partitions is not linked to the command to modified the mtdparts variables. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: I797845e1a7cb936f822bc1b2e554babf70cf1ea5 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/289325 ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com> ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com> Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com> |
---|
|
cmd/legacy-mtd-utils.c |
---|