diff options
author | Huang Shijie | 2013-08-27 11:29:04 +0200 |
---|---|---|
committer | Brian Norris | 2013-11-07 08:33:01 +0100 |
commit | d159d8b7074181b154643aa15347d65a36b7ab59 (patch) | |
tree | 45d0fa0deaf29969b0178b08862d5df22d195acc /drivers/mtd/nand/gpmi-nand/gpmi-lib.c | |
parent | driver/mtd/ifc: Read Status while programming NAND flash (diff) | |
download | kernel-qcow2-linux-d159d8b7074181b154643aa15347d65a36b7ab59.tar.gz kernel-qcow2-linux-d159d8b7074181b154643aa15347d65a36b7ab59.tar.xz kernel-qcow2-linux-d159d8b7074181b154643aa15347d65a36b7ab59.zip |
mtd: gpmi: decouple the chip select from the DMA channel
Decouple the chip select from the DMA channel, we use the DMA channel 0
to accecc all the nand devices.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/gpmi-nand/gpmi-lib.c')
-rw-r--r-- | drivers/mtd/nand/gpmi-nand/gpmi-lib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-lib.c b/drivers/mtd/nand/gpmi-nand/gpmi-lib.c index 4f8857fa48a7..7d56d87599c0 100644 --- a/drivers/mtd/nand/gpmi-nand/gpmi-lib.c +++ b/drivers/mtd/nand/gpmi-nand/gpmi-lib.c @@ -187,6 +187,12 @@ int gpmi_init(struct gpmi_nand_data *this) /* Select BCH ECC. */ writel(BM_GPMI_CTRL1_BCH_MODE, r->gpmi_regs + HW_GPMI_CTRL1_SET); + /* + * Decouple the chip select from dma channel. We use dma0 for all + * the chips. + */ + writel(BM_GPMI_CTRL1_DECOUPLE_CS, r->gpmi_regs + HW_GPMI_CTRL1_SET); + gpmi_disable_clk(this); return 0; err_out: |