]> git.baikalelectronics.ru Git - uboot.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)
commitff86ce676dd7228ee9c8fa9b8115184fc7e28fe8
tree3db8392db5b961b61a73d8f5e611233d766893cc
parent6ef9b991782d53e3cb79453e86ad29cf0940d212
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 53dac68014d7 ("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