From patchwork Tue Oct 30 22:47:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,v1,4/8] am335x_evm: enable NAND support Date: Tue, 30 Oct 2012 12:47:39 -0000 From: Ilya Yanok X-Patchwork-Id: 195641 Message-Id: <1351637263-17464-5-git-send-email-ilya.yanok@cogentembedded.com> To: u-boot@lists.denx.de, Tom Rini , Scott Wood Cc: Ilya Yanok Enable NAND support for AM335X boards. Signed-off-by: Ilya Yanok --- include/configs/am335x_evm.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 339d4bd..a89cdcd 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -254,4 +254,19 @@ #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 NAND_BASE (0x08000000) +#define CONFIG_SYS_NAND_ADDR NAND_BASE /* physical address */ + /* to access nand */ +#define CONFIG_SYS_NAND_BASE NAND_BASE /* 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 */