summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKonstantin Porotchkin <kostap@marvell.com>2017-04-05 18:22:33 +0300
committerStefan Roese <sr@denx.de>2017-05-09 13:38:18 +0200
commitf59472e84e7a2f8d24eb1f25ce0eb2a5ea630f7a (patch)
tree1799e1fd463e6239de799d40df6902997f746ee8 /include
parent50eacd8eb1b6863f1a2ec66e34563bf7bf3f5ffb (diff)
downloadu-boot-f59472e84e7a2f8d24eb1f25ce0eb2a5ea630f7a.tar.gz
u-boot-f59472e84e7a2f8d24eb1f25ce0eb2a5ea630f7a.tar.xz
u-boot-f59472e84e7a2f8d24eb1f25ce0eb2a5ea630f7a.zip
arm64: mvebu: a8k: Add NAND configuration parameters
Add NAND configuration parameters to A8K shared config file. Add defconfig for db-88f7040 board with boot from NAND setup. Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Cc: Stefan Roese <sr@denx.de> Cc: Igal Liberman <igall@marvell.com> Cc: Nadav Haklai <nadavh@marvell.com> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/configs/mvebu_armada-8k.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/mvebu_armada-8k.h b/include/configs/mvebu_armada-8k.h
index 8ee5f27a97..9d3aeefcd0 100644
--- a/include/configs/mvebu_armada-8k.h
+++ b/include/configs/mvebu_armada-8k.h
@@ -76,11 +76,22 @@
#define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE
/* Environment in SPI NOR flash */
+#ifdef CONFIG_MVEBU_SPI_BOOT
#define CONFIG_ENV_IS_IN_SPI_FLASH
+/* Environment in NAND flash */
+#elif defined(CONFIG_MVEBU_NAND_BOOT)
+#define CONFIG_ENV_IS_IN_NAND
+#endif
+
#define CONFIG_ENV_OFFSET 0x180000 /* as Marvell U-Boot version */
#define CONFIG_ENV_SIZE (64 << 10) /* 64KiB */
#define CONFIG_ENV_SECT_SIZE (64 << 10) /* 64KiB sectors */
+#define CONFIG_SYS_MAX_NAND_DEVICE 1
+#define CONFIG_SYS_NAND_MAX_CHIPS 1
+#define CONFIG_SYS_NAND_ONFI_DETECTION
+#define CONFIG_SYS_NAND_USE_FLASH_BBT
+
/*
* Ethernet Driver configuration
*/