aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add dmidecode quirk workaroundMichael Karcher2010-08-081-8/+17
| | | | | | | | | | | | Dmidecode emits a warning message about unsupported SMBIOS versions to stdout before the information asked for when using "-s". I consider this behaviour broken, but we still need to workaround it as e.g. Fedora currently distributes an dmidecode with this behaviour. Corresponding to flashrom svn r1136. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Fix typo (s/Bit/Bits/) to clarify code commentDavid Borg2010-08-081-4/+4
| | | | | | | | Corresponding to flashrom svn r1135. Signed-off-by: David Borg <borg.db@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Various cosmetic and coding-style fixesUwe Hermann2010-08-087-268/+306
| | | | | | | | | | | | | | | | | | | | | - Fix incorrect whitespace, indentation, and coding style in some places. - Drop '/**' Doxygen comments, we don't use Doxygen. Even if we would use it, the comments are useless as we don't have any Doxygen markup in there. - Use consistent vendor name spelling as per current website (NVIDIA, abit, GIGABYTE). - Use consistent / common format for "Suited for:" lines in board_enable.c. - Add some missing 'void's in functions taking no arguments. - Add missing fullstops in sentences, remove them from non-sentences (lists). Corresponding to flashrom svn r1134. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add a board-enable for the ASRock 775i65GJoshua Roys2010-08-082-0/+3
| | | | | | | | | | | This was successfully tested by 'kai2343' on IRC. Thanks to Michael Karcher for finding the board enable. Corresponding to flashrom svn r1133. Signed-off-by: Joshua Roys <roysjosh@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Mark the following boards/chips as testedUwe Hermann2010-08-083-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Boards: - ASUS M4A785TD-M EVO (reported by Mattias Mattsson <vitplister@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-August/004283.html - ASUS M2N32-SLI Deluxe (reported by Mattias Mattsson <vitplister@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-August/004287.html - ASUS P2E-M (reported by Mattias Mattsson <vitplister@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-July/004261.html - ASUS M2N-SLI Deluxe (reported by Kasper M. Nielsen <kasper.nielsen85@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-May/003015.html - iBASE MB899 (reported by Bernhard M. Wiedemann <bernhard@lsmod.de>) http://www.flashrom.org/pipermail/flashrom/2010-April/002953.html Board-enable is now marked as tested. - ASRock 939A785GMH/128M (reported by Lennart Sauerbeck <lists@lennart.sauerbeck.org>) http://www.flashrom.org/pipermail/flashrom/2010-August/004340.html Corresponding to flashrom svn r1132. Chips: - ST M50FLW080A (reported by Mattias Mattsson <vitplister@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-August/004287.html - Winbond W29EE011 (reported by Mattias Mattsson <vitplister@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-July/004261.html - SST SST49LF040 (reported by Mattias Mattsson <vitplister@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-August/004296.html Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Board enable for MSI MS-6577Joshua Roys2010-08-071-0/+12
| | | | | | | | | | | | Thanks to "Putlinuxonit" <putlinuxonit@gmail.com> for reporting and testing. lspci/superiotool: http://www.coreboot.org/pipermail/flashrom/2010-August/004309.html Corresponding to flashrom svn r1131. Signed-off-by: Joshua Roys <roysjosh@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Board enable for Asus P4S800-MXDavid Borg2010-08-021-1/+4
| | | | | | | | | | lspci/superiotool: http://www.coreboot.org/pipermail/flashrom/2010-July/004172.html Corresponding to flashrom svn r1130. Signed-off-by: David Borg <borg.db@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Further chip and board status updatesUwe Hermann2010-08-013-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mark the following boards as supported: - Foxconn A6VMX (reported by Alec Wright <alecjw@member.fsf.org>) http://www.flashrom.org/pipermail/flashrom/2010-July/004186.html - GIGABYTE GA-8IRML (reported by Putlinuxonit <putlinuxonit@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-July/004175.html Marking the board-enable as tested now. - MSI MS-7253 (K9VGM-V) (reported by Alex <cerebro.alexiel@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003411.html - Soyo SY-6BA+ III (reported by Andrew Morgan <ziltro@ziltro.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003409.html - GIGABYTE GA-770TA-UD3 (reported by Hering <boerni@pakke.de>) http://www.flashrom.org/pipermail/flashrom/2010-May/003267.html - Shuttle AV11V30 (reported by "Néstor a.k.a. DarkMan" <master_darkman@hotmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-May/003260.html - Tyan S3992 (reported by Alessandro Gervaso <gervaso@appliedgenomics.org>) http://www.flashrom.org/pipermail/flashrom/2010-May/003129.html - GIGABYTE GA-MA785GMT-UD2H (reported by Dominick Layfield <dom.layfield@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-May/003061.html Mark the following chips as tested: - ST M25P10-A (reported by Joshua Blanton <jblanton@rldrake.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003451.html - ST M50FLW080A (reported by Vincent Pelletier <plr.vincent@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003410.html Marked PROBE and READ as tested. - SST SST39SF020A (reported by Andrew Morgan <ziltro@ziltro.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003409.html - AMD Am29F010A/B (reported by Andrew Morgan <ziltro@ziltro.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003335.html - SST SST39VF010 (reported by Tim Small <tim@buttersideup.com>) http://www.flashrom.org/pipermail/flashrom/2010-May/003310.html Corresponding to flashrom svn r1129. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for SIS661 (SIS963)David Borg2010-07-311-0/+1
| | | | | | | | | Tested on Asus P4S800-MX. Corresponding to flashrom svn r1128. Signed-off-by: David Borg <borg.db@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Mark the following boards as supportedDaniel Lenski2010-07-301-0/+2
| | | | | | | | | | | - Elitegroup RS485M-M - Biostar TA780G M2+ Corresponding to flashrom svn r1127. Signed-off-by: Daniel Lenski <dlenski@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Mark the following chips/boards/PCI-cards as OKUwe Hermann2010-07-293-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Chips: - Winbond W25x80 (reported by Michael Cole <michaelcole@michaelcole.com>) http://www.flashrom.org/pipermail/flashrom/2010-July/004176.html - Winbond W25Q80 (reported by Jonathan A. Kollasch <jakllsch@kollasch.net>) http://www.flashrom.org/pipermail/flashrom/2010-July/003847.html - SST SST25VF080B (reported by Mattias Mattsson <vitplister@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-July/003807.html Also reported by Daniel Flinkmann <dflinkmann@gmx.de>) http://www.flashrom.org/pipermail/flashrom/2010-June/003659.html - Winbond W25x16 (reported by Michael Dunphy <mdunphy@uwaterloo.ca>) http://www.flashrom.org/pipermail/flashrom/2010-June/003631.html - Atmel AT25DF321 (reported by Ramakrishna Kvv <Ramakrishna.Koduri@emerson.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003529.html - Winbond W25x40 (reported by Prakash J Kokkatt <pjkonweb@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003502.html - Winbond W49V002A (reported by David <dung@aon.at>) http://www.flashrom.org/pipermail/flashrom/2010-June/003375.html - Macronix MX25L8005 (reported by Peter Lemenkov <lemenkov@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003373.html Also reported by Alec Wright <alecjw@member.fsf.org>. http://www.flashrom.org/pipermail/flashrom/2010-July/004186.html http://www.flashrom.org/pipermail/flashrom/2010-July/004159.html Also reported by Jörg Fischer <turboj@gmx.de>. http://www.flashrom.org/pipermail/flashrom/2010-July/004080.html Also reported by Kevin Malec <kevin.010@gmail.com>. http://www.flashrom.org/pipermail/flashrom/2010-June/003698.html Heck, also reported by myself (tested on hardware, never sent mail). - SST SST49LF002A/B (reported by Udu Ogah <putlinuxonit@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-July/004184.html - SST SST49LF160C (reported by Ed Swierk <eswierk@aristanetworks.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003634.html Mark the following boards as supported: - ASUS M3A76-CM (reported by Kevin Malec <kevin.010@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003698.html Mark the following PCI cards as supported: - "Silicon Image SiI 3124 PCI-X SATA Ctrl" (1095:3124) Reported by Max Kalashnikov <mmt@maxkalashnikov.com> http://www.flashrom.org/pipermail/flashrom/2010-July/004007.html Corresponding to flashrom svn r1126. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Mark GIGABYTE GA-MA74GM-S2H (rev 3.0) as supportedPeter Lemenkov2010-07-291-0/+1
| | | | | | | Corresponding to flashrom svn r1125. Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add definitions for the following chipsMattias Mattsson2010-07-292-30/+327
| | | | | | | | | | | | | | | | | | | | Mosel Vitelic Corporation: V29C51000B, V29C51000T, V29C51400B, V29C51400T, V29LC51000, V29LC51001, V29LC51002 SyncMOS / Mosel Vitelic Corporation: {F,S,V}29C51001B, {F,S,V}29C51001T, {F,S,V}29C51002B, {F,S,V}29C51002T, {F,S,V}29C51004B, {F,S,V}29C51004T, {V,S}29C31004B, {V,S}29C31004T Modify earlier definitions of S29C31004T/S29C51001T/S29C51002T/S29C51004T to change name and correct page size. Corresponding to flashrom svn r1124. Signed-off-by: Mattias Mattsson <vitplister@gmail.com> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* ft2232_spi: Cosmetic fixesUwe Hermann2010-07-291-38/+34
| | | | | | | | | | Various whitespace- and cosmetic fixes. Also, Use %04x:%04x for printing the USB IDs (which are 4 hex digits long), not %02x:%02x. Corresponding to flashrom svn r1123. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Mark the following boards as tested OKUwe Hermann2010-07-291-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - ASUS M4A79T Deluxe (reported by Michael Cole <michaelcole@michaelcole.com>) http://www.flashrom.org/pipermail/flashrom/2010-July/004176.html - Tyan S2915 (Thunder n6650W) (reported by Axel Bergerhoff <axelbergerhoff@compuserve.com>) http://www.flashrom.org/pipermail/flashrom/2010-July/004140.html - ASRock ALiveNF6G-DVI (reported by Sven Lankes <sven@lank.es>) http://www.flashrom.org/pipermail/flashrom/2010-July/003951.html - ASUS M4A87TD/USB3 (reported by Jonathan A. Kollasch <jakllsch@kollasch.net>) http://www.flashrom.org/pipermail/flashrom/2010-July/003847.html - Fujitsu-Siemens ESPRIMO P5915 (reported by Mattias Mattsson <vitplister@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-July/003807.html - ASUS P6T SE (reported by Michael Dunphy <mdunphy@uwaterloo.ca>) http://www.flashrom.org/pipermail/flashrom/2010-June/003631.html Also reported by Sinisa Dukanovic <sinisa@dukanovic.com>. http://www.flashrom.org/pipermail/flashrom/2010-January/001799.html - Emerson ATCA-7360 (reported by Ramakrishna Kvv <Ramakrishna.Koduri@emerson.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003529.html - ASUS P5GC-MX/1333 (reported by Prakash J Kokkatt <pjkonweb@gmail.com>) http://www.flashrom.org/pipermail/flashrom/2010-June/003502.html - Elitegroup P6IWP-Fe (reported by Anders Jenbo <anders@jenbo.dk>) http://www.flashrom.org/pipermail/flashrom/2010-June/003419.html - Biostar M7NCD Pro (reported by David <dung@aon.at>) http://www.flashrom.org/pipermail/flashrom/2010-June/003375.html Mark the "HP Compaq nx9005" laptop as non-supported for now. Reported by Anders <mail@jagtogfiskerimagasinet.dk>. http://www.flashrom.org/pipermail/flashrom/2010-May/003321.html Fix "Samsung Polaris 32" URL entry from "" to NULL, otherwise the wiki output is broken. Also do some minor whitespace fixing in print.c. Corresponding to flashrom svn r1122. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Fix bug introduced in AAI code rewrite (r1052)Carl-Daniel Hailfinger2010-07-291-5/+5
| | | | | | | | | | | | The AAI code rewrite in r1052 introduced a bug: The writelen of AAI continuation is 3 bytes, but the code incorrectly had 6 bytes there. This causes all AAI writes (except the first two bytes of a chip) to fail. Thanks to den_m for reporting the bug and for testing the fix. Corresponding to flashrom svn r1121. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Speed up Bus Pirate by exploiting the FTDI FIFOCarl-Daniel Hailfinger2010-07-291-20/+22
| | | | | | | | | | | | | | | | | If we violate the raw SPI communication protocol requirements of the Bus Pirate (namely, waiting for the completion of one command before sending the next one), we can reduce the number of round trips by a factor of 3. The FT2232 chip present in the Bus Pirate has a big enough buffer (at least 128 bytes IIRC) to avoid overflows in the tiny buffer of the Bus Pirate PIC. Thanks to Daniel Flinkmann for sponsoring development of this patch. Corresponding to flashrom svn r1120. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Tested-by: Daniel Flinkmann <DFlinkmann@gmx.de> Acked-by: Daniel Flinkmann <dflinkmann@gmx.de>
* Add support for the Amontec JTAGkey2Jörg Fischer2010-07-294-23/+106
| | | | | | | | | | | | | | | | | | | | | | Add support for the Amontec JTAGkey2, see http://www.amontec.com/jtagkey2.shtml http://www.amontec.com/jtagkey.shtml. This FTDI 2232H variant has an additional output enable, which will be set to its "on" (L) when CS is pulled low. But it lacks a power supply and you need an external 3.3V source. The attached patch adds "jtagkey" as "type" parameter for ft2232_spi. It should work with all JTAGkeys (JTAGkey, JTAGkey-tiny and JTAGkey2) but I only have a JTAGkey2 here for testing. Add all FT2232H/FT4232H based programmers to the list printed with flashrom -L Corresponding to flashrom svn r1119. Signed-off-by: Jörg Fischer <turboj@gmx.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Add support for various AMIC A25L* chipsDan Lenski2010-07-292-0/+252
| | | | | | | | | | Add support for AMIC A25L512, A25L010, A25L020, A25L040, A25L080, A25L016, A25L032 AMIC A25LQ032 (quad-rate read). Corresponding to flashrom svn r1118. Signed-off-by: Dan Lenski <dlenski@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Compile gfxnvidia by default, but disallow write/eraseCarl-Daniel Hailfinger2010-07-292-2/+5
| | | | | | | Corresponding to flashrom svn r1117. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Allow compilation on architectures without direct hardware access primitivesCarl-Daniel Hailfinger2010-07-291-0/+2
| | | | | | | | | | | Allow compilation on all architectures even if direct hardware access primitives are missing, if all you need is userspace access to the serial port (serprog, buspirate) or no access at all (dummy). Corresponding to flashrom svn r1116. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add detailed status register printing and unlocking for all ATMEL AT25* chipsCarl-Daniel Hailfinger2010-07-297-29/+442
| | | | | | | | | | | | | | Add support for Atmel AT25DF081A and AT25DQ161. Some chips require EWSR before WRSR, others require WREN before WRSR, and some support both variants. Add feature_bits to select the correct SPI command, and default to EWSR. Corresponding to flashrom svn r1115. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Tested-by: Steven Rosario Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* CosmeticsCarl-Daniel Hailfinger2010-07-281-480/+480
| | | | | | | | | | Fix alphabetic sort order for manufacturers in flashchips.c. Rename a few EON chips to Eon. Corresponding to flashrom svn r1114. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add Nvidia nForce MCP61/MCP65/MCP67/MCP78S/MCP73/MCP79 SPI flashing supportCarl-Daniel Hailfinger2010-07-285-147/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Huge thanks go to Michael Karcher for reverse engineering the interface and to Johannes Sjölund for testing the first iterations of my patch on his hardware until it worked. Thanks to the following testers of the patch: * MCP61, 10de:03e0, LPC OK, ECS Geforce6100SM-M, Andrew Cleveland * MCP61, 10de:03e0, LPC OK, Biostar NF520-A2 NF61D-A2, Vitaliy Buchynskyy * MCP65, 10de:0441, SPI OK, MSI MS-7369 K9N Neo-F v2, Kjell Braden * MCP65, 10de:0441, SPI OK, MSI MS-7369, Wolfgang Schnitker * MCP65, 10de:0441, SPI OK, MSI MS-7369, Johannes Sjölund * MCP65, 10de:0441, SPI OK, MSI MS-7369, Melchior Franz * MCP78S, 10de:075c, SPI OK, Asus M3N78 PRO, Brad Rogers * MCP78S, 10de:075c, SPI OK, Asus M3N78-VM, Marcel Partap * MCP78S, 10de:075c, SPI OK, Asus M4N78 PRO, Kimmo Vuorinen * MCP78S, 10de:075c, SPI OK, Asus M4N78 PRO, Vikram Ambrose * MCP79, 10de:0aad, SPI OK, Acer Aspire R3600, Andrew Morgan * MCP79, 10de:0aae, LPC ??, Lenovo Ideapad S12 laptop, Christian Schmitt * MCP79, 10de:0aae, SPI OK, Apple iMac9,1 Mac-F2218EA9, David "dledson" flashrom will refuse to write/erase for safety reasons if MCP6x/MCP7x SPI is detected. Corresponding to flashrom svn r1113. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Split off programmer.h from flash.hCarl-Daniel Hailfinger2010-07-2735-527/+593
| | | | | | | | | | | | | | | | | | | | | Programmer specific functions are of absolutely no interest to any file except those dealing with programmer specific actions (special SPI commands and the generic core). The new header structure is as follows (and yes, improvements are possible): flashchips.h flash chip IDs chipdrivers.h chip-specific read/write/... functions flash.h common header for all stuff that doesn't fit elsewhere hwaccess.h hardware access functions programmer.h programmer specific functions coreboot_tables.h header from coreboot, internal programmer only spi.h SPI command definitions Corresponding to flashrom svn r1112. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Convert MMIO accesses of non-internal PCI-based programmers to be ↵Carl-Daniel Hailfinger2010-07-275-16/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | endian-agnostic Convert all PCI-based external programmers to use special little-endian accessors for all MMIO regions of PCI devices. This patch does _not_ touch the internal programmer (which is PCI-based as well). Huge thanks go to Misha Manulis who worked with me to create a first version of this patch for the satasii programmer based on modification of generic code. Huge thanks also go to Segher Boessenkool for suggesting the pci_mmio_ prefix for the abstraction layer. NOTE to package maintainers: With this patch, compilation and usage of flashrom should be safe on x86, x86_64, MIPS (little and big endian) and PowerPC (big endian). The internal programmer is disabled on non-x86/x86_64 (but it compiles). The atahpt, nic3com, nicnatsemi, nicrealtek and rayer_spi can not be compiled on non-x86/x86_64 because port space I/O is not (yet) supported. Please compile with default settings on x86/x86_64 and with the following settings on all other architectures: make CONFIG_NIC3COM=no CONFIG_NICREALTEK=no CONFIG_NICNATSEMI=no CONFIG_RAYER_SPI=no Corresponding to flashrom svn r1111. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Misha Manulis <misha@manulis.com>
* Add a udev rules file for flashromUwe Hermann2010-07-271-0/+55
| | | | | | | | | | | | | | | | | | | | | | | This allows USB-based external programmers to be used by non-root users (which are in the 'plugdev' group). The file is to be installed by the distros into the proper place (not sure if this is distro-specific). On Debian the file will end up in /etc/udev/rules.d/z60_flashrom.rules. On some systems the 'plugdev' group might have to adapted to whatever the respective distro uses. The following devices are listed so far: - Amontec JTAGkey(2) - Buspirate - Dediprog SF100 - DLP Design DLP-USB1232H - FTDI FT4232H Mini-Module Corresponding to flashrom svn r1110. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Board enable for abit NF-M2 nViewMichael Karcher2010-07-242-0/+10
| | | | | | | | | | | | | | | | To be safe, the onboard video of the nView edition of this board has been included in the match. If other NF-M2 editions have the same board enable, the match should be broadened lspci/superiotool http://www.coreboot.org/pipermail/flashrom/2010-April/002909.html No success report, thus committed as untested. Corresponding to flashrom svn r1109. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Detect IP35 by the SMBus bridge instead of the SATA controllerMichael Karcher2010-07-241-1/+1
| | | | | | | | | | | | | | | | | The SATA controller matched in the board enable is not always present with that ID (that's the 2-port ICH9 SATA IDE controller), but (depending on board revision/edition or BIOS settings an ICH9 SATA RAID controller appears instead. This patches matches on the SMBus function in the south bridge instead of the SATA controller. Non-working board reported by: Gunter Keilholz <gunter.keilholz@googlemail.com> lspci/superiotool: http://www.coreboot.org/pipermail/flashrom/2010-June/003591.html Corresponding to flashrom svn r1108. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Board enable for Samsung Polaris 32Michael Karcher2010-07-242-0/+3
| | | | | | | | | | | lspci/superiotool: http://www.coreboot.org/pipermail/flashrom/2010-July/003889.html Corresponding to flashrom svn r1107. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Tested-by: Alex Loktionoff <oxy-loktionoff@mail.ru> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Board enable for GA-8IRMLMichael Karcher2010-07-242-0/+10
| | | | | | | | | | | | Non-working board reported by idlogin / Putlinuxonit <putlinuxonit@gmail.com> lspci/superiotool: http://www.coreboot.org/pipermail/flashrom/2010-May/003330.html No success report, so committed as untested. Corresponding to flashrom svn r1106. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Board enable for Abit IC7Michael Karcher2010-07-242-0/+2
| | | | | | | | | | | | | Non-working board reported by: Anders Jenbo <anders@jenbo.dk> lspci/superiotool: http://www.coreboot.org/pipermail/flashrom/2010-June/003346.html no success report, so committed as untested. Corresponding to flashrom svn r1105. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Fix compilation for CONFIG_INTERNAL=noMichael Karcher2010-07-241-0/+6
| | | | | | | | | Broken by r1098 Corresponding to flashrom svn r1104. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Fix compilation which was broken by r1101Idwer Vollering2010-07-241-1/+1
| | | | | | | Corresponding to flashrom svn r1103. Signed-off-by: Idwer Vollering <vidwer@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Board enable for HP Puffer2-UL8EMichael Karcher2010-07-242-0/+10
| | | | | | | | | | lspci/superiotool: http://www.coreboot.org/pipermail/flashrom/2010-July/003869.html Corresponding to flashrom svn r1102. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Mattias Mattsson <vitplister@gmail.com>
* Board enable for ASUS P4SD-LA (HP OEM)Michael Karcher2010-07-242-0/+10
| | | | | | | | | No response from reporter - committed as "untested". Corresponding to flashrom svn r1101. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Board enable for ASUS P5PE-VMMichael Karcher2010-07-242-0/+3
| | | | | | | | Corresponding to flashrom svn r1100. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Tested-by: František Kučera <linux@frantovo.cz> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Move SB600 SPI initialization to sb600spi.cMichael Karcher2010-07-223-79/+89
| | | | | | | Corresponding to flashrom svn r1099. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Move Intel SPI initialisation to ichspi.cMichael Karcher2010-07-223-206/+234
| | | | | | | | | | | Smarter version could decide whether SPI is vital or not depending on straps. Straps are currently implemented for ICH7. EP80579 is in the comment, PCH of 5 Series/3400 Series has "LPC, reserved, PCI, SPI". Corresponding to flashrom svn r1098. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Add support for the Intel 28F002BC-TJoshua Roys2010-07-222-0/+28
| | | | | | | Corresponding to flashrom svn r1097. Signed-off-by: Joshua Roys <roysjosh@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Add support for the following AMIC SPI chipsDaniel Lenski2010-07-223-6/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | http://www.amictechnology.com/pdf/A25L20P.pdf covers: AMIC A25L05PT AMIC A25L05PU AMIC A25L10PT AMIC A25L10PU AMIC A25L20PT AMIC A25L20PU http://www.amictechnology.com/pdf/A25L16P.pdf covers: AMIC A25L16PT AMIC A25L16PU Clarify the situation surrounding the A25L40PT and A25L40PU chips which share the same RDID values, despite the fact that their erase block layouts are different. Rudolf Marek tested and confirmed the distinct erase block layouts of these chips. Add a pretty-printer for the AMIC SPI chip status register Add a generic AMIC chip type. Corresponding to flashrom svn r1096. Signed-off-by: Daniel Lenski <dlenski@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Add nicnatsemi to print.c and print_wiki.cAndrew Morgan2010-07-213-3/+17
| | | | | | | | | | Change the nicnatsemi address mask to use MA0-MA16 and set the maximum decode size to 128KB. Corresponding to flashrom svn r1095. Signed-off-by: Andrew Morgan <ziltro@ziltro.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Add support for the SST25VF064C SPI flash chipEd Swierk2010-07-212-0/+36
| | | | | | | Corresponding to flashrom svn r1094. Signed-off-by: Ed Swierk <eswierk@aristanetworks.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Add support for RayeR SPIPGM hardware as described in ↵Carl-Daniel Hailfinger2010-07-216-2/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://rayer.ic.cz/elektro/spipgm.htm To use the RayeR driver, run flashrom -p rayer_spi -V Known bugs/limitations: - Won't compile/work on non-x86 architectures. - Will always use direct port I/O access. Log follows: flashrom v0.9.2-r1039 on MS-DOS 7 (i686), built with libpci 3.1.5, GCC 4.3.2, little endian Calibrating delay loop... OK. Initializing rayer_bitbang_spi programmer Using port 0x378 as I/O base for parallel port access. ... Probing for Macronix MX25L1605, 2048 KB: probe_spi_rdid_generic: id1 0xc2, id2 0x2015 ... Found chip "Macronix MX25L1605" (2048 KB, SPI) at physical address 0xffe00000. ... No operations were specified. Corresponding to flashrom svn r1093. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Martin Rehak <rayer@seznam.cz> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Check during SPI bitbang init that SPI bitbang master configuration is correctCarl-Daniel Hailfinger2010-07-182-1/+11
| | | | | | | Corresponding to flashrom svn r1092. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Use struct pointer instead of enum to set bitbang adapterMichael Karcher2010-07-173-28/+12
| | | | | | | Corresponding to flashrom svn r1091. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Print supported flash chips as narrow as possibleCarl-Daniel Hailfinger2010-07-171-26/+35
| | | | | | | | | | | | Fix a bug where 4 GB of spaces would be printed per line if a vendor name was longer than 10 chars. This patch is needed to commit MoselVitelic chip support. Corresponding to flashrom svn r1090. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Refine PCI BAR masks handling for drkaiser and gfxnvidiaCarl-Daniel Hailfinger2010-07-172-9/+14
| | | | | | | | | | | | | | Use the BAR value returned by pcidev_init which automatically applies the correct BAR mask for the drkaiser driver. Truncate flash chip addresses to fit into the 128 kB memory window for drkaiser and pick the same window size for gfxnvidia. Uwe tested all operations successfully on a Dr. Kaiser card. Corresponding to flashrom svn r1089. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for pciutils/libpci older than 2.2Carl-Daniel Hailfinger2010-07-171-0/+8
| | | | | | | | | | Needed on the original Xbox running Xebian and a few other ancient systems. Corresponding to flashrom svn r1088. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Alec Wright <alecjw@member.fsf.org>
* Use __clang_version__ macroCarl-Daniel Hailfinger2010-07-172-2/+6
| | | | | | | | | | | | | | Newer llvm/clang versions (since r102686) have a __clang_version__ macro which can be used to print the exact clang version. Fix a case where chip_to_probe was referenced twice via extern, once at the function level and once in a global include file. Found by latest clang. Corresponding to flashrom svn r1087. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>