From 88b19257cb41c97123d832460c944abc588a8e89 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Wed, 6 Aug 2014 14:36:27 +0000 Subject: Add support for S25FL128P, S25FL129P and refine it for S25FL128S chips Additionally to the existing S25FL128S......0 definition this patch adds S25FL128P......0, S25FL128P......1 and S25FL128S......1, as well as S25FL129P......0 and S25FL129P......1 definitions. S25FL12xP seem to be the predecessor families of S25FL128S. All associated chips can not be distinguished with RDID alone. Besides the new chips, this patch also fixes the name of the previously supported S25FL128S model with uniform 256 kB sectors (S25FL128P......1 not 0) and adds the hybrid sector version (0) as well. Due to the shared IDs the user has to select the right chip manually with the -c parameter. To make this even possible, this patch enlarges the respective array for results to 6. Tested-by: Antonio Ospite with a S25FL129P......0. Corresponding to flashrom svn r1838. Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner --- cli_classic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli_classic.c') diff --git a/cli_classic.c b/cli_classic.c index ee988a3..60b8b88 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -94,7 +94,7 @@ int main(int argc, char *argv[]) unsigned long size; /* Probe for up to three flash chips. */ const struct flashchip *chip = NULL; - struct flashctx flashes[3] = {{0}}; + struct flashctx flashes[6] = {{0}}; struct flashctx *fill_flash; const char *name; int namelen, opt, i, j; -- cgit v1.1