From c4a739ad50f59a8b924c99b46aec7d31bb26d125 Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Mon, 8 Apr 2019 15:30:52 +0200 Subject: stm32mp1: activate NAND and NOR support on EV1 Add the necessary configuration to have NAND and NOR support on ev1 board for BASIC boot (with SPL) or for TRUSTED boot (with TF-A). STM32MP> nand info Device 0: nand0, sector size 256 KiB Page size 4096 b OOB size 224 b Erase size 262144 b subpagesize 4096 b options 0x00184200 bbt options 0x00060000 STM32MP> sf probe SF: Detected mx66l51235l with page size 256 Bytes, erase size 64 KiB, total 64 MiB Signed-off-by: Patrick Delaunay --- include/configs/stm32mp1.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/configs/stm32mp1.h') diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h index e8be51a155..202c5180aa 100644 --- a/include/configs/stm32mp1.h +++ b/include/configs/stm32mp1.h @@ -74,6 +74,9 @@ #if !defined(CONFIG_SPL_BUILD) +/* NAND support */ +#define CONFIG_SYS_NAND_ONFI_DETECTION +#define CONFIG_SYS_MAX_NAND_DEVICE 1 #define BOOT_TARGET_DEVICES(func) \ func(MMC, mmc, 1) \ func(MMC, mmc, 0) \ -- cgit v1.2.3