summaryrefslogtreecommitdiff
path: root/cli_classic.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-12-12 00:32:03 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-12-12 00:32:03 +0000
commitd8307ac252a55ba411f247c18cb787294858ba76 (patch)
tree538c50b664d4222baaf5880a2f998fc4b482a7c7 /cli_classic.c
parentf7d238c376a5ab56c42c38e4adf2b64c86d1df69 (diff)
downloadflashrom-d8307ac252a55ba411f247c18cb787294858ba76.tar.gz
Add support for Spansion S25FL127S.
This flash chip can be configured (one time) to use 64 KiB or 256 KiB sectors. Additionally, in the 64 KiB mode it supports 16 4 KiB sub-sectors that can be (one time) programmed to be on the top or bottom of the device. The sub-sectors can be erased with the 0x20 opcode but because this opcode does not work with the remaining sectors and flashrom can not cope with that the 0x20 opcode is not supported yet. This patch adds two definitions, one for the 64 KiB and 256 KiB configuration respectively. The device also shares the RDID with the various S25FL128 devices so we have to increase the maximum number of successfully probed chips to 8. The 64 KiB mode was tested on real hardware. Signed-off-by: Jernej Škrabec <jernej.skrabec@planet.si> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1858 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'cli_classic.c')
-rw-r--r--cli_classic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli_classic.c b/cli_classic.c
index 8588881..a2c2014 100644
--- a/cli_classic.c
+++ b/cli_classic.c
@@ -91,9 +91,9 @@ static int check_filename(char *filename, char *type)
int main(int argc, char *argv[])
{
- /* Probe for up to three flash chips. */
const struct flashchip *chip = NULL;
- struct flashctx flashes[6] = {{0}};
+ /* Probe for up to eight flash chips. */
+ struct flashctx flashes[8] = {{0}};
struct flashctx *fill_flash;
const char *name;
int namelen, opt, i, j;