summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKate Liu <kate.liu@cortina-access.com>2020-12-11 13:46:13 -0800
committerTom Rini <trini@konsulko.com>2021-01-18 15:14:37 -0500
commit34a5addb7b57cb5a0ad5940ff7ef1df7edb0ff55 (patch)
tree104d7ee8e40513cdd6445d1f244194f421b9f08f /include
parent161df94b3c43674cd7850ae7c0d49be43c8dc520 (diff)
downloadu-boot-34a5addb7b57cb5a0ad5940ff7ef1df7edb0ff55.tar.gz
u-boot-34a5addb7b57cb5a0ad5940ff7ef1df7edb0ff55.tar.xz
u-boot-34a5addb7b57cb5a0ad5940ff7ef1df7edb0ff55.zip
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 <kate.liu@cortina-access.com> Signed-off-by: Alex Nemirovsky <alex.nemirovsky@cortina-access.com> CC: Tom Rini <trini@konsulko.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/presidio_asic.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/configs/presidio_asic.h b/include/configs/presidio_asic.h
index 34235b5a00..710731efd5 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 */