aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Minor cosmetics, e.gUwe Hermann2008-07-032-10/+7
| | | | | | | | | Make stuff fit in 80 chars/line etc. Corresponding to flashrom svn r296 and coreboot v2 svn r3412. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Mark SST49LF040B as testedCarl-Daniel Hailfinger2008-07-031-1/+1
| | | | | | | | | Thanks to Paul Seidler and Ward Vandewege for testing. Corresponding to flashrom svn r295 and coreboot v2 svn r3411. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Mark the SST SST49LF040 as OK (tested by me), all operationsUwe Hermann2008-07-031-1/+1
| | | | | | | Corresponding to flashrom svn r294 and coreboot v2 svn r3410. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Winbond W25x80 TEST_OK PROBE READ ERASE WRITEPeter Stuge2008-07-031-1/+1
| | | | | | | | | Per test report from Björn Gerhart. Thanks! Corresponding to flashrom svn r293 and coreboot v2 svn r3409. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Improve coreboot image detection heuristicCarl-Daniel Hailfinger2008-07-031-1/+13
| | | | | | | | | | It's not absolutely perfect, but the likelihood of this check to fail is 0.000000000000000000000000013 (1.3*10^-26) which is good enough for me. Corresponding to flashrom svn r292 and coreboot v2 svn r3408. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Probe_flash() cleanup for better code readabilityPeter Stuge2008-07-021-15/+15
| | | | | | | Corresponding to flashrom svn r291 and coreboot v2 svn r3407. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Set w39v080fa to fully supportedStefan Reinauer2008-07-022-2/+4
| | | | | | | | | | | I'm am flashing this chip several times a day. Also enable unlocking which is only needed when running coreboot, that slipped in the original commit and through the original review ;-) So it must be trivial enough. Corresponding to flashrom svn r290 and coreboot v2 svn r3406. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Update to TEST_OK for Winbond W39V040FA PROBE READPeter Stuge2008-07-021-1/+1
| | | | | | | | | Thanks to Jake for the test report! Corresponding to flashrom svn r289 and coreboot v2 svn r3405. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Don't rm *~ in make clean, who knows what files that could bePeter Stuge2008-07-021-1/+1
| | | | | | | Corresponding to flashrom svn r288 and coreboot v2 svn r3404. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Unknown vendor:board message can be triggered by -m tooPeter Stuge2008-07-021-1/+1
| | | | | | | | | Thanks to Stefan for pointing this one out. Corresponding to flashrom svn r287 and coreboot v2 svn r3403. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Case insensitive matching of vendor:board strings in coreboot tablePeter Stuge2008-07-021-4/+3
| | | | | | | | | | Needed at least for GIGABYTE:m57sli in coreboot to match gigabyte:m57sli in flashrom. Corresponding to flashrom svn r286 and coreboot v2 svn r3402. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* First attempt to clean up SPI probing and create a common construct: the ↵Stefan Reinauer2008-06-305-128/+213
| | | | | | | | | | | | | | | | | | flash bus At some point the flash bus will be part of struct flashchip. Pardon me for pushing this in, but I think it is important to beware of further decay and it will improve things for other developers in the short run. Carl-Daniel, I will consider your suggestions in another patch. I want to keep things from getting too much for now. The patch includes Rudolf's VIA SPI changes though. Corresponding to flashrom svn r285 and coreboot v2 svn r3401. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Mine AMIC flash chip needs 4 bytes RDIDRudolf Marek2008-06-301-1/+1
| | | | | | | | | This enables to use the new probing code. Corresponding to flashrom svn r284 and coreboot v2 svn r3400. Signed-off-by: Rudolf Marek <r.marek@assembler.cz> Acked-by: Peter Stuge <peter@stuge.se>
* Mine AMIC flash chip needs 4 bytes RDIDRudolf Marek2008-06-302-6/+24
| | | | | | | | | Following patch adds support for that. Corresponding to flashrom svn r283 and coreboot v2 svn r3399. Signed-off-by: Rudolf Marek <r.marek@assembler.cz> Acked-by: Peter Stuge <peter@stuge.se>
* This patch adds support for VIA SPI controller on VT8237SRudolf Marek2008-06-304-32/+71
| | | | | | | | | It is similar with few documented exceptions to ICH7 SPI controller. Corresponding to flashrom svn r282 and coreboot v2 svn r3398. Signed-off-by: Rudolf Marek <r.marek@assembler.cz> Acked-by: Peter Stuge <peter@stuge.se>
* Add a debug marker after ICH SPI opcode programmingCarl-Daniel Hailfinger2008-06-291-1/+2
| | | | | | | Corresponding to flashrom svn r281 and coreboot v2 svn r3397. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Fix ICH7 non-SPI that broke in r3393Peter Stuge2008-06-292-1/+3
| | | | | | | | | | | | r3393 assumed that ICH7 always used SPI. This patch resets ich7_detected back to 0 when BOOT BIOS Straps indicate something else than SPI. Also fixes a build error in ichspi.c with gcc 4.2.2. Corresponding to flashrom svn r280 and coreboot v2 svn r3395. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Use symbolic constants for PCI subsystem probingCarl-Daniel Hailfinger2008-06-281-2/+2
| | | | | | | Corresponding to flashrom svn r279 and coreboot v2 svn r3394. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Multiple unrelated changesStefan Reinauer2008-06-275-46/+261
| | | | | | | | | | | | * ICH7 SPI support * fix some variable names in ichspi.c (Offset -> offset) * Dump ICH7 SPI bar with -V * Improve error message in case IOPL goes wrong. (It might not even be an IOPL) Corresponding to flashrom svn r278 and coreboot v2 svn r3393. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se>
* Indent according to development guidelinesStefan Reinauer2008-06-271-48/+40
| | | | | | | Corresponding to flashrom svn r277 and coreboot v2 svn r3392. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Winbond W39V080FA: Probe and Read are OKJens Kühnel2008-06-261-1/+1
| | | | | | | Corresponding to flashrom svn r276 and coreboot v2 svn r3390. Signed-off-by: Jens Kühnel <coreboot@jens.kuehnel.org> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Test status OK for ST M50FW040 PROBE READPeter Stuge2008-06-241-1/+1
| | | | | | | | | Per test report from Alex Perez. Thanks Alex! Corresponding to flashrom svn r275 and coreboot v2 svn r3389. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Test status OK for Macronix MX25L8005 PROBE READ ERASE WRITEPeter Stuge2008-06-241-1/+1
| | | | | | | | | Per test report from Andrew Paprocki. Thanks Andrew! Corresponding to flashrom svn r274 and coreboot v2 svn r3388. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Increase delay in probe_jedec() after Product ID Entry to 10msPeter Stuge2008-06-241-3/+2
| | | | | | | | | | We should follow data sheet timing, even if chips have been tested to answer faster in the field. Corresponding to flashrom svn r273 and coreboot v2 svn r3387. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Slight restructure of SPI probe_ functionsPeter Stuge2008-06-241-47/+53
| | | | | | | | | | | | | | | | Preparation for a probe optimization patch. This patch does not change any functionality. spi_probe_rdid was tested to still work on my M57SLI rev 2. The idea is to have error checks return error immediately when something fails, rather than having code inside an if block where the condition tests for success. This means: Less indentation, more clear what the code is checking. Corresponding to flashrom svn r272 and coreboot v2 svn r3386. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Ward Vandewege <ward@gnu.org>
* Some flashrom documentation fixes, and removal of duplicated infoUwe Hermann2008-06-222-105/+16
| | | | | | | Corresponding to flashrom svn r271 and coreboot v2 svn r3385. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* A few changes were committed before the DoC remove, update READMEPeter Stuge2008-06-221-1/+1
| | | | | | | Corresponding to flashrom svn r270 and coreboot v2 svn r3384. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Remove dead M-Systems Disk on Chip codePeter Stuge2008-06-226-365/+6
| | | | | | | | | | | | | | DOC support has been disabled by default for many years. The write function does nothing but print text. It has a call to write_page_md2802() commented out, but that function does not exist. This is dead code with ugly #ifdefs. Updates README to reflect that there was a time when there was code, but it didn't work. Removes M-Systems #defines and also includes svn rm msys_doc.* Corresponding to flashrom svn r269 and coreboot v2 svn r3382. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Update test status to TEST_OK_PREW for ST M50FLW080A and SST49LF008APeter Stuge2008-06-221-2/+2
| | | | | | | | | Many thanks to Julio Cesar Costa for the test report! Corresponding to flashrom svn r268 and coreboot v2 svn r3379. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Some Makefile cleaningPeter Stuge2008-06-221-5/+4
| | | | | | | 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>
* Fix OBJS in Makefile to compile stm50flw0x0x.c like the othersPeter Stuge2008-06-211-1/+1
| | | | | | | 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>
* Uppercase AMIC since that's what they write in datasheetsPeter Stuge2008-06-211-2/+2
| | | | | | | Corresponding to flashrom svn r265 and coreboot v2 svn r3376. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Update comment to match delay change in probe_jedec() r3373Peter Stuge2008-06-211-1/+1
| | | | | | | Corresponding to flashrom svn r264 and coreboot v2 svn r3375. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Update test status for Atmel AT29C020 and SST29EE010Peter Stuge2008-06-211-2/+2
| | | | | | | | | Thanks to Urja Rannikko for reporting test results with these flash chips. Corresponding to flashrom svn r263 and coreboot v2 svn r3374. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Increase delay in probe_jedec() to 2ms to reliably detect AT29C020Peter Stuge2008-06-211-1/+1
| | | | | | | | | | Run time is increased a few 100ms but this is needed for reliability. I consider this trivial. Corresponding to flashrom svn r262 and coreboot v2 svn r3373. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Show expected and read byte on verify failurePeter Stuge2008-06-201-1/+2
| | | | | | | Corresponding to flashrom svn r261 and coreboot v2 svn r3372. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Add support for AMIC Technology A49LF040A and do not probe W29EE011 anymoreJens Kuehnel2008-06-183-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | Jens sent the first patch that added A49LF040A to flash.h and flashchips.c using _jedec and _49lf040 functions. An issue was found with probe_w29ee011() for the Winbond W29EE011, which caused the A49LF040A to no longer respond to any commands. Ward made a patch to disable probing by default for the W29EE011 following some discussion. Using -c W29EE011 will make flashrom probe for the chip. Peter did some more datasheet diving and found that the Pm49FL00x functions suited this chip quite well because of the block locking registers in A49LF040A, and finally tested PROBE READ ERASE WRITE to work on ALIX.3c3. Ward confirmed that this works on alix.2c3 too. Corresponding to flashrom svn r260 and coreboot v2 svn r3368. Signed-off-by: Jens Kuehnel <coreboot@jens.kuehnel.org> Signed-off-by: Ward Vandewege <ward@gnu.org> Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Ward Vandewege <ward@gnu.org>
* Force read unknown flash chipsPeter Stuge2008-06-183-10/+47
| | | | | | | | | | | | | | | | | | | When flash chip detection fails, it is still useful and possible to read the flash chip contents. If no flash chip is found in normal probes and the -f -r -c CHIPNAME options are given, a successful probe for the specified chip is forced, and then flashrom reads the flash chip using either the read function for the specified chip, or if there is none, a simple memcpy(). The patch also moves the global variable int force in flashrom.c into main() and passes it as a parameter to layout.c:show_id(), which was the only other function that used the variable. This is needed to avoid confusion with the new parameter int force which is added to flashrom.c:probe_flash() and used to force probe success for the chip named in char *chip_to_probe. Corresponding to flashrom svn r259 and coreboot v2 svn r3367. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Ward Vandewege <ward@gnu.org>
* Board enable and autodetection for GIGABYTE GA-7VT600Peter Stuge2008-06-131-0/+3
| | | | | | | | | | Uses the VT8237 ISA bridge with mainboard subsystem ID and Realtek 8139 with mainboard subsystem ID for board detection. Corresponding to flashrom svn r258 and coreboot v2 svn r3366. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Lyos Gemini Norezel <lyos.gemininorezel@gmail.com>
* Add support for Amic Technology A29040B flash chipPeter Stuge2008-06-112-0/+2
| | | | | | | | | PROBE READ tested by Lyos Gemini Norezel on BioStar P4M80-M4. Corresponding to flashrom svn r257 and coreboot v2 svn r3365. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Lyos Gemini Norezel <lyos.gemininorezel@gmail.com>
* Board enable and autodetection for BioStar P4M80-M4Peter Stuge2008-06-111-0/+28
| | | | | | | | | | | | | Thanks to Reinder for clean room reverse engineering and data sheet diving! This board is autodetected because there are some good BioStar subsystem IDs. Matching uses onboard VT6420 SATA RAID with subsystem BioStar 3206 and onboard UniChrome Pro IGP graphics with subsystem BioStar 1202. Corresponding to flashrom svn r256 and coreboot v2 svn r3364. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Lyos Gemini Norezel <lyos.gemininorezel@gmail.com>
* Mark SST SST49LF160C as fully supported.:Peter Stuge2008-06-031-1/+1
| | | | | | | | | | | | | | SST SST49LF160C is confirmed to work for PROBE READ ERASE WRITE, at least on 2 MCP55-based boards (gigabyte m57sli v1 and supermicro h8dmr). On the m57sli board, it only works > 512K when booted into coreboot; the proprietary bios seems to do something weird where it locks rom access down to the first 512K of the chip. Corresponding to flashrom svn r255 and coreboot v2 svn r3360. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Revert r3357 and fix it as intended to (forgotten header commit instead of typo)Mart Raudsepp2008-05-272-1/+2
| | | | | | | Corresponding to flashrom svn r254 and coreboot v2 svn r3358. Signed-off-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee> Acked-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee>
* Fix typo introduced in r3356 that breaks buildMart Raudsepp2008-05-271-1/+1
| | | | | | | Corresponding to flashrom svn r253 and coreboot v2 svn r3357. Signed-off-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee> Acked-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee>
* MX25L4005, S25FL016A, W39V040B, W39V080A, SST49LF008A testsPeter Stuge2008-05-271-5/+5
| | | | | | | | | | | | | I have tested MX25L4005, S25FL016A and W39V080A myself. Thanks also to the following testers: SST49LF008A Bernhard M. Wiedemann W39V040B Dan Lenski Corresponding to flashrom svn r252 and coreboot v2 svn r3356. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
* Mark SST49LF004A/B as testedMart Raudsepp2008-05-271-1/+1
| | | | | | | | | | Tested by me on actual hardware (all operations) - Artec Group DBE62 with SST 49LF004B Corresponding to flashrom svn r251 and coreboot v2 svn r3350. Signed-off-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee> Acked-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee>
* Mark the following chips as testedUwe Hermann2008-05-261-5/+5
| | | | | | | | | | | | | | | - AMD Am29F040B - SST SST39SF020A - Winbond W29C020C - Winbond W29EE011 - Winbond W49F002U All of them tested by me on actual hardware (all operations). Corresponding to flashrom svn r250 and coreboot v2 svn r3349. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* A bunch of cosmetic improvementsUwe Hermann2008-05-223-8/+8
| | | | | | | | | | | - Fix typos and inconsistencies. - Drop duplicate line which tells us the chip name twice. - Also print the chip vendor, not only the name. Corresponding to flashrom svn r249 and coreboot v2 svn r3348. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Mark more chips as tested (all operations), tested on ASUS P4B266Uwe Hermann2008-05-221-3/+3
| | | | | | | Corresponding to flashrom svn r248 and coreboot v2 svn r3347. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for the ASUS P4B266 boardUwe Hermann2008-05-221-0/+49
| | | | | | | | | | | | | | | Tested on actual hardware. This patch add an ich_gpio_raise() function which can be re-used by other board-specific funtions which need to raise GPIOs on ICHx southbridges. This also fixes bug #7, see http://tracker.coreboot.org/trac/coreboot/ticket/7, as it turned out the ICH2 (and other ICHx) code works fine. Corresponding to flashrom svn r247 and coreboot v2 svn r3346. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Peter Stuge <peter@stuge.se>