aboutsummaryrefslogtreecommitdiffstats
path: root/flash_rom.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename flash_rom.c.cUwe Hermann2007-04-111-459/+0
| | | | | | | | | 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>
* Trivial (cosmetic) cleanupStefan Reinauer2007-04-061-38/+31
| | | | | | | | | | | | | * 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-041-4/+80
| | | | | | | | | | | | | | | | | | | | 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>
* 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>
* This patch is a rework of Adam Kaufman's Solaris patchAdam Kaufman2007-02-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | * 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>
* 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>
* 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>
* Some documentation updates by Uwe and some smaller ones by meStefan Reinauer2006-08-031-16/+18
| | | | Corresponding to flashrom svn r59 and coreboot v2 svn r2358.
* Multiple unrelated changesStefan Reinauer2006-03-161-17/+46
| | | | | | | | - speed up flash verification by only printing 1 of 4096 addresses - support for flashing technologic system ts5300 SBC (needs -DTS5300 in the makefile) Corresponding to flashrom svn r47 and coreboot v2 svn r2205.
* Pass on return valuesStefan Reinauer2006-01-041-3/+4
| | | | Corresponding to flashrom svn r39 and coreboot v2 svn r2151.
* Multiple unrelated changesStefan Reinauer2005-12-181-6/+5
| | | | | | | | * make -v switch print debug messages. * do case insensitive comparison of mainboards, as wished on the mailinglist Corresponding to flashrom svn r37 and coreboot v2 svn r2146.
* Flashrom update from Stefan, resolve issue 21Ollie Lho2005-11-261-101/+119
| | | | Corresponding to flashrom svn r34 and coreboot v2 svn r2111.
* Add dedicated chip erase function for SST49LF040Ollie Lho2005-01-111-1/+1
| | | | Corresponding to flashrom svn r31 and coreboot v2 svn r1852.
* Add -E option for chip erase, remove duplicated codeOllie Lho2004-12-081-4/+12
| | | | Corresponding to flashrom svn r30 and coreboot v2 svn r1815.
* Add retry to write_byte_program_jedec(), 99% success rateOllie Lho2004-12-081-13/+0
| | | | Corresponding to flashrom svn r29 and coreboot v2 svn r1814.
* Enable LPC decoding for 1 MB more addresss, for supporting SST49LF00xA/BOllie Lho2004-12-071-9/+5
| | | | Corresponding to flashrom svn r28 and coreboot v2 svn r1813.
* SST49LF00[2,3,4] should use the same driver as 49LF008Ollie Lho2004-12-071-19/+19
| | | | Corresponding to flashrom svn r27 and coreboot v2 svn r1812.
* Tyan update to work with new CPU ConfigYinghai Lu2004-10-201-4/+66
| | | | Corresponding to flashrom svn r26 and coreboot v2 svn r1693.
* Support for sst firmware hubRonald G. Minnich2004-09-301-1/+2
| | | | Corresponding to flashrom svn r25 and coreboot v2 svn r1651.
* Code reformatOllie Lho2004-09-071-2/+1
| | | | Corresponding to flashrom svn r22 and coreboot v2 svn r1647.
* Remove false alarm of erase/write, use verify '-v' if you are not sure about ↵Ollie Lho2004-03-271-47/+43
| | | | | | the integrity Corresponding to flashrom svn r19 and coreboot v2 svn r1486.
* I have no idea what i was trying to show off when I used the while loop ↵Ollie Lho2004-03-201-3/+2
| | | | | | | | rather than for loop Please forgive me, I was too young 4 years ago. Corresponding to flashrom svn r16 and coreboot v2 svn r1458.
* Consolidate more jedec standard codeOllie Lho2004-03-201-72/+78
| | | | Corresponding to flashrom svn r15 and coreboot v2 svn r1457.
* Remove duplicated codeOllie Lho2004-03-191-15/+12
| | | | Corresponding to flashrom svn r14 and coreboot v2 svn r1456.
* Add support for SST49LF0xxA partsDavid Hendricks2004-03-181-1/+12
| | | | Corresponding to flashrom svn r13 and coreboot v2 svn r1439.
* Forgot a semicolonOllie Lho2004-03-181-1/+1
| | | | Corresponding to flashrom svn r11 and coreboot v2 svn r1437.
* Fix stupid i++ evalution order bugOllie Lho2004-03-181-4/+8
| | | | Corresponding to flashrom svn r9 and coreboot v2 svn r1435.
* Fix 32bit vs. 64bit long int arithematicsOllie Lho2004-03-181-3/+2
| | | | Corresponding to flashrom svn r8 and coreboot v2 svn r1434.
* Use standard product ID exit method for w49f002uOllie Lho2004-03-171-1/+1
| | | | Corresponding to flashrom svn r7 and coreboot v2 svn r1433.
* Move utility functions into new source filesOllie Lho2004-03-171-544/+183
| | | | Corresponding to flashrom svn r6 and coreboot v2 svn r1428.
* Add support for SST49LF040David Hendricks2004-03-171-1/+6
| | | | Corresponding to flashrom svn r5 and coreboot v2 svn r1422.
* Now we support 8111 and these partsRonald G. Minnich2004-02-101-4/+80
| | | | Corresponding to flashrom svn r3 and coreboot v2 svn r1375.
* Changes from NIKIRonald G. Minnich2003-09-121-20/+39
| | | | Corresponding to coreboot v1 svn r873.
* SONE's changesRonald G. Minnich2003-07-251-19/+26
| | | | Corresponding to coreboot v1 svn r863.
* Add flash enable for sc1100Andrew Ip2003-07-221-0/+18
| | | | Corresponding to coreboot v1 svn r856.
* Add vt8235 for epia-mAndrew Ip2003-07-211-0/+39
| | | | Corresponding to coreboot v1 svn r854.
* Fix for sis 5595Ronald G. Minnich2003-05-081-0/+24
| | | | Corresponding to coreboot v1 svn r805.
* Add support for CS5530Ronald G. Minnich2003-04-211-2/+20
| | | | Corresponding to coreboot v1 svn r780.
* Fixes ...Ronald G. Minnich2003-03-281-29/+103
| | | | Corresponding to coreboot v1 svn r760.
* Made the ids always print in hex less verbose verify stepRonald G. Minnich2003-02-281-6/+12
| | | | Corresponding to coreboot v1 svn r752.
* Enhancements to make flash_rom easierRonald G. Minnich2003-02-121-2/+2
| | | | Corresponding to coreboot v1 svn r746.
* This will now enable flash automagically for chipsets on which it knows howRonald G. Minnich2003-02-111-2/+77
| | | | | | Currently, only e7500 supported, but it is easy to add more. Corresponding to coreboot v1 svn r744.
* Clean up at user requestRonald G. Minnich2003-02-111-5/+8
| | | | Corresponding to coreboot v1 svn r743.
* Quick fix for 82802acRonald G. Minnich2003-01-131-0/+2
| | | | Corresponding to coreboot v1 svn r736.
* Add w29c011Andrew Ip2002-12-301-0/+2
| | | | Corresponding to coreboot v1 svn r727.
* Add w49f002u supportAndrew Ip2002-10-161-0/+2
| | | | Corresponding to coreboot v1 svn r643.
* Can now burn 82802abRonald G. Minnich2002-09-061-0/+4
| | | | Corresponding to coreboot v1 svn r633.
* Add sst39vf020 supportOllie Lho2002-07-181-0/+2
| | | | Corresponding to coreboot v1 svn r606.
* Add support for ST M29F400BT - part 1Ronald G. Minnich2002-05-281-0/+3
| | | | Corresponding to coreboot v1 svn r582.
* Support for the 39sf020Ronald G. Minnich2002-04-101-1/+1
| | | | Corresponding to coreboot v1 svn r544.