[RFC PATCH 5/5] Convert CONFIG_AT91_EFLASH to Kconfig
Patrick Delaunay
patrick.delaunay at foss.st.com
Tue Dec 14 17:57:04 CET 2021
This converts the following to Kconfig:
CONFIG_AT91_EFLASH
Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
---
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..5267a7d15d 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 enhanced embedded flash 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 0da0b8b844..71e11af6f9 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
@@ -64,7 +65,6 @@ CONFIG_SYS_I2C_SOFT=y
CONFIG_SYS_I2C_SOFT_SLAVE=0
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 91b2599851..86bd0c576b 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 c9877b16ca..ea0bd39f41 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -37,7 +37,6 @@ CONFIG_AT91SAM9G45EKES
CONFIG_AT91SAM9G45_LCD_BASE
CONFIG_AT91SAM9M10G45EK
CONFIG_AT91_CAN
-CONFIG_AT91_EFLASH
CONFIG_AT91_GPIO_PULLUP
CONFIG_AT91_LED
CONFIG_AT91_WANTS_COMMON_PHY
--
2.25.1
More information about the U-Boot
mailing list