[PATCH] ARM: stm32: Enable DFU MTD support on DHSOM

Patrice CHOTARD patrice.chotard at foss.st.com
Wed Nov 10 16:59:25 CET 2021


HI Marek

On 10/25/21 10:48 AM, Marek Vasut wrote:
> On 10/25/21 10:24 AM, Patrick DELAUNAY wrote:
>> Hi Marek,
>>
>> On 10/23/21 8:32 PM, Marek Vasut wrote:
>>> All the STM32MP1 based DHSOM have SPI NOR from which they boot,
>>> enable DFU_MTD support to make it possible to expose that SPI NOR
>>> via the DFU.
>>>
>>> Signed-off-by: Marek Vasut <marex at denx.de>
>>> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
>>> Cc: Patrick Delaunay <patrick.delaunay at 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 5b85f6ad03b..083e199e511 100644
>>> --- a/configs/stm32mp15_dhcom_basic_defconfig
>>> +++ b/configs/stm32mp15_dhcom_basic_defconfig
>>> @@ -81,6 +81,7 @@ CONFIG_TFTP_BLOCKSIZE=1536
>>>   CONFIG_STM32_ADC=y
>>>   CONFIG_SPL_BLOCK_CACHE=y
>>>   CONFIG_DFU_MMC=y
>>> +CONFIG_DFU_MTD=y
>>>   CONFIG_DFU_RAM=y
>>>   CONFIG_DFU_VIRT=y
>>>   CONFIG_SET_DFU_ALT_INFO=y
>>> @@ -98,6 +99,7 @@ CONFIG_SYS_I2C_EEPROM_ADDR=0x50
>>>   CONFIG_SUPPORT_EMMC_BOOT=y
>>>   CONFIG_STM32_SDMMC2=y
>>>   CONFIG_MTD=y
>>> +CONFIG_DM_MTD=y
>>>   CONFIG_SYS_MTDPARTS_RUNTIME=y
>>>   CONFIG_DM_SPI_FLASH=y
>>>   CONFIG_SPI_FLASH_MACRONIX=y
>>> diff --git a/configs/stm32mp15_dhcor_basic_defconfig b/configs/stm32mp15_dhcor_basic_defconfig
>>> index 37dd2754c03..01ac3edb93e 100644
>>> --- a/configs/stm32mp15_dhcor_basic_defconfig
>>> +++ b/configs/stm32mp15_dhcor_basic_defconfig
>>> @@ -79,6 +79,7 @@ CONFIG_STM32_ADC=y
>>>   CONFIG_SPL_BLOCK_CACHE=y
>>>   CONFIG_DFU_MMC=y
>>>   CONFIG_DFU_RAM=y
>>> +CONFIG_DFU_MTD=y
>>>   CONFIG_DFU_VIRT=y
>>>   CONFIG_GPIO_HOG=y
>>>   CONFIG_DM_HWSPINLOCK=y
>>> @@ -94,6 +95,7 @@ CONFIG_SYS_I2C_EEPROM_ADDR=0x53
>>>   CONFIG_SUPPORT_EMMC_BOOT=y
>>>   CONFIG_STM32_SDMMC2=y
>>>   CONFIG_MTD=y
>>> +CONFIG_DM_MTD=y
>>>   CONFIG_DM_SPI_FLASH=y
>>>   CONFIG_SPI_FLASH_MACRONIX=y
>>>   CONFIG_SPI_FLASH_SPANSION=y
>>
>>
>> minor, detected by
>>
>> grep -l stm32mp15 configs/* | ./tools/moveconfig.py -s -d -
> 
> I'll rather send Kconfig patch to sort the symbols in drivers/dfu/Kconfig alphabetically likely today, then this patch would be fine as-is.

Applied on u-boot-stm/master 
Thanks


More information about the U-Boot mailing list