summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Drop a bunch of useless header files, merge them into flash.hUwe Hermann2007-08-2338-212/+101
| | | | | | | Corresponding to flashrom svn r128 and coreboot v2 svn r2746. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Move code into *.c files, there's no reason to have it in header filesUwe Hermann2007-08-238-200/+208
| | | | | | | Corresponding to flashrom svn r127 and coreboot v2 svn r2745. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Fix bug in probe_28sf040() causing flash corruption on SST49LF160C verifyEd Swierk2007-08-131-6/+1
| | | | | | | | | | | | The first byte of the flash chip was read at the start of the function and later written back to address 0 if the flash chip was not identified as SST28SF040, which means most of the time. This write caused corruption of flash contents when verifying a SST49LF160C part. Corresponding to flashrom svn r126 and coreboot v2 svn r2744. Signed-off-by: Ed Swierk <eswierk@arastra.com> Acked-by: Peter Stuge <peter@stuge.se>
* Add board enable for the EPoX EP-BX3Luc Verhaegen2007-08-112-0/+22
| | | | | | | | Corresponding to flashrom svn r125 and coreboot v2 svn r2743. Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Peter Stuge <peter@stuge.se> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add missing supported flash chips to the READMEUwe Hermann2007-07-271-0/+10
| | | | | | | Corresponding to flashrom svn r124 and coreboot v2 svn r2742. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add various ST flash chipsCarl-Daniel Hailfinger2007-07-252-2/+26
| | | | | | | | | | | | | | This patch adds support for the M50FLW040A, M50FLW040B, M50FLW080A, M50FLW080B, M50FW080, M50FW016, M50LPW116, M29W010B flash chips made by ST. The patch is based on the data sheets of the chips and has not been tested at all. Corresponding to flashrom svn r123 and coreboot v2 svn r2741. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* This patch adds support for ST M50FW040 and ST M29W040BCarl-Daniel Hailfinger2007-07-242-0/+6
| | | | | | | | | | | Only reading from the chips was tested; writing support is untested. Thanks to Gürkan Sengün <gurkan@linuks.mine.nu> for testing! Corresponding to flashrom svn r122 and coreboot v2 svn r2740. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for Tyan Tomcat K7MLuc Verhaegen2007-07-041-3/+8
| | | | | | | | | Same board enable as Asus A7V8-MX. Tested by Reinhard Max. Corresponding to flashrom svn r121 and coreboot v2 svn r2732. Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Fix up and document the AMD CS5530/CS5530A supportUwe Hermann2007-06-062-11/+22
| | | | | | | | | | | | | The previous code was pretty unreadable, undocumented and did some totally unrelated things (such as mucking with the game port or port 0x92). This version is tested with a 256 KB chip and should work for the CS5530 and CS5530A. Corresponding to flashrom svn r120 and coreboot v2 svn r2715. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Document the newly supported IBM x3455 board and the now-supported Broadcom ↵Uwe Hermann2007-06-053-6/+7
| | | | | | | | | HT-1000 chipset Corresponding to flashrom svn r119 and coreboot v2 svn r2713. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Move GPIO settings to board specific code for IBM x3455Stefan Reinauer2007-06-052-5/+14
| | | | | | | Corresponding to flashrom svn r118 and coreboot v2 svn r2712. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Add support for BCM HT1000 chipsetStefan Reinauer2007-06-051-0/+24
| | | | | | | | | Tested on IBM x3455. Corresponding to flashrom svn r117 and coreboot v2 svn r2711. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Minor cosmeticsUwe Hermann2007-05-242-3/+4
| | | | | | | Corresponding to flashrom svn r116 and coreboot v2 svn r2696. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Drop leftover includesStefan Reinauer2007-05-246-18/+5
| | | | | | | Corresponding to flashrom svn r115 and coreboot v2 svn r2693. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Some copyright analysisStefan Reinauer2007-05-242-1/+24
| | | | | | | Corresponding to flashrom svn r114 and coreboot v2 svn r2692. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Factor out register mapping codeStefan Reinauer2007-05-246-55/+32
| | | | | | | Corresponding to flashrom svn r113 and coreboot v2 svn r2691. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Unify mmap error messagesStefan Reinauer2007-05-236-10/+9
| | | | | | | Corresponding to flashrom svn r112 and coreboot v2 svn r2690. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Big cosmetic offensive on flashromStefan Reinauer2007-05-2317-178/+183
| | | | | | | | | | | | * Give decent names to virt_addr and virt_addr_2 * add some comments * move virtual addresses to the end of the struct, so they dont mess up the initializer. Corresponding to flashrom svn r111 and coreboot v2 svn r2689. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Add support for the Winbond W39V040FA chipUwe Hermann2007-05-213-0/+4
| | | | | | | Corresponding to flashrom svn r110 and coreboot v2 svn r2686. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Add support for ASUS P5A (Socket 7, ALi based)Luc Verhaegen2007-05-203-3/+96
| | | | | | | | | | | | | | * Add support for the ALi M1533 to chipset_enable.c * Add some SMBus poking needed for the ASUS P5A, to board_enable.c Since PCI subsystem IDs are worthless with this board, people will have to name the board directly. Corresponding to flashrom svn r109 and coreboot v2 svn r2677. Signed-off-by: Luc Verhaegen <libv@skynet.be> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Fix coding style of flashrom by running indent on all filesUwe Hermann2007-05-0915-800/+734
| | | | | | | | | | | | indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs *.[ch] Some minor fixups were required, and maybe a few more cosmetic changes are needed. Corresponding to flashrom svn r108 and coreboot v2 svn r2643. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add WinBond Super IO helpersLuc Verhaegen2007-05-041-115/+78
| | | | | | | | | | | | | | | | | * These helpers severely clear up winbond superio usage. * Removed board_iwill_dk8_htx as it can be replaced by board_agami_aruma (Mondrian Nuessle). * Renamed board_agami_aruma to w83627hf_gpio24_raise. * Clarified comments in w83627hf_gpio24_raise, and added some things from the old iwill code. * Moved all board functions name argument to const. (warning breaks build) * Moved iwill entry in board_pciid_enables. Corresponding to flashrom svn r107 and coreboot v2 svn r2627. Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Peter Stuge <peter@stuge.se>
* Enable flashing on IWILL DK8-HTXMondrian Nuessle2007-05-032-6/+64
| | | | | | | | | | Set the right GPIO pins on the Super I/O to disable write protection. Corresponding to flashrom svn r106 and coreboot v2 svn r2624. Signed-off-by: Mondrian Nuessle <nuessle@uni-mannheim.de> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Add initial support for the following flash chipsUwe Hermann2007-04-283-3/+16
| | | | | | | | | | | | | - Atmel AT29C020 - STMicroelectronics M29F002B - STMicroelectronics M29F002T - STMicroelectronics M29F002NT Corresponding to flashrom svn r105 and coreboot v2 svn r2621. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Signed-off-by: Roger Zauner <roger@eskimo.com> Acked-by: Peter Stuge <peter@stuge.se>
* 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>
OpenPOWER on IntegriCloud