]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: nand: Remove ClearNAND support
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Thu, 23 Aug 2012 13:34:29 +0000 (19:04 +0530)
committerJohn Linn <john.linn@xilinx.com>
Fri, 24 Aug 2012 18:15:06 +0000 (11:15 -0700)
This patch removes the code for supporting ClearNAND
flashes as it is not supported currently on zynq.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
drivers/mtd/nand/zynq_nand.c

index 967588b934bae530ad1025823c626781f8619696..c78f140933a5167b662149571b774eabc41a9eb5 100644 (file)
@@ -1011,7 +1011,6 @@ int zynq_nand_init(struct nand_chip *nand_chip)
        u8 set_feature[4] = {0x08, 0x00, 0x00, 0x00};
        unsigned long ecc_cfg;
        int ondie_ecc_enabled = 0;
-       int ez_nand_supported = 0;
 
        xnand = malloc(sizeof(struct xnandps_info));
        memset(xnand, 0, sizeof(struct xnandps_info));
@@ -1088,12 +1087,9 @@ int zynq_nand_init(struct nand_chip *nand_chip)
                        printf("OnDie ECC flash\n");
                        ondie_ecc_enabled = 1;
                }
-       } else if ((nand_chip->onfi_version == 23) &&
-                               (nand_chip->onfi_params.features & (1 << 9))) {
-               ez_nand_supported = 1;
        }
 
-       if (ondie_ecc_enabled || ez_nand_supported) {
+       if (ondie_ecc_enabled) {
                /* bypass the controller ECC block */
                ecc_cfg = xnandps_read32(xnand->smc_regs +
                        XSMCPSS_ECC_MEMCFG_OFFSET(XSMCPSS_ECC_IF1_OFFSET));