diff options
author | Kyungmin Park <kmpark@infradead.org> | 2008-11-04 09:24:07 +0900 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2009-01-23 10:32:44 -0600 |
commit | ef0921d6b05aeb9034158f9bef5323d6da9c925e (patch) | |
tree | 838ccebd79d88b85c2b88f93b6cf1fa104dfde8a /drivers/mtd/onenand/onenand_uboot.c | |
parent | 4d0b54685c5c656023b826089ef8cc0ea1c5cd9e (diff) | |
download | u-boot-imx-ef0921d6b05aeb9034158f9bef5323d6da9c925e.zip u-boot-imx-ef0921d6b05aeb9034158f9bef5323d6da9c925e.tar.gz u-boot-imx-ef0921d6b05aeb9034158f9bef5323d6da9c925e.tar.bz2 |
Sync with 2.6.27
Sync with OneNAND kernel codes
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/mtd/onenand/onenand_uboot.c')
-rw-r--r-- | drivers/mtd/onenand/onenand_uboot.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_uboot.c b/drivers/mtd/onenand/onenand_uboot.c index 08082f3..4541b22 100644 --- a/drivers/mtd/onenand/onenand_uboot.c +++ b/drivers/mtd/onenand/onenand_uboot.c @@ -26,9 +26,17 @@ void onenand_init(void) memset(&onenand_mtd, 0, sizeof(struct mtd_info)); memset(&onenand_chip, 0, sizeof(struct onenand_chip)); - onenand_chip.base = (void *) CONFIG_SYS_ONENAND_BASE; onenand_mtd.priv = &onenand_chip; +#ifdef CONFIG_USE_ONENAND_BOARD_INIT + /* + * It's used for some board init required + */ + onenand_board_init(&onenand_mtd); +#else + onenand_chip.base = (void *) CONFIG_SYS_ONENAND_BASE; +#endif + onenand_scan(&onenand_mtd, 1); puts("OneNAND: "); |