From patchwork Tue Nov 6 23:06:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,v2,4/8] am335x_evm: enable NAND support Date: Tue, 06 Nov 2012 13:06:31 -0000 From: Ilya Yanok X-Patchwork-Id: 197576 Message-Id: <1352243195-64326-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 --- Changes in v2: - rebased onto master - minor config style fix (wrt nand) board/ti/am335x/board.c | 2 ++ include/configs/am335x_evm.h | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index b56a801..6908378 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -318,6 +318,8 @@ int board_init(void) gd->bd->bi_boot_params = PHYS_DRAM_1 + 0x100; + gpmc_init(); + return 0; } diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index b6e48f8..ded1cab 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -274,4 +274,16 @@ #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 */