]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp: stm32prog: Add Kconfig file for stm32prog command
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 25 Feb 2021 12:37:00 +0000 (13:37 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 11 Mar 2021 16:41:17 +0000 (17:41 +0100)
Move CONFIG_CMD_STM32PROG in a specific Kconfig file for stm32prog command.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/Kconfig
arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig [new file with mode: 0644]

index f538d7cb838ead8d447714d4622f54755855e531..079d66a80c1d32262cc0d843386cdf89e37af436 100644 (file)
@@ -121,23 +121,6 @@ config STM32_ETZPC
        help
          Say y to enable STM32 Extended TrustZone Protection
 
-config CMD_STM32PROG
-       bool "command stm32prog for STM32CudeProgrammer"
-       select DFU
-       select DFU_RAM
-       select DFU_VIRT
-       select PARTITION_TYPE_GUID
-       imply CMD_GPT if MMC
-       imply CMD_MTD if MTD
-       imply DFU_MMC if MMC
-       imply DFU_MTD if MTD
-       help
-               activate a specific command stm32prog for STM32MP soc family
-               witch update the device with the tools STM32CubeProgrammer,
-               using UART with STM32 protocol or USB with DFU protocol
-               NB: access to not volatile memory (NOR/NAND/SD/eMMC) is based
-                   on U-Boot DFU framework
-
 config CMD_STM32KEY
        bool "command stm32key to fuse public key hash"
        default y
@@ -177,6 +160,7 @@ config DEBUG_UART_CLOCK
        default 64000000
 endif
 
+source "arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig"
 source "board/st/stm32mp1/Kconfig"
 source "board/dhelectronics/dh_stm32mp1/Kconfig"
 
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig b/arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig
new file mode 100644 (file)
index 0000000..609a678
--- /dev/null
@@ -0,0 +1,18 @@
+
+config CMD_STM32PROG
+       bool "command stm32prog for STM32CudeProgrammer"
+       select DFU
+       select DFU_RAM
+       select DFU_VIRT
+       select PARTITION_TYPE_GUID
+       imply CMD_GPT if MMC
+       imply CMD_MTD if MTD
+       imply DFU_MMC if MMC
+       imply DFU_MTD if MTD
+       help
+               activate a specific command stm32prog for STM32MP soc family
+               witch update the device with the tools STM32CubeProgrammer,
+               using UART with STM32 protocol or USB with DFU protocol
+               NB: access to not volatile memory (NOR/NAND/SD/eMMC) is based
+                   on U-Boot DFU framework
+