summaryrefslogtreecommitdiff
path: root/drivers/mtd/onenand/onenand_uboot.c
diff options
context:
space:
mode:
authorAmul Kumar Saha <amul.saha@samsung.com>2009-11-06 17:15:31 +0530
committerScott Wood <scottwood@freescale.com>2009-11-13 16:56:18 -0600
commitcacbe919584193f64e74088e03f068e52775bb86 (patch)
tree4ef455ca413a90d2d5c90e85233826e3a6b75ca0 /drivers/mtd/onenand/onenand_uboot.c
parent35209cbceebe212a8c5ec17d552960f8bd4725f3 (diff)
downloadu-boot-imx-cacbe919584193f64e74088e03f068e52775bb86.zip
u-boot-imx-cacbe919584193f64e74088e03f068e52775bb86.tar.gz
u-boot-imx-cacbe919584193f64e74088e03f068e52775bb86.tar.bz2
Flex-OneNAND driver support
This patch adds support for Flex-OneNAND devices. Signed-off-by: Rohit Hagargundgi <h.rohit@samsung.com> Signed-off-by: Amul Kumar Saha <amul.saha@samsung.com>
Diffstat (limited to 'drivers/mtd/onenand/onenand_uboot.c')
-rw-r--r--drivers/mtd/onenand/onenand_uboot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_uboot.c b/drivers/mtd/onenand/onenand_uboot.c
index 9823b5b..c642016 100644
--- a/drivers/mtd/onenand/onenand_uboot.c
+++ b/drivers/mtd/onenand/onenand_uboot.c
@@ -40,8 +40,10 @@ void onenand_init(void)
onenand_scan(&onenand_mtd, 1);
+ if (onenand_chip.device_id & DEVICE_IS_FLEXONENAND)
+ puts("Flex-");
puts("OneNAND: ");
- print_size(onenand_mtd.size, "\n");
+ print_size(onenand_chip.chipsize, "\n");
#ifdef CONFIG_MTD_DEVICE
/*