diff mbox series

[1/4] stm32mp: stm32prog: Add Kconfig file for stm32prog command

Message ID 20210225133652.1.I2edaac51f69d6eb9e62ab7aeb01a3f352a364af5@changeid
State Accepted
Commit 2dc2216692f41f724dae137946e8c5d71f6ff038
Delegated to: Patrice Chotard
Headers show
Series [1/4] stm32mp: stm32prog: Add Kconfig file for stm32prog command | expand

Commit Message

Patrick Delaunay Feb. 25, 2021, 12:37 p.m. UTC
Move CONFIG_CMD_STM32PROG in a specific Kconfig file for stm32prog command.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---

 arch/arm/mach-stm32mp/Kconfig               | 18 +-----------------
 arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 17 deletions(-)
 create mode 100644 arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig

Comments

Patrice CHOTARD March 9, 2021, 1:07 p.m. UTC | #1
Hi Patrick

On 2/25/21 1:37 PM, Patrick Delaunay wrote:
> Move CONFIG_CMD_STM32PROG in a specific Kconfig file for stm32prog command.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
> 
>  arch/arm/mach-stm32mp/Kconfig               | 18 +-----------------
>  arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig | 18 ++++++++++++++++++
>  2 files changed, 19 insertions(+), 17 deletions(-)
>  create mode 100644 arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig
> 
> diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig
> index f538d7cb83..079d66a80c 100644
> --- a/arch/arm/mach-stm32mp/Kconfig
> +++ b/arch/arm/mach-stm32mp/Kconfig
> @@ -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
> index 0000000000..609a678793
> --- /dev/null
> +++ b/arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig
> @@ -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
> +
> 


Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>

Thanks
Patrice
Patrice CHOTARD March 12, 2021, 12:27 p.m. UTC | #2
Hi

On 3/9/21 2:07 PM, Patrice CHOTARD wrote:
> Hi Patrick
> 
> On 2/25/21 1:37 PM, Patrick Delaunay wrote:
>> Move CONFIG_CMD_STM32PROG in a specific Kconfig file for stm32prog command.
>>
>> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
>> ---
>>
>>  arch/arm/mach-stm32mp/Kconfig               | 18 +-----------------
>>  arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig | 18 ++++++++++++++++++
>>  2 files changed, 19 insertions(+), 17 deletions(-)
>>  create mode 100644 arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig
>>
>> diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig
>> index f538d7cb83..079d66a80c 100644
>> --- a/arch/arm/mach-stm32mp/Kconfig
>> +++ b/arch/arm/mach-stm32mp/Kconfig
>> @@ -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
>> index 0000000000..609a678793
>> --- /dev/null
>> +++ b/arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig
>> @@ -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
>> +
>>
> 
> 
> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
> 
> Thanks
> Patrice
> _______________________________________________
> Uboot-stm32 mailing list
> Uboot-stm32@st-md-mailman.stormreply.com
> https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32
> 
Applied to u-boot-stm/next

Thanks

Patrice
diff mbox series

Patch

diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig
index f538d7cb83..079d66a80c 100644
--- a/arch/arm/mach-stm32mp/Kconfig
+++ b/arch/arm/mach-stm32mp/Kconfig
@@ -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
index 0000000000..609a678793
--- /dev/null
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig
@@ -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
+