[PATCH v3 0/4] mtd: cfi_cmdset_0002: Add OTP support for Micron M29EW NOR flashes

Christian Riesch christian.riesch at omicron.at
Tue Mar 25 05:35:38 EDT 2014


Hi all,

--On March 06, 2014 13:18 +0100 Christian Riesch 
<christian.riesch at omicron.at> wrote:

> Hi,
> This patchset adds support for the reading, writing, and locking of the
> one time programmable (OTP) memory of Micron M29EW NOR flashes.
>

Any comments on this?

Thanks,
Christian

> These flashes have a 256 byte OTP memory, which is called extended
> memory region in its datasheet. The flash is compatible to Spansion S29GL
> and Macronix MX29GL devices, so support for the OTP memory of these
> flashes should also be possible.
>
> Tests with this patchset were done with a single Micron M29EW device
> (512 Mbit, 16 bit) on a custom board with a Texas Instruments AM1808
> system on chip.
>
> Prerequisites:
> - Patch mtd: Add a retlen parameter to _get_{fact,user}_prot_info,
>   commit 102f842b7aafee364659a0a45663d53085638312 in l2-mtd.git
>
> Changes since v1:
> - dropped one patch that changes the detection of M29EW devices,
>   this patch is currently not required
> - added support for locking
> - fixed a few bugs in the loop that walks through the OTP memory
>
> Changes since v2:
> - Added retlet parameter to cfi_amdstd_get_{fact,user}_prot_info
> - Fixed partial write of words
>
> Christian Riesch (4):
>   mtd: cfi_cmdset_0002: Add support for reading OTP
>   mtd: cfi_cmdset_0002: Invalidate cache after entering/exiting OTP
>     memory
>   mtd: cfi_cmdset_0002: Add support for writing OTP memory
>   mtd: cfi_cmdset_0002: Add support for locking OTP memory
>
>  drivers/mtd/chips/cfi_cmdset_0002.c |  350
> +++++++++++++++++++++++++++++++++--  1 file changed, 331 insertions(+),
> 19 deletions(-)
>
> --
> 1.7.9.5
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/







More information about the linux-mtd mailing list