[PATCH 01/10] i.MX Nand: Set correct datawidth/pagesize in CCM module

Eric Bénard eric at eukrea.com
Fri Dec 4 11:17:27 EST 2009


Hi Sascha,

Eric Bénard a écrit :
> here is the fix (at least on my imx27 board) :
> 

with that fix a :
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xac (Micron NAND 512MiB 
1,8V 8-bit)
(2k pagesize) works fine on iMX27 using HW ECC (and NOR boot as iMX27 
can't boot from Micron NAND).

Here is a cosmetic patch to remove unused code :

diff --git a/drivers/nand/nand_imx.c b/drivers/nand/nand_imx.c
index edd7cdf..37f4e21 100644
--- a/drivers/nand/nand_imx.c
+++ b/drivers/nand/nand_imx.c
@@ -976,11 +976,6 @@ static int __init imxnd_probe(struct device_d *dev)

         add_mtd_device(mtd);

-#ifdef CONFIG_MXC_NAND_LOW_LEVEL_ERASE
-       /* Erase all the blocks of a NAND */
-       imx_low_erase(mtd);
-#endif
-
         dev->priv = host;

         return 0;

Eric




More information about the u-boot-v2 mailing list