u-boot/arch/arm/mach-stm32mp
Patrick Delaunay 53de79fecc stm32mp: stm32prog: accept device without partition
When partitions are not available on a device the command stm32prog raises
an error but a device can have no partition to check in init_device()
and the command need to continue to the next part_id.

This patch correct an issue for ram0 target, when block_dev and mtd
are NULL.

For example with the simple flashlayout file:

Opt	Part	Name	Type	Device	Offset	Binary
-	0x01	fsbl	Binary	none	0x0	tf-a-serialboot.stm32
-	0x03	ssbl	Binary	none	0x0	u-boot.stm32
P	0x10	kernel	System	ram0	0xC2000000	uImage.bin
P	0x11	dtb	FileSytem	ram0	0xC4000000	stm32mp157f-ev1.dtb

Fixes: ffc405e63b ("stm32mp: stm32prog: add upport of partial update")
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
2020-10-21 18:12:20 +02:00
..
cmd_stm32prog stm32mp: stm32prog: accept device without partition 2020-10-21 18:12:20 +02:00
include/mach arm: stm32: cleanup arch gpio.h 2020-10-21 18:12:20 +02:00
boot_params.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bsec.c arm: stm32mp: bsec: use IS_ENABLED to prevent ifdef 2020-08-13 09:52:49 +02:00
cmd_stm32key.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
config.mk Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
cpu.c stm32mp: limit size of cacheable DDR in pre-reloc stage 2020-10-21 18:12:20 +02:00
dram_init.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fdt.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
Kconfig stm32mp: limit size of cacheable DDR in pre-reloc stage 2020-10-21 18:12:20 +02:00
Makefile arm: stm32mp: spl: add bsec driver in SPL 2020-07-07 16:01:23 +02:00
psci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pwr_regulator.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
spl.c stm32mp: limit size of cacheable DDR in pre-reloc stage 2020-10-21 18:12:20 +02:00
syscon.c stm32mp1: pwr: use the last binding for pwr 2020-02-13 17:26:22 +01:00