mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 04:26:19 -04:00
am335x_evm: enable NAND support
Enable NAND support for AM335X boards. Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
This commit is contained in:
parent
8eb16b7f73
commit
98b5c26943
@ -318,6 +318,8 @@ int board_init(void)
|
|||||||
|
|
||||||
gd->bd->bi_boot_params = PHYS_DRAM_1 + 0x100;
|
gd->bd->bi_boot_params = PHYS_DRAM_1 + 0x100;
|
||||||
|
|
||||||
|
gpmc_init();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -274,4 +274,16 @@
|
|||||||
#define CONFIG_PHYLIB
|
#define CONFIG_PHYLIB
|
||||||
#define CONFIG_PHY_SMSC
|
#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 */
|
#endif /* ! __CONFIG_AM335X_EVM_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user