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>
1 parent d5a1622 commit bcae9c3d27e8f907bcf452c8ebeef009efb9bbcf
@Patrick Delaunay Patrick Delaunay authored on 3 Feb 2023
Patrice Chotard committed on 29 May 2023
Showing 1 changed file
View
cmd/legacy-mtd-utils.c