1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-26 14:42:36 +02:00

1920 Commits

Author SHA1 Message Date
Jordan Crouse
144ede66ca Fix the help, and print a message when nothing happens
The help implied that writes happen by default, which they don't. Fix
the text, and say something when we dont specify any commands.

Corresponding to flashrom svn r141 and coreboot v2 svn r2820.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>    
Acked-by: Stefan Reinauer <stepan@coresystems.de>
2007-10-04 06:26:41 +00:00
Carl-Daniel Hailfinger
e151499fd2 This patch aims to restructure SPI flash support in a more reasonable way
It introduces a generic SPI host driver for the IT8716F Super I/O
which will enable easy SPI programming without having to care for the
peculiarities of the SPI host.

To activate probing for the IT8716F, you have to use the gigabyte:m57sli
mainboard override. SPI support will then use the gathered SPI host data
to access the SPI flash.

This has been tested sucessfully by Ward Vandewege <ward@gnu.org> on the
GA-M57SLI v2.0, which has a MX25L4005 SPI flash part.

Corresponding to flashrom svn r140 and coreboot v2 svn r2817.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Ward Vandewege <ward@gnu.org>
2007-10-02 15:49:25 +00:00
Carl-Daniel Hailfinger
9224262838 Add preliminary SPI flash identification support for SPI chips attached to ITE IT8716F Super I/O
Right now this is hardcoded to the Gigabyte M57SLI board. It works only
with rev 2.0 of the board, but it will bail out on earlier versions, so
no damage can occur.

Corresponding to flashrom svn r139 and coreboot v2 svn r2811.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Ward Vandewege <ward@gnu.org>
2007-09-27 14:29:57 +00:00
Alex Beregszaszi
c9fb5d92e2 Change out/in combinations to pci_read/write_byte in sis630 chipset enable
Corresponding to flashrom svn r138 and coreboot v2 svn r2770.

Signed-off-by: Alex Beregszaszi <alex@rtfs.hu>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2007-09-11 15:58:18 +00:00
Uwe Hermann
a0cc53d738 Remove useless 'extern' keywords
Corresponding to flashrom svn r137 and coreboot v2 svn r2769.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2007-09-09 20:24:29 +00:00
Uwe Hermann
d22a1d4e53 Add '(C)' where it's missing (for consistency reasons)
Corresponding to flashrom svn r136 and coreboot v2 svn r2768.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2007-09-09 20:21:05 +00:00
Uwe Hermann
ca7f0e4668 Add missing license header to udelay.c
I'm self-ack'ing this, as the origin of the code in udelay.c (and thus
the license and copyright owner) is pretty clear.

The code which is now in udelay.c was split out from flash_rom.c in r1428,
and flash_rom.c, in turn, has been around since the beginning and had a
'Copyright 2000 Silicon Integrated System Corporation' line as well as the
usual GPLv2-or-later license header.

Corresponding to flashrom svn r135 and coreboot v2 svn r2767.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2007-09-09 20:02:45 +00:00
Uwe Hermann
83c6c5391c Add a dedicated license
Add a copy of the GPL in the flashrom repository as it's an independent
project (being packaged by distros, among other things).

Corresponding to flashrom svn r134 and coreboot v2 svn r2764.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2007-09-08 14:36:01 +00:00
Markus Boas
d2ac6fc185 Add support for the Winbond W29EE011
Corresponding to flashrom svn r133 and coreboot v2 svn r2753.

Signed-off-by: Markus Boas <ryven@ryven.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2007-08-30 10:17:50 +00:00
Markus Boas
05e7f45373 Add support for the Winbond W29C040P
Corresponding to flashrom svn r132 and coreboot v2 svn r2752.

Signed-off-by: Markus Boas <ryven@ryven.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2007-08-30 10:11:08 +00:00
Uwe Hermann
d110764ccd Change all flashrom license headers to use our standard format
No changes in content of the files.

Corresponding to flashrom svn r131 and coreboot v2 svn r2751.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2007-08-29 17:52:32 +00:00
Uwe Hermann
ffec5f3ab7 Cosmetic fixes
Corresponding to flashrom svn r130 and coreboot v2 svn r2748.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2007-08-23 16:08:21 +00:00
Uwe Hermann
fd37414dbb Drop duplicated code (copies of plain JEDEC functions)
Corresponding to flashrom svn r129 and coreboot v2 svn r2747.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
2007-08-23 15:20:38 +00:00
Uwe Hermann
0846f89b0a Drop a bunch of useless header files, merge them into flash.h
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>
2007-08-23 13:34:59 +00:00
Uwe Hermann
51582f282b Move code into *.c files, there's no reason to have it in header files
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>
2007-08-23 10:20:40 +00:00
Ed Swierk
966dc20cc3 Fix bug in probe_28sf040() causing flash corruption on SST49LF160C verify
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>
2007-08-13 04:10:32 +00:00
Luc Verhaegen
fdd0c58115 Add board enable for the EPoX EP-BX3
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>
2007-08-11 16:59:11 +00:00
Uwe Hermann
627505b797 Add missing supported flash chips to the README
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>
2007-07-27 03:32:45 +00:00
Carl-Daniel Hailfinger
f41c66fd46 Add various ST flash chips
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>
2007-07-25 17:55:45 +00:00
Carl-Daniel Hailfinger
e087fa29bf This patch adds support for ST M50FW040 and ST M29W040B
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>
2007-07-24 18:18:05 +00:00
Luc Verhaegen
327075455d Add support for Tyan Tomcat K7M
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>
2007-07-04 17:51:49 +00:00
Uwe Hermann
f4a673b0cf Fix up and document the AMD CS5530/CS5530A support
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>
2007-06-06 21:35:45 +00:00
Uwe Hermann
e823ee0fc5 Document the newly supported IBM x3455 board and the now-supported Broadcom 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>
2007-06-05 15:02:18 +00:00
Stefan Reinauer
1c283f4241 Move GPIO settings to board specific code for IBM x3455
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>
2007-06-05 12:51:52 +00:00
Stefan Reinauer
c868b9e68b Add support for BCM HT1000 chipset
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>
2007-06-05 10:28:39 +00:00
Uwe Hermann
a88088530e Minor cosmetics
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>
2007-05-24 19:17:29 +00:00
Stefan Reinauer
7ed78c88b6 Drop leftover includes
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>
2007-05-24 09:26:39 +00:00
Stefan Reinauer
5380d51c69 Some copyright analysis
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>
2007-05-24 09:08:36 +00:00
Stefan Reinauer
ff4f197a24 Factor out register mapping code
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>
2007-05-24 08:48:10 +00:00
Stefan Reinauer
7c1402f220 Unify mmap error messages
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>
2007-05-23 18:24:58 +00:00
Stefan Reinauer
ce532975cb Big cosmetic offensive on flashrom
* 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>
2007-05-23 17:20:56 +00:00
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