]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
am335x_evm: enable NAND support
authorIlya Yanok <ilya.yanok@cogentembedded.com>
Tue, 6 Nov 2012 13:06:31 +0000 (13:06 +0000)
committerTom Rini <trini@ti.com>
Mon, 10 Dec 2012 15:54:02 +0000 (08:54 -0700)
Enable NAND support for AM335X boards.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
board/ti/am335x/board.c
include/configs/am335x_evm.h

index b56a801a4d040965e0aa682dc314dcd2a87e2a08..6908378faa9a167b07ca99beeb92e676c544adeb 100644 (file)
@@ -318,6 +318,8 @@ int board_init(void)
 
        gd->bd->bi_boot_params = PHYS_DRAM_1 + 0x100;
 
+       gpmc_init();
+
        return 0;
 }
 
index b6e48f8a63e0b01818884e31334554ed1692096a..ded1cabab04479af658464b235a006ec95cd4b89 100644 (file)
 #define CONFIG_PHYLIB
 #define CONFIG_PHY_SMSC
 
+#define CONFIG_NAND
+/* NAND support */
+#ifdef CONFIG_NAND
+#define CONFIG_CMD_NAND
+#define CONFIG_NAND_OMAP_GPMC
+#define GPMC_NAND_ECC_LP_x16_LAYOUT    1
+#define CONFIG_SYS_NAND_BASE           (0x08000000)    /* physical address */
+                                                       /* to access nand at */
+                                                       /* CS0 */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1               /* Max number of NAND */
+#endif                                                 /* devices */
+
 #endif /* ! __CONFIG_AM335X_EVM_H */