]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
sf: Kconfig: Add SPI_FLASH_DATAFLASH entry
authorJagan Teki <jteki@openedev.com>
Wed, 1 Jul 2015 15:52:19 +0000 (21:22 +0530)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:47:28 +0000 (00:47 +0200)
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.

Signed-off-by: Jagan Teki <jteki@openedev.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Cc: Haikun Wang <haikun.wang@freescale.com>
drivers/mtd/spi/Kconfig
drivers/mtd/spi/sf_dataflash.c

index 80fe93ee21d8146c9d0b03e9c3e243fc6469eb6e..a4160fd7ffb04a92e8f251c068c2920bb3e6c403 100644 (file)
@@ -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
index d287db8b4ce339cf13513a64bbbbb6ec11da8b97..3111f4fd12e062f63c7d48eada99852007ff1891 100644 (file)
 
 #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