From 34a5addb7b57cb5a0ad5940ff7ef1df7edb0ff55 Mon Sep 17 00:00:00 2001 From: Kate Liu Date: Fri, 11 Dec 2020 13:46:13 -0800 Subject: board: presidio: Add Parallel NAND support Set environment for Nand flash (U-boot 2020.04): - add nand flash in the device tree - add new default configuration file for G3 using parallel Nand - set nand parameters in presidio_asic.h Signed-off-by: Kate Liu Signed-off-by: Alex Nemirovsky CC: Tom Rini Reviewed-by: Tom Rini --- include/configs/presidio_asic.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/configs/presidio_asic.h b/include/configs/presidio_asic.h index 34235b5a00c..710731efd56 100644 --- a/include/configs/presidio_asic.h +++ b/include/configs/presidio_asic.h @@ -67,4 +67,13 @@ #define CONFIG_SYS_MAXARGS 64 #define CONFIG_EXTRA_ENV_SETTINGS "silent=y\0" +/* nand driver parameters */ +#ifdef CONFIG_TARGET_PRESIDIO_ASIC + #define CONFIG_SYS_NAND_ONFI_DETECTION + #define CONFIG_SYS_MAX_NAND_DEVICE 1 + #define CONFIG_SYS_NAND_MAX_CHIPS 1 + #define CONFIG_SYS_NAND_BASE CONFIG_SYS_FLASH_BASE + #define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE } +#endif + #endif /* __PRESIDIO_ASIC_H */ -- cgit v1.2.3