Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81155C433F5 for ; Mon, 25 Oct 2021 08:24:46 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E755A60EE9 for ; Mon, 25 Oct 2021 08:24:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E755A60EE9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D89BB83461; Mon, 25 Oct 2021 10:24:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="l3rLPUl+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0945B834AB; Mon, 25 Oct 2021 10:24:41 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 89C7D834A2 for ; Mon, 25 Oct 2021 10:24:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=4932d19e38=patrick.delaunay@foss.st.com Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19P5Uocm002514; Mon, 25 Oct 2021 10:24:36 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=lxSIrtQtvs1eJIB1gt8i3lwsMsPanWSz+WGQVomwK5c=; b=l3rLPUl+rkZbxOHcuGao6VXqDTaMfXnwwnH6bAUxUO77kxREh8yX3uGQCHegIXr9opBt jr/32dn/9E+hHhj3cDr6u4SXOwlHroUKUFTrzEjLO12vX3Hn5gm9jZCv3X4jzZPK/vbk 5feo7s2R/Q187XXZRygqcI+l0w4kwgKoTz7P8T0SwulgGNCYMv4ppGX1yYT6UKof/T4K YovGtW6RJZPMjFKPJRjGGjnQLL5hni/mLNZllpEV7POCwhzrkjcwF04XIiuHKk3ZYvSa XPte2WdSrZhfSl0Ms6G+DaGkByxWXWqBZozDR3XtVW6XvjeWZ5Ny8T9Ee/wbrqc8+Zwl 8A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3bwjg3a6be-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Oct 2021 10:24:36 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E1EE510002A; Mon, 25 Oct 2021 10:24:35 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D18802138FC; Mon, 25 Oct 2021 10:24:35 +0200 (CEST) Received: from lmecxl0994.lme.st.com (10.75.127.50) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 25 Oct 2021 10:24:35 +0200 Subject: Re: [PATCH] ARM: stm32: Enable DFU MTD support on DHSOM To: Marek Vasut , CC: Patrice Chotard References: <20211023183248.106791-1-marex@denx.de> From: Patrick DELAUNAY Message-ID: Date: Mon, 25 Oct 2021 10:24:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211023183248.106791-1-marex@denx.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-25_02,2021-10-25_01,2020-04-07_01 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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 > Cc: Patrice Chotard > Cc: Patrick Delaunay > --- > 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 - index 083e199e51..9df475d156 100644 @@ -81,8 +81,8 @@ 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_MTD=y  CONFIG_DFU_VIRT=y  CONFIG_SET_DFU_ALT_INFO=y  CONFIG_GPIO_HOG=y Reviewed-by: Patrick Delaunay Thanks Patrick