aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorGerhard Sittig <gsi@denx.de>2014-08-05 04:37:26 -0400
committerBrian Norris <computersforpeace@gmail.com>2014-11-05 02:53:07 -0500
commitc9d79c4bbb0e47a75f35652567b2647b99d6295e (patch)
treeec1a00a407c9f62c80fb5d9942a9885857416dc9 /drivers/mtd
parentf861a9253e7f456d870f8dd46bdde2ac02149bc6 (diff)
mtd: nand: gpio: improve comments about GPIO assisted operation
The drivers/mtd/nand/gpio.c driver does not GPIO bitbang the complete NAND protocol, but instead is GPIO _assisted_ -- a memory mapped interface communicates commands and data, and only few control signals are connected to GPIO pins. Expand comments in the driver source and in the Kconfig description to better reflect the very nature of the driver. The previous text could be mistaken for complete GPIO bitbanging. Signed-off-by: Gerhard Sittig <gsi@denx.de> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/Kconfig6
-rw-r--r--drivers/mtd/nand/gpio.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 4c51d2c9acc1..7d0150d20432 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -75,10 +75,12 @@ config MTD_NAND_DENALI_SCRATCH_REG_ADDR
75 boards, the scratch register is at 0xFF108018. 75 boards, the scratch register is at 0xFF108018.
76 76
77config MTD_NAND_GPIO 77config MTD_NAND_GPIO
78 tristate "GPIO NAND Flash driver" 78 tristate "GPIO assisted NAND Flash driver"
79 depends on GPIOLIB 79 depends on GPIOLIB
80 help 80 help
81 This enables a GPIO based NAND flash driver. 81 This enables a NAND flash driver where control signals are
82 connected to GPIO pins, and commands and data are communicated
83 via a memory mapped interface.
82 84
83config MTD_NAND_AMS_DELTA 85config MTD_NAND_AMS_DELTA
84 tristate "NAND Flash device on Amstrad E3" 86 tristate "NAND Flash device on Amstrad E3"
diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd/nand/gpio.c
index 117ce333fdd4..226eda6f2eee 100644
--- a/drivers/mtd/nand/gpio.c
+++ b/drivers/mtd/nand/gpio.c
@@ -8,7 +8,9 @@
8 * 8 *
9 * © 2004 Simtec Electronics 9 * © 2004 Simtec Electronics
10 * 10 *
11 * Device driver for NAND connected via GPIO 11 * Device driver for NAND flash that uses a memory mapped interface to
12 * read/write the NAND commands and data, and GPIO pins for control signals
13 * (the DT binding refers to this as "GPIO assisted NAND flash")
12 * 14 *
13 * This program is free software; you can redistribute it and/or modify 15 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License version 2 as 16 * it under the terms of the GNU General Public License version 2 as