1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 15:12:36 +02:00

132 Commits

Author SHA1 Message Date
Uwe Hermann
9a37ba6e9c Rename flash_rom.c.c
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>
2007-04-11 23:31:45 +00:00
Uwe Hermann
a4c63c2f66 Add VIA CX700 to the list of supported southbridges
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>
2007-04-09 22:59:22 +00:00
Randall Philipson
c03106603a Add support for CX700 builtin southbridge
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>
2007-04-09 22:27:45 +00:00
Stefan Reinauer
7038564346 Trivial (cosmetic) cleanup
* 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>
2007-04-06 11:58:03 +00:00
Luc Verhaegen
8e3a600123 Split flash_enable.c into chipset_enable.c and board_enable.c
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>
2007-04-04 22:45:58 +00:00
Uwe Hermann
af2b52dc5f Drop useless and partly even incorrect comments
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>
2007-04-01 20:00:32 +00:00
Uwe Hermann
0b7afe65fb Coding style fixes
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>
2007-04-01 19:44:21 +00:00
Uwe Hermann
3ad2518939 Add support for the ICH7-DH southbridge (untested)
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>
2007-03-31 19:48:38 +00:00
Stefan Reinauer
df8a3c8300 This is a trivial cosmetic fix
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>
2007-03-22 14:51:45 +00:00
Ed Swierk
d6b86cf921 The attached patch adds additional PCI IDs for MCP55 LPC devices
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>
2007-03-06 23:49:49 +00:00
Luc Verhaegen
6382b444be Fix wrong VT8235 flash enable failed warning
* 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>
2007-03-02 22:16:38 +00:00
David Hendricks
71437d076f Add Winbond W39V080A support
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>
2007-03-02 02:25:36 +00:00
Ward Vandewege
3ab5415e48 Add support for the Gigabyte m57sli-s4 board
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>
2007-02-28 21:50:15 +00:00
Ed Swierk
e871d1ffac Note in makefile messages that zlib may be needed for libpci
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>
2007-02-16 14:36:12 +00:00
Uwe Hermann
ce1041c15a Add support for LinuxBIOS tables independent from its source tree
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>
2007-02-06 19:53:51 +00:00
Adam Kaufman
064b1f23fa This patch is a rework of Adam Kaufman's Solaris patch
* 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>
2007-02-06 19:47:50 +00:00
Alan Carvalho de Assis
474230ad42 Add support for the SST 49LF160C
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>
2007-01-27 13:39:06 +00:00
Uwe Hermann
3618346f13 Delete superfluous and incorrect comment
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>
2007-01-24 11:09:03 +00:00
Yinghai Lu
ca78297374 Add support for the SST-49LF004C, SST-49LF008C, SST-49LF016C
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>
2007-01-22 20:21:17 +00:00
Uwe Hermann
424b7cf57f Improve flashrom description in the manpage a bit
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>
2006-12-20 14:59:56 +00:00
Uwe Hermann
83f0db2681 Update flashrom requirements in the README
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>
2006-12-20 14:53:22 +00:00
Uwe Hermann
c113b57072 Add an install target to the flashrom Makefile which installs flashrom into /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>
2006-12-14 00:59:41 +00:00
Uwe Hermann
c22f542c74 Update list of supported flash chips in the flashrom README
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>
2006-12-04 08:20:40 +00:00
Uwe Hermann
b6d28323e1 List the supported flash chips and southbridges in the flashrom README file
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>
2006-12-04 08:15:47 +00:00
Uwe Hermann
2bd07a0b15 Fix location of the bug tracker in the manpage
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>
2006-11-22 15:27:29 +00:00
Giampiero Giancipoli
8c5299f83c Fix write_page_write_jedec() in jedec.c
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>
2006-11-22 00:29:51 +00:00
Stefan Reinauer
ef54abab33 Add support for ASD AE49F2008
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>
2006-11-21 23:51:08 +00:00
Stefan Reinauer
018aca8dcc Only write the flash if the image has the same size
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>
2006-11-21 23:48:51 +00:00
Uwe Hermann
566820d7f6 Rename SM_ID to SYNCMOS_ID
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>
2006-11-21 15:09:05 +00:00
Uwe Hermann
838c7697a1 Add support for the SyncMOS S29C51001T, S29C51004T, and S29C31004T
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>
2006-11-21 15:02:27 +00:00
Uwe Hermann
2dc5f429a7 Cosmetic fixes and typos
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>
2006-11-20 20:32:35 +00:00
Giampiero Giancipoli
a8c8082c1f Support for the 256K SyncMos S29C51002T flash
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>
2006-11-20 20:03:07 +00:00
Stefan Reinauer
e60fd35182 Instead of checking the first byte only, the whole part is checked now
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>
2006-11-07 13:48:46 +00:00
Uwe Hermann
987942dcbd Fix some code comments of the Intel PIIX4/PIIX4E/PIIX4M code
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>
2006-11-07 11:16:21 +00:00
Stefan Reinauer
c6b5f4913b Support for VIA VT82C686 utility
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>
2006-11-07 10:22:20 +00:00
Uwe Hermann
ea2c66d742 Add support for Intel PIIX4/PIIX4E/PIIX4M-based mainboards
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>
2006-11-05 18:26:08 +00:00
Stefan Reinauer
219b61e7f2 Multiple unrelated changes
* add vt8237 support (Uwe Hermann)
* add more MCP51 support (me)

Corresponding to flashrom svn r67 and coreboot v2 svn r2456.
2006-10-14 21:04:49 +00:00
Uwe Hermann
e205d98044 Here's a small patch to add support for the SST 49LF020A
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>
2006-10-07 22:59:03 +00:00
Uwe Hermann
d1915c1f10 Tiny patch to show the size of the detected flash part
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>
2006-10-07 00:23:51 +00:00
Roman Kononov
41c47676c2 Fix flashrom for sst49lf080a and small print bug
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>
2006-10-07 00:21:13 +00:00
Stefan Reinauer
de063bf72d Abuild manpage and other fixes from Uwe Hermann
Corresponding to flashrom svn r63 and coreboot v2 svn r2431.
2006-09-21 13:09:22 +00:00
Stefan Reinauer
eb366472f6 Add patch from Uwe Hermann to support more ICH southbridges
Corresponding to flashrom svn r62 and coreboot v2 svn r2395.
2006-09-06 15:48:48 +00:00
Stefan Reinauer
cbc55d0c29 Print a warning if southbridge is not known
Corresponding to flashrom svn r61 and coreboot v2 svn r2390.
2006-08-25 19:21:42 +00:00
Stefan Reinauer
028f46fd2e Removing $Id$ tags as they have no meaning in SVN
Corresponding to flashrom svn r60 and coreboot v2 svn r2386.
2006-08-23 14:33:54 +00:00
Stefan Reinauer
f8337dd398 Some documentation updates by Uwe and some smaller ones by me
Corresponding to flashrom svn r59 and coreboot v2 svn r2358.
2006-08-03 10:49:09 +00:00
Stefan Reinauer
e807d82e7d Add support for SST39SF040, SST39SF010A and W39V040B
Corresponding to flashrom svn r58 and coreboot v2 svn r2354.
2006-07-31 23:37:17 +00:00
Stefan Reinauer
261144ca43 Add flashrom manpage from Uwe Hermann
Corresponding to flashrom svn r57 and coreboot v2 svn r2349.
2006-07-27 23:29:02 +00:00
Stefan Reinauer
64f05bb12f Signed-off-by: Scott Tsai <scott.tsai@arima.com.tw>
Data sheet:
http://www.alldatasheet.com/datasheet-pdf/pdf/47674/WINBOND/W49V002FAP.html

Corresponding to flashrom svn r56 and coreboot v2 svn r2341.
2006-07-19 15:13:21 +00:00
Stefan Reinauer
af2c2b5f2b Add support for EFST F49B002UA (untested)
Corresponding to flashrom svn r55 and coreboot v2 svn r2336.
2006-06-30 20:07:50 +00:00
Stefan Reinauer
6424faf2f4 Add support for PMC 49FL002 as used in the RD1-PMC2
Corresponding to flashrom svn r54 and coreboot v2 svn r2332.
2006-06-25 09:56:45 +00:00