Angel Pons has posted comments on this change. ( https://review.coreboot.org/28821 )
Change subject: flashchips: Add Macronix MX25U8032E
......................................................................
Patch Set 3:
(2 comments)
https://review.coreboot.org/#/c/28821/1/flashchips.c
File flashchips.c:
https://review.coreboot.org/#/c/28821/1/flashchips.c@8449
PS1, Line 8449: .block_erase = spi_block_erase_d8,
> I don't see that in the datasheet...
Gone
https://review.coreboot.org/#/c/28821/1/flashchips.c@8450
PS1, Line 8450:
> should probably be removed too
Gone
--
To view, visit https://review.coreboot.org/28821
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I422c3d51e5011e081ff6bccff294817c8c1765d0
Gerrit-Change-Number: 28821
Gerrit-PatchSet: 3
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Sun, 07 Oct 2018 11:06:05 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Hello Paul Menzel, build bot (Jenkins), Nico Huber,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/28821
to look at the new patch set (#3).
Change subject: flashchips: Add Macronix MX25U8032E
......................................................................
flashchips: Add Macronix MX25U8032E
As per `The_Raven Raven` on the mailing list.
Change-Id: I422c3d51e5011e081ff6bccff294817c8c1765d0
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M flashchips.c
M flashchips.h
2 files changed, 41 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/21/28821/3
--
To view, visit https://review.coreboot.org/28821
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I422c3d51e5011e081ff6bccff294817c8c1765d0
Gerrit-Change-Number: 28821
Gerrit-PatchSet: 3
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Sergey Alirzaev has uploaded this change for review. ( https://review.coreboot.org/28911
Change subject: ft2232_spi: add an ability to use GPIO for chip selection
......................................................................
ft2232_spi: add an ability to use GPIO for chip selection
Change-Id: I6db05619e0d69ad18549c8556ef69225337b1532
Signed-off-by: Sergey Alirzaev <zl29ah(a)gmail.com>
---
M flashrom.8.tmpl
M ft2232_spi.c
2 files changed, 27 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/11/28911/1
diff --git a/flashrom.8.tmpl b/flashrom.8.tmpl
index 70af395..cbb3378 100644
--- a/flashrom.8.tmpl
+++ b/flashrom.8.tmpl
@@ -722,9 +722,9 @@
Multi-Protocol Adapter (TUMPA), TUMPA Lite, GOEPEL PicoTAP and Google Servo v1/v2.
.sp
An optional parameter specifies the controller
-type and channel/interface/port it should support. For that you have to use the
+type and channel/interface/port/GPIO-based chip select it should support. For that you have to use the
.sp
-.B " flashrom \-p ft2232_spi:type=model,port=interface"
+.B " flashrom \-p ft2232_spi:type=model,port=interface,csgpiol=gpio"
.sp
syntax where
.B model
@@ -733,14 +733,17 @@
arm-usb-tiny ", " arm-usb-tiny-h ", " arm-usb-ocd ", " arm-usb-ocd-h \
", " tumpa ", " tumpalite ", " picotap ", " google-servo ", " google-servo-v2 \
" or " google-servo-v2-legacy
-and
.B interface
can be
-.BR A ", " B ", " C ", or " D .
+.BR A ", " B ", " C ", or " D
+and
+.B csgpiol
+can be a number between 0 and 3, denoting GPIOL0-GPIOL3 correspondingly.
The default model is
.B 4232H
-and the default interface is
-.BR A .
+the default interface is
+.BR A
+and GPIO is not used by default.
.sp
If there is more than one ft2232_spi-compatible device connected, you can select which one should be used by
specifying its serial number with the
diff --git a/ft2232_spi.c b/ft2232_spi.c
index 819744c..79d9d82 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -327,6 +327,24 @@
}
free(arg);
+ arg = extract_programmer_param("csgpiol");
+ if (arg && strlen(arg)) {
+ unsigned int temp = 0;
+ char *endptr;
+ temp = strtoul(arg, &endptr, 10);
+ if (*endptr || temp > 3) {
+ msg_perr("Error: Invalid GPIOL specified: \"%s\".\n"
+ "Valid values are between 0 and 3.\n", arg);
+ free(arg);
+ return -2;
+ } else {
+ unsigned pin = temp + 4;
+ cs_bits |= 1 << pin;
+ pindir |= 1 << pin;
+ }
+ }
+ free(arg);
+
msg_pdbg("Using device type %s %s ",
get_ft2232_vendorname(ft2232_vid, ft2232_type),
get_ft2232_devicename(ft2232_vid, ft2232_type));
--
To view, visit https://review.coreboot.org/28911
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6db05619e0d69ad18549c8556ef69225337b1532
Gerrit-Change-Number: 28911
Gerrit-PatchSet: 1
Gerrit-Owner: Sergey Alirzaev <zl29ah(a)gmail.com>
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/28910 )
Change subject: flashchips: Add W25Q128.V..W
......................................................................
Patch Set 5:
(2 comments)
Removed all whitespace and replaced by tabs
https://review.coreboot.org/#/c/28910/2/flashchips.h
File flashchips.h:
https://review.coreboot.org/#/c/28910/2/flashchips.h@928
PS2, Line 928: #define WINBOND_NEX_W25Q128_V_M 0x7018 /* W25Q128JVSM */
> comment should be indented with a tab
Done
https://review.coreboot.org/#/c/28910/2/flashchips.c
File flashchips.c:
https://review.coreboot.org/#/c/28910/2/flashchips.c@15671
PS2, Line 15671: .manufacture_id = WINBOND_NEX_ID,
> Entries should be ordered alphabetically. So this would come after […]
Done
--
To view, visit https://review.coreboot.org/28910
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I38397a0c831407afa21cddca8485664576fce92c
Gerrit-Change-Number: 28910
Gerrit-PatchSet: 5
Gerrit-Owner: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-Comment-Date: Thu, 04 Oct 2018 14:54:07 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Hello Patrick Rudolph, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/28910
to look at the new patch set (#5).
Change subject: flashchips: Add W25Q128.V..W
......................................................................
flashchips: Add W25Q128.V..W
Port the code from chromeos flashrom.
Tested using W25Q128JVSIM in SPI mode.
Change-Id: I38397a0c831407afa21cddca8485664576fce92c
Signed-off-by: Patrick Rudolph <patrick.rudolph(a)9elements.com>
---
M flashchips.c
M flashchips.h
2 files changed, 38 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/10/28910/5
--
To view, visit https://review.coreboot.org/28910
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I38397a0c831407afa21cddca8485664576fce92c
Gerrit-Change-Number: 28910
Gerrit-PatchSet: 5
Gerrit-Owner: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>