]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/mtd/nand/fsl_ifc_nand.c
driver/nand: Add support of 16K SRAM for IFC 2.0
[karo-tx-uboot.git] / drivers / mtd / nand / fsl_ifc_nand.c
index 280e14e24a00290d56784639e88dd22907e3f5d7..8b453cb383c206f2e9acc4d29c425343a3703052 100644 (file)
@@ -23,7 +23,6 @@
 #define CONFIG_SYS_FSL_IFC_BANK_COUNT  4
 #endif
 
-#define FSL_IFC_V1_1_0 0x01010000
 #define MAX_BANKS      CONFIG_SYS_FSL_IFC_BANK_COUNT
 #define ERR_BYTE       0xFF /* Value returned for read bytes
                                when read failed */
@@ -1040,6 +1039,9 @@ static int fsl_ifc_chip_init(int devnum, u8 *addr)
        if (ret)
                return ret;
 
+       if (ver >= FSL_IFC_V2_0_0)
+               priv->bufnum_mask = (priv->bufnum_mask * 2) + 1;
+
        ret = nand_scan_ident(mtd, 1, NULL);
        if (ret)
                return ret;