public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 07/20] sf: Kconfig: Add SPI_FLASH_DATAFLASH entry
@ 2015-07-01 16:08 Jagan Teki
  2015-07-01 17:18 ` Jagan Teki
  0 siblings, 1 reply; 2+ messages in thread
From: Jagan Teki @ 2015-07-01 16:08 UTC (permalink / raw)
  To: u-boot

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>
---
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(-)

diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
index 80fe93e..a4160fd 100644
--- a/drivers/mtd/spi/Kconfig
+++ b/drivers/mtd/spi/Kconfig
@@ -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
diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c
index d287db8..3111f4f 100644
--- a/drivers/mtd/spi/sf_dataflash.c
+++ b/drivers/mtd/spi/sf_dataflash.c
@@ -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
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH v2 07/20] sf: Kconfig: Add SPI_FLASH_DATAFLASH entry
  2015-07-01 16:08 [U-Boot] [PATCH v2 07/20] sf: Kconfig: Add SPI_FLASH_DATAFLASH entry Jagan Teki
@ 2015-07-01 17:18 ` Jagan Teki
  0 siblings, 0 replies; 2+ messages in thread
From: Jagan Teki @ 2015-07-01 17:18 UTC (permalink / raw)
  To: u-boot

On 1 July 2015 at 21:38, Jagan Teki <jteki@openedev.com> wrote:
> 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>
> ---
> 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(-)
>
> diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
> index 80fe93e..a4160fd 100644
> --- a/drivers/mtd/spi/Kconfig
> +++ b/drivers/mtd/spi/Kconfig
> @@ -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
> diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c
> index d287db8..3111f4f 100644
> --- a/drivers/mtd/spi/sf_dataflash.c
> +++ b/drivers/mtd/spi/sf_dataflash.c
> @@ -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
> --
> 1.9.1
>

Applied to u-boot-spi/master

thanks!
-- 
Jagan | openedev.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-01 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-01 16:08 [U-Boot] [PATCH v2 07/20] sf: Kconfig: Add SPI_FLASH_DATAFLASH entry Jagan Teki
2015-07-01 17:18 ` Jagan Teki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox