summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Exit on return code of read_layout and print error message to stderr instead ↵Stefan Reinauer2007-04-142-2/+4
| | | | | | | | | of stdout Corresponding to flashrom svn r104 and coreboot v2 svn r2610. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Rename flash_rom.c.cUwe Hermann2007-04-112-3/+3
| | | | | | | | | The tool is called 'flashrom' after all. Corresponding to flashrom svn r103 and coreboot v2 svn r2603. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Add VIA CX700 to the list of supported southbridgesUwe Hermann2007-04-091-0/+1
| | | | | | | Corresponding to flashrom svn r102 and coreboot v2 svn r2601. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for CX700 builtin southbridgeRandall Philipson2007-04-091-0/+1
| | | | | | | | Corresponding to flashrom svn r101 and coreboot v2 svn r2599. Signed-off-by: Randall Philipson <rtphilipson@cox.net> Acked-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Trivial (cosmetic) cleanupStefan Reinauer2007-04-068-61/+51
| | | | | | | | | | | | | * Only open /dev/mem once and do it early. * Drop extern for function prototypes. * Minimize ts5300 impact in probe_flash() This cleanup will making ICH7 SPI support quite some easier. Corresponding to flashrom svn r100 and coreboot v2 svn r2585. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Split flash_enable.c into chipset_enable.c and board_enable.cLuc Verhaegen2007-04-045-208/+464
| | | | | | | | | | | | | | | | | | | | This splits up the ROM Write enable code into chipset specific and board specific parts. This of course means that a lot of code is plainly moved about. * Allows for linuxbios name matching and pci-subsystem id matching. The latter uses a double set to properly distuinguish boards despite of some known vendors being lax about it. * Fixes GPIO15 being raised on every VT8235 southbridge, regardless of what that line actually controls; rom on EPIA-M, backlight on mitac 8999 laptop. * Adds flashrom support for Asus A7V400-MX (KM400 + VT8235) * Island aruma was renamed agami aruma, the board specific code now got adjusted. A set of pci-ids was retrieved from source code. Corresponding to flashrom svn r99 and coreboot v2 svn r2581. Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Drop useless and partly even incorrect commentsUwe Hermann2007-04-011-49/+54
| | | | | | | Corresponding to flashrom svn r98 and coreboot v2 svn r2578. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Coding style fixesUwe Hermann2007-04-0114-133/+122
| | | | | | | Corresponding to flashrom svn r97 and coreboot v2 svn r2577. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for the ICH7-DH southbridge (untested)Uwe Hermann2007-03-311-0/+1
| | | | | | | Corresponding to flashrom svn r96 and coreboot v2 svn r2575. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Peter Stuge <peter@stuge.se>
* This is a trivial cosmetic fixStefan Reinauer2007-03-221-1/+1
| | | | | | | | | | Without it, the error message might look like: Image size doesnt match: Success Corresponding to flashrom svn r95 and coreboot v2 svn r2573. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* The attached patch adds additional PCI IDs for MCP55 LPC devicesEd Swierk2007-03-061-0/+5
| | | | | | | | | | | 0x0360 is needed to support the DFI LANParty NF590SLI, and I am deducing the others based on pci_ids.h in the Linux kernel. Corresponding to flashrom svn r94 and coreboot v2 svn r2570. Signed-off-by: Ed Swierk <eswierk@arastra.com> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Fix wrong VT8235 flash enable failed warningLuc Verhaegen2007-03-021-40/+37
| | | | | | | | | | | | | | * Fix harmless but worrying warning where the return value of pci_write_byte is misinterpreted. * Hash together VT8231 and VT8235 code into VT823x. VT8231 is the better implementation, but lacked the write protect disable code that's apparently needed for VT8235. Corresponding to flashrom svn r93 and coreboot v2 svn r2568. Signed-off-by: Luc Verhaegen <libv@skynet.be> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Add Winbond W39V080A supportDavid Hendricks2007-03-023-0/+4
| | | | | | | | Corresponding to flashrom svn r92 and coreboot v2 svn r2565. Signed-off-by: David Hendricks <david.hendricks@gmail.com> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for the Gigabyte m57sli-s4 boardWard Vandewege2007-02-281-0/+1
| | | | | | | Corresponding to flashrom svn r91 and coreboot v2 svn r2564. Signed-off-by: Ward Vandewege <ward@gnu.org> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Note in makefile messages that zlib may be needed for libpciEd Swierk2007-02-161-2/+2
| | | | | | | | | | | | | Currently the flashrom Makefile tries to detect whether pciutils-devel is installed, but the test also fails if zlib-devel is missing. This patch changes the error message accordingly. Corresponding to flashrom svn r90 and coreboot v2 svn r2553. Signed-off-by: Ed Swierk <eswierk@arastra.com> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for LinuxBIOS tables independent from its source treeUwe Hermann2007-02-062-1/+217
| | | | | | | Corresponding to flashrom svn r89 and coreboot v2 svn r2551. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* This patch is a rework of Adam Kaufman's Solaris patchAdam Kaufman2007-02-069-37/+72
| | | | | | | | | | | | | | | | | | | | | | * flash.h: - add a license header - add system definitions * flash_enable.c: - put io priviledge access in one single place - add includes required for Solaris. * lbtable.c, flash_rom.c, 82802ab.c: - use MEM_DEV so it works on Solaris * sst49lfxxxc.c, sharplhf00l04.c, sst_fwhub.c, 82802ab.c - drop unneeded include to sys/io.h * Makefile - adapt to Solaris specifics. Corresponding to flashrom svn r88 and coreboot v2 svn r2550. Signed-off-by: Adam Kaufman <adam.kaufman@pinnacle.com> Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Adam Kaufman <adam.kaufman@pinnacle.com>
* Add support for the SST 49LF160CAlan Carvalho de Assis2007-01-273-0/+4
| | | | | | | Corresponding to flashrom svn r87 and coreboot v2 svn r2539. Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Delete superfluous and incorrect commentUwe Hermann2007-01-241-1/+0
| | | | | | | Corresponding to flashrom svn r86 and coreboot v2 svn r2538. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for the SST-49LF004C, SST-49LF008C, SST-49LF016CYinghai Lu2007-01-227-1/+272
| | | | | | | | | | Also add suport for NVIDIA MCP55. Corresponding to flashrom svn r85 and coreboot v2 svn r2537. Signed-off-by: Yinghai Lu <yinghai.lu@amd.com> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Peter Stuge <peter@stuge.se>
* Improve flashrom description in the manpage a bitUwe Hermann2006-12-201-3/+5
| | | | | | | Corresponding to flashrom svn r84 and coreboot v2 svn r2531. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Update flashrom requirements in the READMEUwe Hermann2006-12-201-1/+2
| | | | | | | Corresponding to flashrom svn r83 and coreboot v2 svn r2530. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add an install target to the flashrom Makefile which installs flashrom into ↵Uwe Hermann2006-12-141-0/+5
| | | | | | | | | /usr/local/bin Corresponding to flashrom svn r82 and coreboot v2 svn r2524. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Update list of supported flash chips in the flashrom READMEUwe Hermann2006-12-041-1/+5
| | | | | | | Corresponding to flashrom svn r81 and coreboot v2 svn r2518. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* List the supported flash chips and southbridges in the flashrom README fileUwe Hermann2006-12-041-0/+58
| | | | | | | Corresponding to flashrom svn r80 and coreboot v2 svn r2517. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Fix location of the bug tracker in the manpageUwe Hermann2006-11-221-2/+2
| | | | | | | Corresponding to flashrom svn r79 and coreboot v2 svn r2507. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Fix write_page_write_jedec() in jedec.cGiampiero Giancipoli2006-11-222-15/+50
| | | | | | | | | | | | | | | | | | | Added a check-reprogram loop in the same function, to come around the high page write failure rate on some boards. This patch includes the changes suggested by Ron to simplify the control flow. It also includes trivial changes by me to make flashrom build on newer systems (libpci needs libz now). I also made a small type case compile fix and proper return code handling in one or two places. Corresponding to flashrom svn r78 and coreboot v2 svn r2505. Signed-off-by: Giampiero Giancipoli <gianci@email.it> Signed-off-by: Ronald G Minnich <rminnich@gmail.com> Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Add support for ASD AE49F2008 Stefan Reinauer2006-11-212-0/+5
| | | | | | | Corresponding to flashrom svn r77 and coreboot v2 svn r2504. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Only write the flash if the image has the same sizeStefan Reinauer2006-11-211-0/+13
| | | | | | | Corresponding to flashrom svn r76 and coreboot v2 svn r2503. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Segher Boessenkool <segher@kernel.crashing.org>
* Rename SM_ID to SYNCMOS_IDUwe Hermann2006-11-212-5/+5
| | | | | | | Corresponding to flashrom svn r75 and coreboot v2 svn r2502. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for the SyncMOS S29C51001T, S29C51004T, and S29C31004TUwe Hermann2006-11-212-1/+10
| | | | | | | Corresponding to flashrom svn r74 and coreboot v2 svn r2501. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com>
* Cosmetic fixes and typosUwe Hermann2006-11-201-17/+21
| | | | | | | Corresponding to flashrom svn r73 and coreboot v2 svn r2500. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Support for the 256K SyncMos S29C51002T flashGiampiero Giancipoli2006-11-202-0/+5
| | | | | | | Corresponding to flashrom svn r72 and coreboot v2 svn r2499. Signed-off-by: Giampiero Giancipoli <gianci@email.it> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Instead of checking the first byte only, the whole part is checked nowStefan Reinauer2006-11-071-5/+8
| | | | | | | | | | This Corresponding to flashrom svn r71 and coreboot v2 svn r2494. will detect any improper erase, closes #31 Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Fix some code comments of the Intel PIIX4/PIIX4E/PIIX4M codeUwe Hermann2006-11-071-4/+10
| | | | | | | | | | Add detailed instructions on how and where to get the datasheet, its name, and order number. Corresponding to flashrom svn r70 and coreboot v2 svn r2493. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Support for VIA VT82C686 utilityStefan Reinauer2006-11-071-0/+1
| | | | | | | | Corresponding to flashrom svn r69 and coreboot v2 svn r2492. closes #30 Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Add support for Intel PIIX4/PIIX4E/PIIX4M-based mainboardsUwe Hermann2006-11-051-0/+32
| | | | | | | | | Tested on real hardware, reading, detecting and writing various chips works. Corresponding to flashrom svn r68 and coreboot v2 svn r2489. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Multiple unrelated changesStefan Reinauer2006-10-141-1/+7
| | | | | | | * add vt8237 support (Uwe Hermann) * add more MCP51 support (me) Corresponding to flashrom svn r67 and coreboot v2 svn r2456.
* Here's a small patch to add support for the SST 49LF020AUwe Hermann2006-10-072-0/+3
| | | | | | | Corresponding to flashrom svn r66 and coreboot v2 svn r2450. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> X-Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
* Tiny patch to show the size of the detected flash part Uwe Hermann2006-10-071-1/+1
| | | | | | | Corresponding to flashrom svn r65 and coreboot v2 svn r2449. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> X-Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
* Fix flashrom for sst49lf080a and small print bugRoman Kononov2006-10-072-6/+5
| | | | | | | Corresponding to flashrom svn r64 and coreboot v2 svn r2448. Signed-off-by: Roman Kononov <kononov195-lbl@yahoo.com>. X-Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
* Abuild manpage and other fixes from Uwe HermannStefan Reinauer2006-09-211-21/+20
| | | | Corresponding to flashrom svn r63 and coreboot v2 svn r2431.
* Add patch from Uwe Hermann to support more ICH southbridgesStefan Reinauer2006-09-061-39/+30
| | | | Corresponding to flashrom svn r62 and coreboot v2 svn r2395.
* Print a warning if southbridge is not knownStefan Reinauer2006-08-252-6/+10
| | | | Corresponding to flashrom svn r61 and coreboot v2 svn r2390.
* Removing $Id$ tags as they have no meaning in SVNStefan Reinauer2006-08-238-9/+0
| | | | Corresponding to flashrom svn r60 and coreboot v2 svn r2386.
* Some documentation updates by Uwe and some smaller ones by meStefan Reinauer2006-08-033-41/+46
| | | | Corresponding to flashrom svn r59 and coreboot v2 svn r2358.
* Add support for SST39SF040, SST39SF010A and W39V040BStefan Reinauer2006-07-313-6/+16
| | | | Corresponding to flashrom svn r58 and coreboot v2 svn r2354.
* Add flashrom manpage from Uwe HermannStefan Reinauer2006-07-271-0/+79
| | | | Corresponding to flashrom svn r57 and coreboot v2 svn r2349.
* Signed-off-by: Scott Tsai <scott.tsai@arima.com.tw>Stefan Reinauer2006-07-192-0/+3
| | | | | | | Data sheet: http://www.alldatasheet.com/datasheet-pdf/pdf/47674/WINBOND/W49V002FAP.html Corresponding to flashrom svn r56 and coreboot v2 svn r2341.
* Add support for EFST F49B002UA (untested)Stefan Reinauer2006-06-302-0/+5
| | | | Corresponding to flashrom svn r55 and coreboot v2 svn r2336.
OpenPOWER on IntegriCloud