summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* satamv and atahpt require PCI port I/O which isn't currently supportedhailfinger2011-07-252-0/+11
| | | | | | | | | | | on any architecture except x86/x86_64. Generate the same compiler error as other programmer drivers. Signed-off-by: Andrew Morgan <ziltro@ziltro.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1388 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Random manpage improvements and updates.uwe2011-07-251-14/+24
| | | | | | | | | Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1387 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* add a bunch of new/tested stuff and various small changes 5stefanct2011-07-257-29/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - mark EN25F80 as fully tested http://www.flashrom.org/pipermail/flashrom/2011-July/007329.html - mark W25Q16 as fully tested http://www.flashrom.org/pipermail/flashrom/2011-July/007151.html - mark W39V040A as fully tested http://www.flashrom.org/pipermail/flashrom/2011-July/007161.html - mark Pm25LV040 as fully tested reported by TL1 on IRC - mark W49F002U/N as fully tested http://paste.flashrom.org/view.php?id=733g - mark W39V080FA as fully tested http://www.flashrom.org/pipermail/flashrom/2011-July/007225.html - add ASUS P4S533-X to the list of supported boards http://www.flashrom.org/pipermail/flashrom/2011-July/007200.html - add ASUS M4A785TD-V EVO to the list of supported boards http://www.flashrom.org/pipermail/flashrom/2011-July/007329.html - add GA-945PL-S3P (rev. 6.6) to the list of supported boards reported by TL1 on IRC - add MS-7142 (K8MM-V) to the list of supported boards http://www.flashrom.org/pipermail/flashrom/2011-July/007161.html - add MS-7369 (K9N Neo V2) to the list of supported boards http://www.flashrom.org/pipermail/flashrom/2011-July/007181.html - add X7DBT-INF to the list of supported boards http://www.flashrom.org/pipermail/flashrom/2011-July/007225.html - mark SiS 645DX chipset enable as OK http://www.flashrom.org/pipermail/flashrom/2011-July/007200.html - mark SiS 651 chipset enable as OK http://paste.flashrom.org/view.php?id=733 - move intel_ich_gpio34_raise to the correct line(s) - change the output of unlock_w39_fwh_block from 0x%x to 0x%08x - fix output for untested chipset enables (missing space) - reorder the board enable in print.c entry for GA-8SIMLH added in r1385. - minor other fixes - fix output for multiple found flash chips by adding quotes and commas - similarly fix output of "Found/Assuming" chips Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> the last two points are Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> everything else is Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1386 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Add support for the GIGABYTE GA-8SIMLH board.mkarcher2011-07-252-4/+6
| | | | | | | | | | | | | | | | | The usage of the GPIO output register as bitmap can be confirmed from the vendor board enable code, so the comment has been deleted. It really is (1<<gpionumber). flashrom -V: http://paste.flashrom.org/view.php?id=728 lspci: http://paste.flashrom.org/view.php?id=729 superiotool: http://paste.flashrom.org/view.php?id=730 test report: http://paste.flashrom.org/view.php?id=733 Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1385 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* add support for EN25Q(H) series SPI flash chipsstefanct2011-07-242-37/+260
| | | | | | | | | | | | | | | | - EN25Q40 - EN25Q80 - EN25Q16 (half-evil twin of already supported EN25D16, hence merged) - EN25Q32(A/B) - EN25Q64 - EN25Q128 - EN25QH16 Signed-off-by: David Hendricks <dhendrix@google.com> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1384 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Man page fixes:hailfinger2011-07-241-32/+74
| | | | | | | | | | | | | - Finish dummy programmer description - Add satamv programmer - Merge it87spi programmer into internal section - Cosmetics Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1383 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* mark some ck804 boards as not workingstefanct2011-07-242-2/+4
| | | | | | | | | | | | | | P5N-E SLI, EP-8NPA7I and EP-9NPA7I all need at least this patch: http://patchwork.coreboot.org/patch/2125/ the P5N-E also needs a board enable: http://patchwork.coreboot.org/patch/3298/ mark the boards as not working until those are merged. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1382 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* ichspi.c: do not print PBR[3] for ICH7 because it does not existstefanct2011-07-241-1/+1
| | | | | | | | | | | | | intel document 307013 (ICH7 datasheet) section 21.1.9 does only define PBR[0] (at SPIBAR + 60h) to PBR[2] (SPIBAR + 68h). SPIBAR + 6Ch and following are not defined, but we were printing them as PBR[3] anyway. i could not find any references to PBR[3] in documentation of other related chips (NM10, atom e6xx) either, hence kill it. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1381 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Fix out-of-bounds access if all erase functions fail.hailfinger2011-07-211-6/+8
| | | | | | | | | | | | | Fix detection of unchanged chip contents on erase failure. Return error if no usable erase functions exist. Thanks to Stefan Tauner for spotting the last problem. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1380 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* chipset_enable.c: add a message for untested chipset enablesstefanct2011-07-211-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | old output: Calibrating delay loop... OK. Found chipset "Intel QS57", enabling flash write... OK. This chipset supports the following protocols: FWH, SPI. new non-verbose output for tested chipsets: Calibrating delay loop... OK. Found chipset "Intel QS57". Enabling flash write... OK. This chipset supports the following protocols: FWH, SPI. new non-verbose output for untested chipsets: Found chipset "Intel QS57". This chipset is marked as untested. If you are using an up-to-date version of flashrom please email a report to flashrom@flashrom.org including a verbose (-V) log. Thank you! Enabling flash write... OK. This chipset supports the following protocols: FWH, SPI. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1379 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* flashrom.8: explain read accesses as part of the write operationstefanct2011-07-211-3/+10
| | | | | | | | Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Paul Menzel <paulepanter@users.sourceforge.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1378 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* ft2232_spi: Improve error handling, remove exit() calls.uwe2011-07-211-14/+33
| | | | | | | | | | | | | | | | | | In order to make the ft2232_spi code more usable in libflashrom (e.g. from frontends/GUIs) there must not be any exit() calls in the code, as that would also terminate the frontend. Thus, replace all exit() calls with proper error handling code by returning a _unique_ negative error number, so that the frontend (and/or user/developer) can also know a bit more exactly _which_ error occured, not only _that_ an error occured. Also, call ftdi_usb_close() before returning due to errors. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Tadas Slotkus <devtadas@gmail.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1377 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* fix the ASUS A8N-VM CSM board enablestefanct2011-07-201-4/+4
| | | | | | | | | | | based on joshua's work, see: http://www.flashrom.org/pipermail/flashrom/2011-June/007015.html Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Joshua Roys <roysjosh@gmail.com> Tested-by: Bernie Innocenti <bernie@fsf.org> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1376 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* annotate additional flashchips with voltage rangesstefanct2011-07-191-17/+45
| | | | | | | | | | also fix a few others and remove the one for Intel 28F002BC/BL/BV/BX-T because we need to investigate it further. Signed-off-by: Steven Zakulec <spzakulec@gmail.com> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1375 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* fix a bug breaking layout file handling in r1373stefanct2011-07-191-1/+1
| | | | | | | | | | | Florian Zumbiehl discovered that we have broken the -i switch in the last commit resulting in self-contradictory output: http://paste.flashrom.org/view.php?id=707 Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1374 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Fix and clean up cli_classic.chailfinger2011-07-151-23/+30
| | | | | | | | | | | | | | Don't ignore -i if it is specified before -l Check if image mentioned by -i is present in layout file Consolidate duplicated programmer_shutdown calls Kill outdated comments Finish parameter checking before -L/-z is executed Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: David Hendricks <dhendrix@google.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1373 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* enable writing on mcp6x_7xstefanct2011-07-131-2/+3
| | | | | | | | | this was deliberately disabled until now, but seems to work well enough. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1372 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Change "class" parameter name to "devclass" to avoid C++ issues.uwe2011-07-132-3/+3
| | | | | | | | | | | | | | In C++ "class" is a reserved keyword, and as we'll want to use libflashrom from C++ code at some point, let's make sure it doesn't cause issues. Other places in the code already used "devclass" anyway, so it also increases consistency and readability a bit. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1371 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* fix unchecked malloc calls and casts of malloc return valuesstefanct2011-07-124-3/+25
| | | | | | | | | | | | in the long term the exit calls should be replaced by returns. until then this is the correct way to handle failures. the casts are not needed (in C) and we don't cast malloc return values anywhere else. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1370 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* update motherboard URLs in print.cstefanct2011-07-121-41/+41
| | | | | | | | | Signed-off-by: Benjamin Bellec <b.bellec@gmail.com> with small changes: Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1369 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* add untested board enable for ASUS M6Nestefanct2011-07-092-0/+11
| | | | | | | | | | | | | http://patchwork.coreboot.org/patch/2893/ lspci: http://paste.flashrom.org/view.php?id=494 only writing a backup file was tested, so mark it as untested. Signed-off-by: Joshua Roys <roysjosh@gmail.com> Signed-off-by: Idwer Vollering <vidwer@gmail.com> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1368 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* add a bunch of new/tested stuff and various small changes 4stefanct2011-07-078-30/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add Asus E35M1-I DELUXE to boards_known http://www.flashrom.org/pipermail/flashrom/2011-June/006918.html - add Asus M3A to boards_known http://www.flashrom.org/pipermail/flashrom/2011-July/007085.html - add Freetech P6F91i to boards_known http://www.flashrom.org/pipermail/flashrom/2011-June/006800.html - add GA-M720-US3 to boards_known http://www.flashrom.org/pipermail/flashrom/2011-July/007096.html - add GA-MA770-UD3 (rev. 2.1) to boards_known http://www.flashrom.org/pipermail/flashrom/2011-June/006879.html - add GA-965GM-S2 to boards_known http://www.flashrom.org/pipermail/flashrom/2011-June/006746.html - add HP xw4400 (0A68h) to boards_known http://paste.flashrom.org/view.php?id=686 - add MSI MS-6566 (845 Ultra-C) to boards_known http://www.flashrom.org/pipermail/flashrom/2011-June/006908.html - add MSI MS-7698 (E350IA-E45) to boards_known http://www.flashrom.org/pipermail/flashrom/2011-June/007003.html - add PCCHIPS M863G (V5.1A) to boards_known http://www.flashrom.org/pipermail/flashrom/2011-July/007084.html - modify the X8SIE entry in boards_known with the information from "fuzzy" http://paste.flashrom.org/view.php?id=669 - mark W29C020(C)/W29C022 as fully tested http://www.flashrom.org/pipermail/flashrom/2011-June/006800.html - mark W49V002A as fully tested http://www.flashrom.org/pipermail/flashrom/2011-July/007084.html - mark M25P128 as fully tested http://www.flashrom.org/pipermail/flashrom/2011-June/006843.html - mark SST39SF010A as fully tested http://www.flashrom.org/pipermail/flashrom/2011-July/007115.html - correct entries for GA-K8NS Pro-939 (was ultra before. thanks uwe!) - another tiny fix for "a small fix"/r1321 Without this you will get broken bus names "Unknow" and "Non-SP". Note to self: don't self-ack even fairly trivial patches. - fix spew output of spi_rems in spi25.c - add URL to ASUS M3A76-CM - rename all Winbond W25x chips to W25X - fixes some common misspellings/typos in comments: lenght->length 2 ocassional->occasional 1 unsucessfull->unsuccessful 1 upto->up to 5 the patch for M25P128 is Signed-off-by: Cristian Măgherușan-Stanciu <cristi.magherusan@gmail.com> the typos are Signed-off-by: Peter Huewe <peterhuewe@gmx.de> everything else is Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1367 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Autodetect target processor architecture.hailfinger2011-07-072-2/+43
| | | | | | | | | | | Enable architecture dependent compilation of individual sub-drivers for the internal programmer. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: David Hendricks <dhendrix@google.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1366 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* ichspi.c: print FADDR in ich_init_spistefanct2011-07-071-0/+2
| | | | | | | | | | We print the address registers for ICH7 and VIA at init. We should do so for ICH9 too. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: David Hendricks <dhendrix@google.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1365 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Kill unused "log" argument of count_usable_erasers().stefanct2011-07-041-5/+4
| | | | | | | Signed-off-by: Sylvain "ythier" Hitier <sylvain.hitier@gmail.com> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1364 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Fix and improve Windows/MinGW/MSYS build.uwe2011-07-032-2/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Makefile: Use $(OS_ARCH) to add some MinGW-specific workarounds and settings, so that a simple "make" is sufficient on MinGW (instead of manual Makefile hacking). - Explicitly set CC=gcc in the Makefile, otherwise you get an error like "cc: command not found" on MinGW. - MinGW doesn't have ffs(), use gcc's __builtin_ffs() instead. - Add /usr/local/include and /usr/local/lib to CPPFLAGS/LDFLAGS, that's where libusb-win32 and libftdi stuff is usually placed on MinGW/MSYS. - Disable serprog (no sockets) and all PCI-based programmers (no libpci) for now. That leaves dummy, ft2232_spi, and buspirate_spi enabled on MinGW per default. - serial.c: Use correct type for 'tmp', both on Windows/MinGW (DWORD) and POSIX (ssize_t). Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1363 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* ichspi.c: preserve reserved bits in address registersstefanct2011-07-011-5/+8
| | | | | | | Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1362 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* ichspi.c: add FPB (Flash Partition Boundary) macros and init printingstefanct2011-07-011-0/+7
| | | | | | | Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1361 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* ichspi.c: simplify ich_set_bbarstefanct2011-07-011-27/+21
| | | | | | | | | Less code, documenting better what the differences are (i.e. offset of BBAR only). Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1360 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* ichspi.c: make REGWRITE* macros saferstefanct2011-07-011-3/+3
| | | | | | | | | | | '+' does have a quite high precedence so "calling" those macros with a term including weaker operators in the off parameter may have unexpected consequences. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1359 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* add count_usable_erasers which returns the number of well-defined erasers ↵stefanct2011-07-011-12/+22
| | | | | | | | | | | | | for a chip It solves one FIXME and consequentially allows to remove a later check right now, and is used in the upcoming SFDP patch. Adds a forward declaration of check_block_eraser. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1358 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* fix memleaks due to incorrect usage of flashbuses_to_textstefanct2011-06-264-8/+18
| | | | | | | Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1357 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* make Makefile's test programs safe(r)stefanct2011-06-261-5/+5
| | | | | | | | | | | | | | we don't use -W or similarly strict compiler checks (yet), but enabling its use is a good thing. if you add -W to the cflags without this patch, detection of the compiler will fail with gcc 4.4 for example, because compiling of the test program will fail due to a warning of unused arguments and -Werror. similarly the other checks involving compiling test programs would fail. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1356 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* add a success indicator to the "Reading old flash chip contents..." messagestefanct2011-06-261-1/+3
| | | | | | | Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1355 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* constify (a few) parameters in flashrom.c where possiblestefanct2011-06-263-15/+15
| | | | | | | Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1354 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Erase functions are no longer called from chip drivers and thus theirhailfinger2011-06-2610-72/+21
| | | | | | | | | | | | | internal erase verification can be moved to generic code. This also makes it easier to skip the verify step if desired and to differentiate between failed command submission and failed erase verification. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1353 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Replace sizeof("string")-1 with strlen("string")hailfinger2011-06-261-6/+6
| | | | | | | | | | | | | | | We want to avoid calls to strlen at runtime if the string is already known at compile time. Turns out that gcc and clang will recognize constant strings and compute the strlen result already at compile time, so trickery with sizeof only reduces readability but does not improve the code. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1352 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* print.c: change all occurrences of printf to msg_ginfostefanct2011-06-251-70/+70
| | | | | | | Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1351 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* fix probe_flash to report new values set by probing functionsstefanct2011-06-251-2/+2
| | | | | | | | | | This is needed if the probing function changes its fill_flash parameter like in the pattern used to support Intel Hardware Sequencing and SFDP. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1350 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Currently messages like "Writing flash chip..." that don't end with auwe2011-06-191-0/+1
| | | | | | | | | | | | | | | newline are buffered until the operation is complete, unless the particular write function generates status output in the meantime. Flushing stdout after each message ensures that the message appears immediately. Signed-off-by: Ed Swierk <eswierk@aristanetworks.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1349 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* flashchips.c: Fix typo: s/don't/doesn't/.uwe2011-06-191-13/+13
| | | | | | | | | Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1348 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Look at the return value of wait_82802ab().uwe2011-06-191-0/+1
| | | | | | | | | Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1347 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Add ASRock K7S41GX board-enable.uwe2011-06-192-0/+3
| | | | | | | | | | | Tested reading, writing and verification, all worked fine. Signed-off-by: Pawel Rozanski <rozie@poczta.onet.pl> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1346 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Various board status updates.uwe2011-06-182-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mark the following boards as OK: - ASUS P7H57D-V EVO (reported by Andrew Wierzan <andrew@emerginguk.com>) http://www.flashrom.org/pipermail/flashrom/2010-October/005042.html - Tyan S2723 (Tiger i7501) (reported by Uwe Hermann <uwe@hermann-uwe.de>) http://www.flashrom.org/pipermail/flashrom/2010-October/005156.html - ASUS P5VD1-X (reported by Olle Gross <gusgross@student.gu.se>) http://www.flashrom.org/pipermail/flashrom/2010-October/005205.html - Lanner EM-8510C (reported by Christian Motz <christian.motz@funkwerk-ec.com>) http://www.flashrom.org/pipermail/flashrom/2010-October/005240.html - ASUS A8N-VM (reported by Dave B <flashrom@d10.karoo.co.uk>) http://www.flashrom.org/pipermail/flashrom/2010-October/005247.html - GIGABYTE GA-6VXE7+ (reported by Justin Doiel <justin.doiel@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-October/005251.html - Supermicro X7SPA-HF (reported by Jochen Schulz <ml@well-adjusted.de>) http://www.flashrom.org/pipermail/flashrom/2010-November/005346.html - ASUS M4A78-EM (reported by Jani Uusitalo <jani@mummila.net>) http://www.flashrom.org/pipermail/flashrom/2010-December/005587.html - ASUS P5N32-E SLI (reported by Paul Brookman <paul_brookman@sky.com>) http://www.flashrom.org/pipermail/flashrom/2010-December/005559.html Mark the following chips as OK: - SST SST39SF020A (reported by Andrew Morgan <ziltro@ziltro.com>) http://www.flashrom.org/pipermail/flashrom/2010-October/005107.html - ST M25P80 (reported by Harald Gutmann <harald.gutmann@gmx.net>) http://www.flashrom.org/pipermail/flashrom/2010-November/005334.html Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1345 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* add intel 6 series pci ids to chipset_enablesstefanct2011-06-181-0/+15
| | | | | | | | | | as defined by Intel 6 Series Chipset and Intel C200 Series Chipset Specification Update; document number 324646-006, May 2011. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1344 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* fix and add a few chipset_enables entriesstefanct2011-06-181-5/+10
| | | | | | | | Signed-off-by: Idwer Vollering <vidwer@gmail.com> Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1343 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* resort chipset_enables array by pci idsstefanct2011-06-181-105/+105
| | | | | | | | Signed-off-by: Idwer Vollering <vidwer@gmail.com> Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1342 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Do not display skipped probe messsages in verbose mode.hailfinger2011-06-171-10/+11
| | | | | | | | | | They are still visible in spew mode (-VV). Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1341 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Update the flashrom udev rules file with new programmers.uwe2011-06-171-0/+20
| | | | | | | | | | | | | | | | | Add the following missing USB devices: - FIC OpenMoko Neo1973 Debug board (V2+) - Olimex ARM-USB-OCD - Olimex ARM-USB-OCD-H - Olimex ARM-USB-TINY - Olimex ARM-USB-TINY-H Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1340 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Update the flashrom manpagestefanct2011-06-151-14/+22
| | | | | | | | | | | | | | | - Add missing entries for nicintel and satamv. - Add various programmers to those that support the 'pci=' option. - Small cosmetic, whitespace, grammar or consistency fixes. - Update the date of last change of the manpage. - Add Stefan Tauner to the list of authors. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Signed-off-by: Andrew Morgan <ziltro@ziltro.com> Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1339 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1