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
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
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
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
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
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
fcb63687da
Multiple unrelated changes
...
- speed up flash verification by only printing 1 of 4096 addresses
- support for flashing technologic system ts5300 SBC (needs -DTS5300 in
the makefile)
Corresponding to flashrom svn r47 and coreboot v2 svn r2205.
2006-03-16 16:57:41 +00:00
Stefan Reinauer
143da0baae
Pass on return values
...
Corresponding to flashrom svn r39 and coreboot v2 svn r2151.
2006-01-04 16:42:57 +00:00
Stefan Reinauer
e3705282c7
Multiple unrelated changes
...
* make -v switch print debug messages.
* do case insensitive comparison of mainboards, as wished on the
mailinglist
Corresponding to flashrom svn r37 and coreboot v2 svn r2146.
2005-12-18 16:41:10 +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
Ollie Lho
a1439cfdee
Add dedicated chip erase function for SST49LF040
...
Corresponding to flashrom svn r31 and coreboot v2 svn r1852.
2005-01-11 02:48:22 +00:00
Ollie Lho
efa28589b1
Add -E option for chip erase, remove duplicated code
...
Corresponding to flashrom svn r30 and coreboot v2 svn r1815.
2004-12-08 20:10:01 +00:00
Ollie Lho
1b8b66000f
Add retry to write_byte_program_jedec(), 99% success rate
...
Corresponding to flashrom svn r29 and coreboot v2 svn r1814.
2004-12-08 02:10:33 +00:00
Ollie Lho
d11f361808
Enable LPC decoding for 1 MB more addresss, for supporting SST49LF00xA/B
...
Corresponding to flashrom svn r28 and coreboot v2 svn r1813.
2004-12-07 17:19:04 +00:00
Ollie Lho
98bea8aba5
SST49LF00[2,3,4] should use the same driver as 49LF008
...
Corresponding to flashrom svn r27 and coreboot v2 svn r1812.
2004-12-07 03:15:51 +00:00
Yinghai Lu
ad8ffd2e76
Tyan update to work with new CPU Config
...
Corresponding to flashrom svn r26 and coreboot v2 svn r1693.
2004-10-20 05:07:16 +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
af47477c29
Code reformat
...
Corresponding to flashrom svn r22 and coreboot v2 svn r1647.
2004-09-07 21:31:47 +00:00
Ollie Lho
8b8897a5fd
Remove false alarm of erase/write, use verify '-v' if you are not sure about the integrity
...
Corresponding to flashrom svn r19 and coreboot v2 svn r1486.
2004-03-27 00:18:15 +00:00
Ollie Lho
f51a766f89
I have no idea what i was trying to show off when I used the while loop rather than for loop
...
Please forgive me, I was too young 4 years ago.
Corresponding to flashrom svn r16 and coreboot v2 svn r1458.
2004-03-20 17:05:01 +00:00
Ollie Lho
761bf1bdb7
Consolidate more jedec standard code
...
Corresponding to flashrom svn r15 and coreboot v2 svn r1457.
2004-03-20 16:46:10 +00:00
Ollie Lho
73eca80d9b
Remove duplicated code
...
Corresponding to flashrom svn r14 and coreboot v2 svn r1456.
2004-03-19 22:10:07 +00:00
David Hendricks
180850e2c0
Add support for SST49LF0xxA parts
...
Corresponding to flashrom svn r13 and coreboot v2 svn r1439.
2004-03-18 21:59:05 +00:00
Ollie Lho
856943d483
Forgot a semicolon
...
Corresponding to flashrom svn r11 and coreboot v2 svn r1437.
2004-03-18 20:35:33 +00:00
Ollie Lho
789ad3db35
Fix stupid i++ evalution order bug
...
Corresponding to flashrom svn r9 and coreboot v2 svn r1435.
2004-03-18 20:27:33 +00:00
Ollie Lho
cf29de8798
Fix 32bit vs. 64bit long int arithematics
...
Corresponding to flashrom svn r8 and coreboot v2 svn r1434.
2004-03-18 19:40:07 +00:00
Ollie Lho
cec287936c
Use standard product ID exit method for w49f002u
...
Corresponding to flashrom svn r7 and coreboot v2 svn r1433.
2004-03-17 23:03:37 +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
e3dad01157
Now we support 8111 and these parts
...
Corresponding to flashrom svn r3 and coreboot v2 svn r1375.
2004-02-10 21:34:18 +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
ceec420c3d
SONE's changes
...
Corresponding to coreboot v1 svn r863.
2003-07-25 04:37:41 +00:00
Andrew Ip
afe44a97fd
Add flash enable for sc1100
...
Corresponding to coreboot v1 svn r856.
2003-07-22 10:12:08 +00:00
Andrew Ip
772f6457b0
Add vt8235 for epia-m
...
Corresponding to coreboot v1 svn r854.
2003-07-21 14:54:16 +00:00
Ronald G. Minnich
7bd1dee5b3
Fix for sis 5595
...
Corresponding to coreboot v1 svn r805.
2003-05-08 19:33:19 +00:00
Ronald G. Minnich
b9d27708a7
Add support for CS5530
...
Corresponding to coreboot v1 svn r780.
2003-04-21 17:56:12 +00:00
Ronald G. Minnich
e555957f04
Fixes ...
...
Corresponding to coreboot v1 svn r760.
2003-03-28 03:29:43 +00:00
Ronald G. Minnich
d4228fdc47
Made the ids always print in hex less verbose verify step
...
Corresponding to coreboot v1 svn r752.
2003-02-28 17:21:38 +00:00
Ronald G. Minnich
4d32e789a8
Enhancements to make flash_rom easier
...
Corresponding to coreboot v1 svn r746.
2003-02-12 18:11:42 +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
Ronald G. Minnich
4572a82245
Clean up at user request
...
Corresponding to coreboot v1 svn r743.
2003-02-11 16:09:12 +00:00
Ronald G. Minnich
bb0322f335
Quick fix for 82802ac
...
Corresponding to coreboot v1 svn r736.
2003-01-13 23:43:36 +00:00
Andrew Ip
973b26db57
Add w29c011
...
Corresponding to coreboot v1 svn r727.
2002-12-30 13:10:06 +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
Ollie Lho
6041bcda7a
Add sst39vf020 support
...
Corresponding to coreboot v1 svn r606.
2002-07-18 03:32:00 +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
213ee71ff4
Support for the 39sf020
...
Corresponding to coreboot v1 svn r544.
2002-04-10 16:01:38 +00:00
Ronald G. Minnich
c831647b17
Add support for 39sf020
...
Corresponding to coreboot v1 svn r523.
2002-03-21 22:40:40 +00:00