From patchwork Tue Feb 25 14:33:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 236800 List-Id: U-Boot discussion From: michal.simek at xilinx.com (Michal Simek) Date: Tue, 25 Feb 2020 15:33:32 +0100 Subject: [PATCH 4/4] ARM: zynq: Enable DM for CFI NOR flash In-Reply-To: <3ad901af606e2355526aa363272db03a946156fc.1582641209.git.michal.simek@xilinx.com> References: <3ad901af606e2355526aa363272db03a946156fc.1582641209.git.michal.simek@xilinx.com> Message-ID: With multi defconfig NOR flash information about NOR should be taken from DT that's why there is no reason to specify address and sizes via fixed config. Signed-off-by: Michal Simek --- configs/xilinx_zynq_virt_defconfig | 1 + include/configs/zynq-common.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/xilinx_zynq_virt_defconfig b/configs/xilinx_zynq_virt_defconfig index 2e9f3a0f7508..08b43de103a1 100644 --- a/configs/xilinx_zynq_virt_defconfig +++ b/configs/xilinx_zynq_virt_defconfig @@ -61,6 +61,7 @@ CONFIG_MMC_SDHCI_ZYNQ=y CONFIG_MTD=y CONFIG_MTD_NOR_FLASH=y CONFIG_FLASH_CFI_DRIVER=y +CONFIG_CFI_FLASH=y CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y CONFIG_SYS_FLASH_CFI=y CONFIG_MTD_RAW_NAND=y diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index 33fac35f6e32..1eaf65b0a2a1 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -43,8 +43,6 @@ /* NOR */ #ifdef CONFIG_MTD_NOR_FLASH -# define CONFIG_SYS_FLASH_BASE 0xE2000000 -# define CONFIG_SYS_FLASH_SIZE (16 * 1024 * 1024) # define CONFIG_SYS_MAX_FLASH_BANKS 1 # define CONFIG_SYS_MAX_FLASH_SECT 512 # define CONFIG_SYS_FLASH_ERASE_TOUT 1000