summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-07-11 18:05:42 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-07-11 18:05:42 +0000
commitbb297f733dc78a22d6ee0eb37560207e0c2d424a (patch)
tree8395175c9b6345f2058811636ed4fdbc5e38b945 /flashrom.c
parentd0478299b1d714a7001f19fb2cafeb257698a2c0 (diff)
downloadast2050-flashrom-bb297f733dc78a22d6ee0eb37560207e0c2d424a.zip
ast2050-flashrom-bb297f733dc78a22d6ee0eb37560207e0c2d424a.tar.gz
Add an optional flash port parameter for IT87* SPI controllers in standalone programmer mode
If the parameter is set, the IT87* SPI driver will set the I/O base port of the IT87* SPI controller interface to the port specified in the parameter. Usage: flashrom -p it87spi=port=0x820 Corresponding to flashrom svn r646. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index af8281e..95db7d9 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -647,6 +647,8 @@ int main(int argc, char *argv[])
pcidev_bdf = strdup(optarg + 8);
} else if (strncmp(optarg, "it87spi", 7) == 0) {
programmer = PROGRAMMER_IT87SPI;
+ if (optarg[7] == '=')
+ it87opts = strdup(optarg + 8);
} else if (strncmp(optarg, "ft2232spi", 9) == 0) {
programmer = PROGRAMMER_FT2232SPI;
if (optarg[9] == '=')
OpenPOWER on IntegriCloud