]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: NAND support for DB-88F6820-AMC
authorChris Packham <judge.packham@gmail.com>
Thu, 22 Sep 2016 00:56:15 +0000 (12:56 +1200)
committerStefan Roese <sr@denx.de>
Sat, 24 Sep 2016 08:07:48 +0000 (10:07 +0200)
Enable the NAND interface on this board.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
arch/arm/dts/armada-385-amc.dts
configs/db-88f6820-amc_defconfig
include/configs/db-88f6820-amc.h

index 858138a3376b7ba5e517bde22b9c4c6d65732dd5..a5a8a7f186db5d1918eda3c9ff2568ebcde0150b 100644 (file)
                                        reg = <0>;
                                };
                        };
+
+                       flash@d0000 {
+                               status = "okay";
+                               num-cs = <1>;
+                               marvell,nand-keep-config;
+                               marvell,nand-enable-arbiter;
+                               nand-on-flash-bbt;
+                       };
                };
 
                pcie-controller {
index 5784c456676916c9d23cc852fc2915f491e6e298..18fcf0eb14386354e9636c84f695ef2e3fcaf5af 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
+CONFIG_CMD_NAND=y
 CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_I2C=y
@@ -28,6 +29,7 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_NAND_PXA3XX=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_BAR=y
 CONFIG_SPI_FLASH_MACRONIX=y
index 042ded832047d78a34849a9f7f29e4efb880036a..a6d022191eec3f5a7276b3f4b7c74beb2490f456 100644 (file)
 #define CONFIG_PCI_SCAN_SHOW
 #endif
 
+/* NAND */
+#define CONFIG_SYS_NAND_USE_FLASH_BBT
+#define CONFIG_SYS_NAND_ONFI_DETECTION
+
 #define CONFIG_SYS_CONSOLE_INFO_QUIET  /* don't print console @ startup */
 #define CONFIG_SYS_ALT_MEMTEST