mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 2/3] mtd: add dataflash support
Date: Mon, 15 Oct 2012 09:08:10 +0200	[thread overview]
Message-ID: <20121015070810.GH27665@pengutronix.de> (raw)
In-Reply-To: <1350247764-18132-2-git-send-email-plagnioj@jcrosoft.com>

On Sun, Oct 14, 2012 at 10:49:23PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> from linux 3.6
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
>  drivers/mtd/devices/Kconfig         |   18 +
>  drivers/mtd/devices/Makefile        |    1 +
>  drivers/mtd/devices/mtd_dataflash.c |  882 +++++++++++++++++++++++++++++++++++
>  include/spi/flash.h                 |    2 +-
>  4 files changed, 902 insertions(+), 1 deletion(-)
>  create mode 100644 drivers/mtd/devices/mtd_dataflash.c
> 
> diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig
> index e6d747c..e956921 100644
> --- a/drivers/mtd/devices/Kconfig
> +++ b/drivers/mtd/devices/Kconfig
> @@ -1,6 +1,24 @@
>  menu "Self contained MTD devices"
>  	depends on MTD!=n
>  
> +config MTD_DATAFLASH
> +	tristate "Support for AT45xxx DataFlash"
> +	depends on SPI
> +	help
> +	  This enables access to AT45xxx DataFlash chips, using SPI.
> +	  Sometimes DataFlash chips are packaged inside MMC-format
> +	  cards; at this writing, the MMC stack won't handle those.
> +
> +config MTD_DATAFLASH_WRITE_VERIFY
> +	bool "Verify DataFlash page writes"
> +	depends on MTD_DATAFLASH
> +	help
> +	  This adds an extra check when data is written to the flash.
> +	  It may help if you are verifying chip setup (timings etc) on
> +	  your board.  There is a rare possibility that even though the
> +	  device thinks the write was successful, a bit could have been
> +	  flipped accidentally due to device wear or something else.
> +

What about MTD_DATAFLASH_OTP?

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-10-15  7:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-14 20:46 [PATCH 0/3] add mtd " Jean-Christophe PLAGNIOL-VILLARD
2012-10-14 20:49 ` [PATCH 1/3] import include/linux/math64.h Jean-Christophe PLAGNIOL-VILLARD
2012-10-14 20:49   ` [PATCH 2/3] mtd: add dataflash support Jean-Christophe PLAGNIOL-VILLARD
2012-10-15  7:08     ` Sascha Hauer [this message]
2012-10-15 10:24       ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-14 20:49   ` [PATCH 3/3] usb-a9263: add spi " Jean-Christophe PLAGNIOL-VILLARD
2012-10-15 13:32 ` [PATCH 0/3] add mtd " Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121015070810.GH27665@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=plagnioj@jcrosoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox