aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2016-10-01 04:24:03 -0400
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-11-07 08:48:37 -0500
commit6ea40a3ba93e1b14ffb349e276f9dfefc4334b99 (patch)
treef37e804a5eecaa681957ff24739964e7bd0c55e5 /include/linux/mtd
parent204e7ecd47e26cc12d9e8e8a7e7a2eeb9573f0ba (diff)
mtd: nand: Wait tCCS after a column change
Drivers implementing ->cmd_ctrl() and relying on the default ->cmdfunc() implementation usually don't wait tCCS when a column change (RNDIN or RNDOUT) is requested. Add an option flag to ask the core to do so (note that we keep this as an opt-in to avoid breaking existing implementations), and make use of the ->data_interface information is available (otherwise, wait 500ns). Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Tested-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/nand.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 6fe83bce83a6..970ceb948835 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -210,6 +210,16 @@ enum nand_ecc_algo {
210 */ 210 */
211#define NAND_USE_BOUNCE_BUFFER 0x00100000 211#define NAND_USE_BOUNCE_BUFFER 0x00100000
212 212
213/*
214 * In case your controller is implementing ->cmd_ctrl() and is relying on the
215 * default ->cmdfunc() implementation, you may want to let the core handle the
216 * tCCS delay which is required when a column change (RNDIN or RNDOUT) is
217 * requested.
218 * If your controller already takes care of this delay, you don't need to set
219 * this flag.
220 */
221#define NAND_WAIT_TCCS 0x00200000
222
213/* Options set by nand scan */ 223/* Options set by nand scan */
214/* Nand scan has allocated controller struct */ 224/* Nand scan has allocated controller struct */
215#define NAND_CONTROLLER_ALLOC 0x80000000 225#define NAND_CONTROLLER_ALLOC 0x80000000