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

139 Commits

Author SHA1 Message Date
Uwe Hermann
bc1f1a01e4 Add support for the Winbond W39V040FA chip
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>
2007-05-21 21:39:08 +00:00
Luc Verhaegen
6b14175ead Add support for ASUS P5A (Socket 7, ALi based)
* 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>
2007-05-20 16:16:13 +00:00
Uwe Hermann
a7e0548cea Fix coding style of flashrom by running indent on all files
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>
2007-05-09 10:17:44 +00:00
Luc Verhaegen
7977f4ef2e Add WinBond Super IO helpers
* 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>
2007-05-04 04:47:04 +00:00
Mondrian Nuessle
aef1c7cd40 Enable flashing on IWILL DK8-HTX
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>
2007-05-03 10:09:23 +00:00
Uwe Hermann
d7f48069f9 Add initial support for the following flash chips
- 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>
2007-04-28 02:22:59 +00:00
Stefan Reinauer
0a05d67bab Exit on return code of read_layout and print error message to stderr instead 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>
2007-04-14 16:32:59 +00:00
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