From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Tue, 21 Aug 2012 16:21:59 -0500 Subject: [U-Boot] [PATCH v2 13/13] mxc nand: Add support for i.MX5 In-Reply-To: <684093264.2662811.1345583054386.JavaMail.root@advansee.com> References: <684093264.2662811.1345583054386.JavaMail.root@advansee.com> Message-ID: <5033FBF7.9060008@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08/21/2012 04:04 PM, Beno?t Th?baudeau wrote: > diff --git u-boot-imx-88e73dd.orig/nand_spl/nand_boot_fsl_nfc.c u-boot-imx-88e73dd/nand_spl/nand_boot_fsl_nfc.c > index a40c998..1096727 100644 > --- u-boot-imx-88e73dd.orig/nand_spl/nand_boot_fsl_nfc.c > +++ u-boot-imx-88e73dd/nand_spl/nand_boot_fsl_nfc.c > @@ -30,64 +30,117 @@ > #include > #include > > +#if defined(MXC_NFC_V1) || defined(MXC_NFC_V2_1) > static struct fsl_nfc_regs *const nfc = (void *)NFC_BASE_ADDR; > +#elif defined(MXC_NFC_V3_2) > +static struct fsl_nfc_regs *const nfc = (void *)NFC_BASE_ADDR_AXI; > +static struct fsl_nfc_ip_regs *const nfc_ip = (void *)NFC_BASE_ADDR; > +#endif Please migrate to the new SPL. > + tmp = (readnfc(&nfc_ip->config2) & ~(NFC_V3_CONFIG2_SPAS_MASK | > + NFC_V3_CONFIG2_EDC_MASK | NFC_V3_CONFIG2_PS_MASK)) | > + NFC_V3_CONFIG2_SPAS(CONFIG_SYS_NAND_SPARE_SIZE / 2) | > + NFC_V3_CONFIG2_INT_MSK | NFC_V3_CONFIG2_ECC_EN | > + NFC_V3_CONFIG2_ONE_CYCLE; CONFIG_SYS_NAND_SPARE_SIZE needs to go in the README. -Scott