Skip to contentSkip to conversation

sf: Kconfig: Add SPI_FLASH_DATAFLASH entry

PATCH New Jagan Teki 1 participant 2 messages Jul 1, 2015 Memory technology devices (MTD)

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH v2 7/20 sf: Kconfig: Add SPI_FLASH_DATAFLASH entry

Added SPI_FLASH_DATAFLASH entry on Kconfig with help description.

data flash driver comes with good decription, hence moved the same on to kconfig help decription.

---
Changes for v2:
- Added more help decription.

 drivers/mtd/spi/Kconfig        | 15 +++++++++++++++
 drivers/mtd/spi/sf_dataflash.c | 10 ----------
 2 files changed, 15 insertions(+), 10 deletions(-)
drivers/mtd/spi/Kconfig +15 -0
index 80fe93e..a4160fd 100644
@@ -34,6 +34,21 @@ config SPI_FLASH
 
 	  If unsure, say N
 
+config SPI_FLASH_DATAFLASH
+	bool "AT45xxx DataFlash support"
+	depends on SPI_FLASH && DM_SPI_FLASH
+	help
+	  Enable the access for SPI-flash-based AT45xxx DataFlash chips.
+	  DataFlash is a kind of SPI flash. Most AT45 chips have two buffers
+	  in each chip, which may be used for double buffered I/O; but this
+	  driver doesn't (yet) use these for any kind of i/o overlap or prefetching.
+
+	  Sometimes DataFlash is packaged in MMC-format cards, although the
+	  MMC stack can't (yet?) distinguish between MMC and DataFlash
+	  protocols during enumeration.
+
+	  If unsure, say N
+
 config SPI_FLASH_MTD
 	bool "SPI Flash MTD support"
 	depends on SPI_FLASH
drivers/mtd/spi/sf_dataflash.c +0 -10
index d287db8..3111f4f 100644
@@ -19,16 +19,6 @@
 
 #include "sf_internal.h"
 
-/*
- * DataFlash is a kind of SPI flash.  Most AT45 chips have two buffers in
- * each chip, which may be used for double buffered I/O; but this driver
- * doesn't (yet) use these for any kind of i/o overlap or prefetching.
- *
- * Sometimes DataFlash is packaged in MMC-format cards, although the
- * MMC stack can't (yet?) distinguish between MMC and DataFlash
- * protocols during enumeration.
- */
-
 /* reads can bypass the buffers */
 #define OP_READ_CONTINUOUS	0xE8
 #define OP_READ_PAGE		0xD2
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH v2 7/20 sf: Kconfig: Add SPI_FLASH_DATAFLASH entry

Quoted 64 lines · Jagan Teki

Added SPI_FLASH_DATAFLASH entry on Kconfig with help description.

data flash driver comes with good decription, hence moved the same on to kconfig help decription.

---
Changes for v2:
- Added more help decription.

 drivers/mtd/spi/Kconfig        | 15 +++++++++++++++
 drivers/mtd/spi/sf_dataflash.c | 10 ----------
 2 files changed, 15 insertions(+), 10 deletions(-)
drivers/mtd/spi/Kconfig +15 -0
index 80fe93e..a4160fd 100644
@@ -34,6 +34,21 @@ config SPI_FLASH
 
          If unsure, say N
 
+config SPI_FLASH_DATAFLASH
+       bool "AT45xxx DataFlash support"
+       depends on SPI_FLASH && DM_SPI_FLASH
+       help
+         Enable the access for SPI-flash-based AT45xxx DataFlash chips.
+         DataFlash is a kind of SPI flash. Most AT45 chips have two buffers
+         in each chip, which may be used for double buffered I/O; but this
+         driver doesn't (yet) use these for any kind of i/o overlap or prefetching.
+
+         Sometimes DataFlash is packaged in MMC-format cards, although the
+         MMC stack can't (yet?) distinguish between MMC and DataFlash
+         protocols during enumeration.
+
+         If unsure, say N
+
 config SPI_FLASH_MTD
        bool "SPI Flash MTD support"
        depends on SPI_FLASH
drivers/mtd/spi/sf_dataflash.c +0 -11
index d287db8..3111f4f 100644
@@ -19,16 +19,6 @@
 
 #include "sf_internal.h"
 
-/*
- * DataFlash is a kind of SPI flash.  Most AT45 chips have two buffers in
- * each chip, which may be used for double buffered I/O; but this driver
- * doesn't (yet) use these for any kind of i/o overlap or prefetching.
- *
- * Sometimes DataFlash is packaged in MMC-format cards, although the
- * MMC stack can't (yet?) distinguish between MMC and DataFlash
- * protocols during enumeration.
- */
-
 /* reads can bypass the buffers */
 #define OP_READ_CONTINUOUS     0xE8
 #define OP_READ_PAGE           0xD2
--
Quoted 2 lines

1.9.1

Applied to u-boot-spi/master

thanks!

Signature · 1 line
Jagan | openedev.