From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id EBFFCC433EF for ; Tue, 4 Jan 2022 13:24:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 504DA82FB5; Tue, 4 Jan 2022 14:24:20 +0100 (CET) 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="JD7TpsAx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A0B8F82EC6; Tue, 4 Jan 2022 14:24:18 +0100 (CET) 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 A6A8A8302C for ; Tue, 4 Jan 2022 14:24:14 +0100 (CET) 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=7003d21681=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 ESMTP id 204923ST029252; Tue, 4 Jan 2022 14:24:12 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=fz3r8iXrtqX+X4OmYDZQQNZbDcqGvGToeNKj/3U49Ns=; b=JD7TpsAxbEZRnnykYUWwLTTd9Bhe/pF0h/EqdHWSZ+6aVA2ziLrzBB4DqaCbN/FmPGrV HURRsSBO5r/++lcv2cSlb3SrrP3nAa9YkjbeV93UoMRUH4b+6PyF9p3SAN3GbC6LU7Rm 9i1xxfPGFtDmwtava3gdxhHEv/NRdv3wfFd1r8oIoh0p/nMsT13WKuCwkCLkdhSgz8Wd psiTcUsQGbVX2GsJRYqOhN9Tl55krTnbWgyN7HJ0QPKtfz+rLHpoJg3aLTNnXkncAfov UBl0G3tnkmZaruvZB1MoEnCi5dQqDasWUjNTaps7MZT2XX3eflMVEXoxl/1o8JnM2Wj6 Fg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3dcagrb2h7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jan 2022 14:24:12 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B776710003D; Tue, 4 Jan 2022 14:24:11 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B00A12A4D61; Tue, 4 Jan 2022 14:24:11 +0100 (CET) Received: from localhost (10.75.127.51) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Tue, 4 Jan 2022 14:24:11 +0100 From: Patrick Delaunay To: CC: Marek Vasut , Simon Glass , Patrick Delaunay , Eugen Hristev , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Priyanka Jain , Stefan Roese , egnite GmbH , U-Boot STM32 Subject: [PATCH v1 5/5] Convert CONFIG_AT91_EFLASH to Kconfig Date: Tue, 4 Jan 2022 14:24:01 +0100 Message-ID: <20220104142328.v1.5.I5fc8065d06afb12c358588f9078ba15b1cbbe94c@changeid> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220104132401.3573475-1-patrick.delaunay@foss.st.com> References: <20220104132401.3573475-1-patrick.delaunay@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-04_05,2022-01-04_01,2021-12-02_01 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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 This converts the following to Kconfig: CONFIG_AT91_EFLASH Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- arch/arm/mach-at91/Kconfig | 8 ++++++++ configs/ethernut5_defconfig | 2 +- include/configs/ethernut5.h | 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 4448ca1592..00f31045d6 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig @@ -302,6 +302,14 @@ config ATMEL_SFR config SYS_SOC default "at91" +config AT91_EFLASH + bool "Support AT91 flash driver" + depends on AT91SAM9XE + select USE_SYS_MAX_FLASH_BANKS + help + Enable the driver for the embedded flash used in the Atmel + AT91SAM9XE devices. + source "board/atmel/at91sam9260ek/Kconfig" source "board/atmel/at91sam9261ek/Kconfig" source "board/atmel/at91sam9263ek/Kconfig" diff --git a/configs/ethernut5_defconfig b/configs/ethernut5_defconfig index 5d98318aab..7a701db0e1 100644 --- a/configs/ethernut5_defconfig +++ b/configs/ethernut5_defconfig @@ -4,6 +4,7 @@ CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y CONFIG_SYS_TEXT_BASE=0x27000000 CONFIG_SYS_MALLOC_LEN=0x121000 +CONFIG_AT91_EFLASH=y CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_TARGET_ETHERNUT5=y CONFIG_NR_DRAM_BANKS=1 @@ -66,7 +67,6 @@ CONFIG_SYS_I2C_SOFT_SLAVE=0 CONFIG_GENERIC_ATMEL_MCI=y CONFIG_MTD=y CONFIG_MTD_NOR_FLASH=y -CONFIG_USE_SYS_MAX_FLASH_BANKS=y CONFIG_MTD_RAW_NAND=y # CONFIG_SYS_NAND_USE_FLASH_BBT is not set CONFIG_NAND_ATMEL=y diff --git a/include/configs/ethernut5.h b/include/configs/ethernut5.h index d72f704636..d88c14ac44 100644 --- a/include/configs/ethernut5.h +++ b/include/configs/ethernut5.h @@ -33,7 +33,6 @@ /* 512kB on-chip NOR flash */ # define CONFIG_SYS_FLASH_BASE 0x00200000 /* AT91SAM9XE_FLASH_BASE */ -# define CONFIG_AT91_EFLASH # define CONFIG_SYS_MAX_FLASH_SECT 32 # define CONFIG_EFLASH_PROTSECTORS 1 diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 7726243f22..3a923abf7e 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -18,7 +18,6 @@ CONFIG_AT91SAM9G20EK CONFIG_AT91SAM9G20EK_2MMC CONFIG_AT91SAM9G45_LCD_BASE CONFIG_AT91SAM9M10G45EK -CONFIG_AT91_EFLASH CONFIG_AT91_GPIO_PULLUP CONFIG_AT91_LED CONFIG_AT91_WANTS_COMMON_PHY -- 2.25.1