]> git.dujemihanovic.xyz Git - u-boot.git/commit
stm32mp: stm32prog: Remove usage of "mtdparts" function
authorPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 8 Jun 2023 15:16:40 +0000 (17:16 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 16 Jun 2023 09:01:16 +0000 (11:01 +0200)
commita142a1dd908073f85f5324dfb2dba92d25c86891
tree3db8392db5b961b61a73d8f5e611233d766893cc
parent28d3439f1b343f1299c8e92a673ceca2d9296baa
stm32mp: stm32prog: Remove usage of "mtdparts" function

Motivation for this patch is to remove usage of function define
in cmd/mtdparts.c interface, based on env variables mtdids and mtdparts:
mtdparts_init() and find_dev_and_part().
See commit 938db6fe5da3 ("cmd: mtdparts: describe as legacy")

Now, all MTD devices are populated with their partition's information
found in DT, accessible in MTD devices. Use these information to find
the wanted partitions, no more need of find_dev_and_part() usage.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c