]> git.dujemihanovic.xyz Git - u-boot.git/commit
stm32mp: stm32prog: use defines for virtual partition size
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 5 Jul 2021 07:39:01 +0000 (09:39 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 16 Jul 2021 07:28:46 +0000 (09:28 +0200)
commitb18c3abdea847aac4ad143c1ff150c2765f5b5ae
tree513997f19887cb58500f8b5a3ff0070a556df4e6
parent35049127f8a1ca2278d2354e1faa642d77cf2063
stm32mp: stm32prog: use defines for virtual partition size

Use the existing defines PMIC_SIZE and OTP_SIZE and a new define
CMD_SIZE for virtual partition size.

This patch corrects the size for OTP partition in alternate name
(1024 instead of 512) and avoids other alignment issues.

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
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c