diff mbox series

[3/3] ARM: stm32: Increment WDT by default on DHSOM

Message ID 20221206023515.113556-3-marex@denx.de
State Accepted
Commit f708283ab9d984c025f10dbd22f619d1d6cf0175
Delegated to: Patrice Chotard
Headers show
Series [1/3] ARM: stm32: Enable assorted ST specific commands on DHSOM | expand

Commit Message

Marek Vasut Dec. 6, 2022, 2:35 a.m. UTC
Enable watchdog timer on the DHSOM by default, both in U-Boot proper and
in SPL. This can be used in combination with boot counter by either SPL
or U-Boot proper to boot either copy of system software, e.g. in case of
full A/B update strategy.

Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
 configs/stm32mp15_dhcom_basic_defconfig | 2 ++
 configs/stm32mp15_dhcor_basic_defconfig | 2 ++
 2 files changed, 4 insertions(+)

Comments

Patrice CHOTARD Dec. 6, 2022, 7:38 a.m. UTC | #1
Hi Marek

On 12/6/22 03:35, Marek Vasut wrote:
> Enable watchdog timer on the DHSOM by default, both in U-Boot proper and
> in SPL. This can be used in combination with boot counter by either SPL
> or U-Boot proper to boot either copy of system software, e.g. in case of
> full A/B update strategy.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> ---
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>  configs/stm32mp15_dhcom_basic_defconfig | 2 ++
>  configs/stm32mp15_dhcor_basic_defconfig | 2 ++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/configs/stm32mp15_dhcom_basic_defconfig b/configs/stm32mp15_dhcom_basic_defconfig
> index f1eb022bc66..26c2e73aa04 100644
> --- a/configs/stm32mp15_dhcom_basic_defconfig
> +++ b/configs/stm32mp15_dhcom_basic_defconfig
> @@ -175,6 +175,8 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0483
>  CONFIG_USB_GADGET_PRODUCT_NUM=0x5720
>  CONFIG_USB_GADGET_DWC2_OTG=y
>  CONFIG_USB_GADGET_DOWNLOAD=y
> +CONFIG_WDT=y
> +CONFIG_WDT_STM32MP=y
>  CONFIG_FAT_WRITE=y
>  # CONFIG_BINMAN_FDT is not set
>  CONFIG_FDT_FIXUP_PARTITIONS=y
> diff --git a/configs/stm32mp15_dhcor_basic_defconfig b/configs/stm32mp15_dhcor_basic_defconfig
> index 2e9f2049784..f76e13eafd7 100644
> --- a/configs/stm32mp15_dhcor_basic_defconfig
> +++ b/configs/stm32mp15_dhcor_basic_defconfig
> @@ -174,6 +174,8 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0483
>  CONFIG_USB_GADGET_PRODUCT_NUM=0x5720
>  CONFIG_USB_GADGET_DWC2_OTG=y
>  CONFIG_USB_GADGET_DOWNLOAD=y
> +CONFIG_WDT=y
> +CONFIG_WDT_STM32MP=y
>  CONFIG_FAT_WRITE=y
>  # CONFIG_BINMAN_FDT is not set
>  CONFIG_FDT_FIXUP_PARTITIONS=y

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Thanks
Patrice
Patrick DELAUNAY Dec. 6, 2022, 9:36 a.m. UTC | #2
Hi,

On 12/6/22 03:35, Marek Vasut wrote:
> Enable watchdog timer on the DHSOM by default, both in U-Boot proper and
> in SPL. This can be used in combination with boot counter by either SPL
> or U-Boot proper to boot either copy of system software, e.g. in case of
> full A/B update strategy.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> ---
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>   configs/stm32mp15_dhcom_basic_defconfig | 2 ++
>   configs/stm32mp15_dhcor_basic_defconfig | 2 ++
>   2 files changed, 4 insertions(+)
>



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

Thanks
Patrick
Patrice CHOTARD Dec. 7, 2022, 4:09 p.m. UTC | #3
On 12/6/22 08:38, Patrice CHOTARD wrote:
> Hi Marek
> 
> On 12/6/22 03:35, Marek Vasut wrote:
>> Enable watchdog timer on the DHSOM by default, both in U-Boot proper and
>> in SPL. This can be used in combination with boot counter by either SPL
>> or U-Boot proper to boot either copy of system software, e.g. in case of
>> full A/B update strategy.
>>
>> Signed-off-by: Marek Vasut <marex@denx.de>
>> ---
>> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
>> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
>> ---
>>  configs/stm32mp15_dhcom_basic_defconfig | 2 ++
>>  configs/stm32mp15_dhcor_basic_defconfig | 2 ++
>>  2 files changed, 4 insertions(+)
>>
>> diff --git a/configs/stm32mp15_dhcom_basic_defconfig b/configs/stm32mp15_dhcom_basic_defconfig
>> index f1eb022bc66..26c2e73aa04 100644
>> --- a/configs/stm32mp15_dhcom_basic_defconfig
>> +++ b/configs/stm32mp15_dhcom_basic_defconfig
>> @@ -175,6 +175,8 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0483
>>  CONFIG_USB_GADGET_PRODUCT_NUM=0x5720
>>  CONFIG_USB_GADGET_DWC2_OTG=y
>>  CONFIG_USB_GADGET_DOWNLOAD=y
>> +CONFIG_WDT=y
>> +CONFIG_WDT_STM32MP=y
>>  CONFIG_FAT_WRITE=y
>>  # CONFIG_BINMAN_FDT is not set
>>  CONFIG_FDT_FIXUP_PARTITIONS=y
>> diff --git a/configs/stm32mp15_dhcor_basic_defconfig b/configs/stm32mp15_dhcor_basic_defconfig
>> index 2e9f2049784..f76e13eafd7 100644
>> --- a/configs/stm32mp15_dhcor_basic_defconfig
>> +++ b/configs/stm32mp15_dhcor_basic_defconfig
>> @@ -174,6 +174,8 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0483
>>  CONFIG_USB_GADGET_PRODUCT_NUM=0x5720
>>  CONFIG_USB_GADGET_DWC2_OTG=y
>>  CONFIG_USB_GADGET_DOWNLOAD=y
>> +CONFIG_WDT=y
>> +CONFIG_WDT_STM32MP=y
>>  CONFIG_FAT_WRITE=y
>>  # CONFIG_BINMAN_FDT is not set
>>  CONFIG_FDT_FIXUP_PARTITIONS=y
> 
> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Thanks
> Patrice
Applied to u-boot-stm/master

Thanks
Patrice
diff mbox series

Patch

diff --git a/configs/stm32mp15_dhcom_basic_defconfig b/configs/stm32mp15_dhcom_basic_defconfig
index f1eb022bc66..26c2e73aa04 100644
--- a/configs/stm32mp15_dhcom_basic_defconfig
+++ b/configs/stm32mp15_dhcom_basic_defconfig
@@ -175,6 +175,8 @@  CONFIG_USB_GADGET_VENDOR_NUM=0x0483
 CONFIG_USB_GADGET_PRODUCT_NUM=0x5720
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_WDT=y
+CONFIG_WDT_STM32MP=y
 CONFIG_FAT_WRITE=y
 # CONFIG_BINMAN_FDT is not set
 CONFIG_FDT_FIXUP_PARTITIONS=y
diff --git a/configs/stm32mp15_dhcor_basic_defconfig b/configs/stm32mp15_dhcor_basic_defconfig
index 2e9f2049784..f76e13eafd7 100644
--- a/configs/stm32mp15_dhcor_basic_defconfig
+++ b/configs/stm32mp15_dhcor_basic_defconfig
@@ -174,6 +174,8 @@  CONFIG_USB_GADGET_VENDOR_NUM=0x0483
 CONFIG_USB_GADGET_PRODUCT_NUM=0x5720
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_WDT=y
+CONFIG_WDT_STM32MP=y
 CONFIG_FAT_WRITE=y
 # CONFIG_BINMAN_FDT is not set
 CONFIG_FDT_FIXUP_PARTITIONS=y