summaryrefslogtreecommitdiffstats
path: root/atapromise.c
diff options
context:
space:
mode:
authorBoris Baykov <dev@borisbaykov.com>2016-06-08 12:23:54 +0200
committerCédric Le Goater <clg@kaod.org>2016-06-08 12:23:54 +0200
commitf059078f2a2a3a06ea5326cfb2d83c959e469f9d (patch)
treeedd531c5f7aeefb04f48321fbb4516f973a260a0 /atapromise.c
parent31969e9e13d3b138a4e42ca71692c03b0d073382 (diff)
downloadflashrom-f059078f2a2a3a06ea5326cfb2d83c959e469f9d.zip
flashrom-f059078f2a2a3a06ea5326cfb2d83c959e469f9d.tar.gz
4BA: Basic support for 4-bytes addressing mode extensions
If flash chip is switched to 4-bytes addressing mode then all read/erase/program instructions will be switched from 3-bytes mode to 4-bytes mode. Then well known instructions like 03h (Read), 02h (Program) and 20h,52h,D8h (Erase) will become one byte longer and accept 4-bytes address instead of 3-bytes. This patch provides support for well known instructions in 4-bytes addressing mode. Also here is the code to enter 4-bytes addressing mode by execute the instruction B7h (Enter 4-bytes mode). Patched files ------------- chipdrivers.h + added functions declarations for spi4ba.c flash.h + feature definitions added Makefile + added spi4ba.c Added files ----------- spi4ba.h + definitions for 4-bytes addressing JEDEC commands + functions declarations from spi4ba.c (same as in chipdrivers.h, just to see) spi4ba.c + functions for enter 4-bytes addressing mode + functions for read/write/erase in 4-bytes addressing mode Signed-off-by: Boris Baykov <dev@borisbaykov.com>, Russia, Jan 2014 [clg: ported from https://www.flashrom.org/pipermail/flashrom/2015-January/013199.html ] Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'atapromise.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud