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

189 Commits

Author SHA1 Message Date
Peter Stuge
681b190842 Some Makefile cleaning
Corresponding to flashrom svn r267 and coreboot v2 svn r3378.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
2008-06-22 02:00:39 +00:00
Peter Stuge
08c2b02273 Fix OBJS in Makefile to compile stm50flw0x0x.c like the others
Corresponding to flashrom svn r266 and coreboot v2 svn r3377.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
2008-06-21 04:39:17 +00:00
Andriy Gapon
65c1b86fe7 Changes to make flashrom compile (and work) on FreeBSD
This patch addresses different argument order of outX() calls,
FreeBSD-specific headers, difference in certain type names and system
interface names, and also FreeBSD-specific way of gaining IO port
access.

Corresponding to flashrom svn r245 and coreboot v2 svn r3344.

Signed-off-by: Andriy Gapon <avg@icyb.net.ua>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2008-05-22 13:22:45 +00:00
Nikolay Petukhov
4784c47a88 Support Pm49FL004/2 Block Locking Registers
The PMC chips understand both LPC and FWH flash commands. When in FWH mode
(MSR_DIVIL_BALL_OPT(0x51400015) = 0x00000f7d on 5536 boards) the Block
Locking Registers by default lock the flash chip for write and erase - in
addition to any chipset write protection.

This patch adds unlock operations before Pm49FL004/2 write and erase, and
it includes an svn mv pm49fl004.c pm49fl00x.c

Thanks go to Nikolay for this patch.

Corresponding to flashrom svn r243 and coreboot v2 svn r3332.

Signed-off-by: Nikolay Petukhov <nikolay.petukhov@gmail.com>
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Bari Ari <bari@onelabs.com>
2008-05-17 01:08:58 +00:00
Dominik Geyer
b46acba6e0 Add support for SPI chips on ICH9
This is done by using the generic SPI interface.

Corresponding to flashrom svn r239 and coreboot v2 svn r3325.

Signed-off-by: Dominik Geyer <dominik.geyer@kontron.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2008-05-16 12:55:55 +00:00
Carl-Daniel Hailfinger
bfe5b4ab74 Move all IT87xx specific SPI routines from spi.c to a separate file it87spi.c
No behavioural changes, but greatly improved SPI abstraction.

Corresponding to flashrom svn r229 and coreboot v2 svn r3305.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
2008-05-13 23:03:12 +00:00
Claus Gindhart
a7b3551bbc Separate ST M50FLW support from generic JEDEC code
The generic jedec.c does not work for the ST M50FLW flash devices,
because they need an unlock command first. For this reason, ST M50FLW
support is moved to a new HW support module, because any change in
jedec.c would bear the risk to cause problems with the already supported
devices.

It's already tested with ST M50FLW080A; the other chips of this family i
dont have available, so i couldnt test it.

Corresponding to flashrom svn r219 and coreboot v2 svn r3274.

Signed-off-by: Claus Gindhart <claus.gindhart@kontron.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
2008-04-28 17:51:09 +00:00
Stefan Reinauer
ac37897259 Support for the Winbond W39V080FA series of chips
Support for flashing on the Kontron 986LCD-M board.

Corresponding to flashrom svn r213 and coreboot v2 svn r3165.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2008-03-17 22:59:40 +00:00
Uwe Hermann
55bf8dfcab Fix broken flashrom build
Corresponding to flashrom svn r206 and coreboot v2 svn r3142.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2008-03-14 01:24:39 +00:00
Carl-Daniel Hailfinger
fe7e929f49 Drop 82802ab.c as it is identical to sharplhf00l04.c
Corresponding to flashrom svn r201 and coreboot v2 svn r3137.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
2008-03-13 12:43:31 +00:00
Clark Rawlins
02016f742c Fix compilation with custom CFLAGS
With this small change it is possible to build flashrom again when
specifying custom CFLAGS/LDFLAGS from the make command line like.

  make CFLAGS="..." LDFLAGS="..."

I need to do this when building flashrom in a cross compiler environment
like buildroot for a foreign target.

Corresponding to flashrom svn r196 and coreboot v2 svn r3102.

Signed-off-by: Clark Rawlins <clark@bit63.org>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2008-02-14 23:22:20 +00:00
Bernhard Walle
201bde33d0 This patch adds version information
Because 'v' and 'V' are already in use, the patch uses 'R' (for release)
and, of course, '--version'.

Corresponding to flashrom svn r182 and coreboot v2 svn r3067.

Signed-off-by: Bernhard Walle <bernhard.walle@gmx.de>
Acked-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2008-01-21 15:24:22 +00:00
Stefan Reinauer
2fbe6247a9 Rename linuxbios_* files in utils repository
Corresponding to flashrom svn r179 and coreboot v2 svn r3058.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
2008-01-18 16:17:44 +00:00
Uwe Hermann
2c5d4c69fa Multiple flashrom fixes
- Install binary in /usr/sbin (not /usr/bin), as it's a root-only tool.

 - Rename manpage from flashrom.1 to flashrom.8, as section 8 contains
   "System administration commands (usually only for root)".

 - Actually install the manpage upon 'make install'.

Corresponding to flashrom svn r149 and coreboot v2 svn r2866.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
2007-10-16 23:36:34 +00:00
Carl-Daniel Hailfinger
00f911e0a8 Move SPI code out of board_enable.c where it started its life
The SPI chip finding and SPI chip accessor code is moved as well. This
can be split later if we feel like it.

The non-use of svn cp is intentional because the only history we'd
have to preserve are a few commits which were early prototypes of chip
identification code. For those who intend to look at that history, they
can look at board_enable.c revision 2853.

Corresponding to flashrom svn r145 and coreboot v2 svn r2857.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
2007-10-15 21:44:47 +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
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
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
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
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
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
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
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
8cf74b4ca9 Add ts5300 flag as comment utility Makefile
Corresponding to flashrom svn r49 and coreboot v2 svn r2215.
2006-03-19 22:30:42 +00:00
Ronald G. Minnich
5b582f23b8 Add sharp flash
Corresponding to flashrom svn r40 and coreboot v2 svn r2180.
2006-02-23 17:16:44 +00:00
Stefan Reinauer
53e96253a4 Make flashrom utility build process more solid
Corresponding to flashrom svn r36 and coreboot v2 svn r2117.
2005-12-01 16:19:24 +00:00
Ollie Lho
184a404033 Flashrom update from Stefan, resolve issue 21
Corresponding to flashrom svn r34 and coreboot v2 svn r2111.
2005-11-26 21:55:36 +00:00
Ronald G. Minnich
1f4d653d8c Support for sst firmware hub
Corresponding to flashrom svn r25 and coreboot v2 svn r1651.
2004-09-30 16:37:01 +00:00
Ollie Lho
cbbf125981 Move utility functions into new source files
Corresponding to flashrom svn r6 and coreboot v2 svn r1428.
2004-03-17 22:22:08 +00:00
David Hendricks
3770a1132e Add support for SST49LF040
Corresponding to flashrom svn r5 and coreboot v2 svn r1422.
2004-03-17 21:47:30 +00:00
Ronald G. Minnich
8ff8432ce6 Fix makefile
Corresponding to flashrom svn r4 and coreboot v2 svn r1376.
2004-02-13 23:09:54 +00:00
Ronald G. Minnich
eaab50bb32 Changes from NIKI
Corresponding to coreboot v1 svn r873.
2003-09-12 22:41:53 +00:00
Ronald G. Minnich
c73ad98798 This will now enable flash automagically for chipsets on which it knows how
Currently, only e7500 supported, but it is easy to add more.

Corresponding to coreboot v1 svn r744.
2003-02-11 21:06:09 +00:00
Andrew Ip
f0126ce251 Add w49f002u support
Corresponding to coreboot v1 svn r643.
2002-10-16 06:58:05 +00:00
Ronald G. Minnich
5643942750 Can now burn 82802ab
Corresponding to coreboot v1 svn r633.
2002-09-06 16:58:14 +00:00
Ronald G. Minnich
3c910ed807 Add support for ST M29F400BT - part 1
Corresponding to coreboot v1 svn r582.
2002-05-28 23:29:17 +00:00
Ronald G. Minnich
c831647b17 Add support for 39sf020
Corresponding to coreboot v1 svn r523.
2002-03-21 22:40:40 +00:00
Ronald G. Minnich
ef5779d1dd Fixes
- switch to volatile everywhere
 - use myusec_delay instead of usleep

Corresponding to coreboot v1 svn r492.
2002-01-29 20:18:02 +00:00
Ronald G. Minnich
5e5f75e559 Trying to make this general purpose user-land flash burner
Corresponding to coreboot v1 svn r489.
2002-01-29 18:21:41 +00:00