aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/nand/mxc_nand.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index f981a1f054d6..1ffb854f989e 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -620,23 +620,6 @@ static void mxc_nand_select_chip(struct mtd_info *mtd, int chip)
620 struct nand_chip *nand_chip = mtd->priv; 620 struct nand_chip *nand_chip = mtd->priv;
621 struct mxc_nand_host *host = nand_chip->priv; 621 struct mxc_nand_host *host = nand_chip->priv;
622 622
623#ifdef CONFIG_MTD_NAND_MXC_FORCE_CE
624 if (chip > 0) {
625 DEBUG(MTD_DEBUG_LEVEL0,
626 "ERROR: Illegal chip select (chip = %d)\n", chip);
627 return;
628 }
629
630 if (chip == -1) {
631 writew(readw(host->regs + NFC_CONFIG1) & ~NFC_CE,
632 host->regs + NFC_CONFIG1);
633 return;
634 }
635
636 writew(readw(host->regs + NFC_CONFIG1) | NFC_CE,
637 host->regs + NFC_CONFIG1);
638#endif
639
640 switch (chip) { 623 switch (chip) {
641 case -1: 624 case -1:
642 /* Disable the NFC clock */ 625 /* Disable the NFC clock */