[PATCH v5 0/3] mtd: Qualcomm NAND controller driver
Archit Taneja
architt at codeaurora.org
Mon Jan 4 21:24:58 PST 2016
Add support for the NAND controller driver for SoC's that contain EBI2.
For now, the only SoC upstream that has EBI2 is IPQ806x.
The previous version added a BBT flag that allowed BBMs to be accessed
in raw mode. Adding a flag isn't the right way to fix it, and the
proposed fix is to add badblockbits support, and make sure all drivers
switch to accessing BBM in raw mode. For now, skip nand_bbt usage, and
implement our own versions of chip->block_bad and chip->mark_bad.
The first patch in the series contains a nand_base clean up which the
driver will utilize.
Based over l2-mtd.git
The patchset requires the v6 ADM dmaengine patches posted by Andy:
https://lkml.org/lkml/2015/3/17/19
v5:
- Skip creation of BBT as in v1. Will bring this back after BBMs are
read/written in raw mode (using badblockbits support).
- Incorporated misc fixes/suggestions by Boris.
- Dropped the DT patches for now, since ADM DMA support isn't merged yet.
v4:
- Some more fixes. Mentioned in individual patch
v3:
- Various fixes and clean ups suggested by Stephen Boyd.
v2:
- Added a new BBT flag that allows us to read BBM in raw mode
- reduce memcpy-s in the driver
- some refactor and clean ups because of above changes
v1:
- original series:
https://lkml.org/lkml/2015/1/16/317
Archit Taneja (3):
mtd: nand: don't select chip in nand_chip's block_bad op
mtd: nand: Qualcomm NAND controller driver
dt/bindings: qcom_nandc: Add DT bindings
.../devicetree/bindings/mtd/qcom_nandc.txt | 84 +
drivers/mtd/nand/Kconfig | 7 +
drivers/mtd/nand/Makefile | 1 +
drivers/mtd/nand/nand_base.c | 41 +-
drivers/mtd/nand/qcom_nandc.c | 1981 ++++++++++++++++++++
include/linux/mtd/nand.h | 2 +-
6 files changed, 2097 insertions(+), 19 deletions(-)
create mode 100644 Documentation/devicetree/bindings/mtd/qcom_nandc.txt
create mode 100644 drivers/mtd/nand/qcom_nandc.c
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
More information about the linux-mtd
mailing list