From b48af7548f8ac48d299ea4b831369f43f85e6355 Mon Sep 17 00:00:00 2001 From: Jagannadha Sutradharudu Teki Date: Thu, 23 Aug 2012 19:04:29 +0530 Subject: [PATCH] Xilinx: ARM: nand: Remove ClearNAND support This patch removes the code for supporting ClearNAND flashes as it is not supported currently on zynq. Signed-off-by: Jagannadha Sutradharudu Teki --- drivers/mtd/nand/zynq_nand.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/mtd/nand/zynq_nand.c b/drivers/mtd/nand/zynq_nand.c index 967588b934b..c78f140933a 100644 --- a/drivers/mtd/nand/zynq_nand.c +++ b/drivers/mtd/nand/zynq_nand.c @@ -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)); -- 2.47.3