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

1677 Commits

Author SHA1 Message Date
Stefan Tauner
00155498a8 Fix memleaks due to incorrect usage of flashbuses_to_text
Corresponding to flashrom svn r1357.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-26 20:45:35 +00:00
Stefan Tauner
b23df71149 Make Makefile's test programs safe(r)
We don't use -W or similarly strict compiler checks (yet), but
enabling its use is a good thing. if you add -W to the cflags
without this patch, detection of the compiler will fail with gcc 4.4
for example, because compiling of the test program will fail due to
a warning of unused arguments and -Werror. similarly the other
checks involving compiling test programs would fail.

Corresponding to flashrom svn r1356.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-26 18:28:58 +00:00
Stefan Tauner
d5b2228e43 Add a success indicator to the "Reading old flash chip contents..." message
Corresponding to flashrom svn r1355.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-26 17:47:40 +00:00
Stefan Tauner
6665244bc7 Constify (a few) parameters.c where possible
Corresponding to flashrom svn r1354.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-26 17:38:17 +00:00
Carl-Daniel Hailfinger
b4061f61cd Move erase verification to generic code
Erase functions are no longer called from chip drivers and thus their
internal erase verification can be moved to generic code. This also
makes it easier to skip the verify step if desired and to differentiate
between failed command submission and failed erase verification.

Corresponding to flashrom svn r1353.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-06-26 17:04:16 +00:00
Carl-Daniel Hailfinger
bfa021dd80 Replace sizeof("string")-1 with strlen("string")
We want to avoid calls to strlen at runtime if the string is already
known at compile time.
Turns out that gcc and clang will recognize constant strings and compute
the strlen result already at compile time, so trickery with sizeof only
reduces readability but does not improve the code.

Corresponding to flashrom svn r1352.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Sean Nelson <audiohacked@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-26 11:50:10 +00:00
Stefan Tauner
12589366c3 print.c: change all occurrences of printf to msg_ginfo
Corresponding to flashrom svn r1351.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-25 17:36:25 +00:00
Stefan Tauner
198f2770cc Fix probe_flash to report new values set by probing functions
This is needed if the probing function changes its fill_flash parameter
like in the pattern used to support Intel Hardware Sequencing and SFDP.

Corresponding to flashrom svn r1350.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-25 17:04:26 +00:00
Ed Swierk
7c612f9fb7 Flush stdout after each message
Currently messages like "Writing flash chip..." that don't end with
a newline are buffered until the operation is complete, unless the
particular write function generates status output in the meantime.

Flushing stdout after each message ensures that the message appears
immediately.

Corresponding to flashrom svn r1349.

Signed-off-by: Ed Swierk <eswierk@aristanetworks.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-19 17:27:57 +00:00
Paul Menzel
c07a41c867 flashchips.c: Fix typo: s/don't/doesn't/
Corresponding to flashrom svn r1348.

Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-19 17:23:55 +00:00
Stefan Reinauer
e8a648d143 Look at the return value of wait_82802ab()
Corresponding to flashrom svn r1347.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-19 17:09:49 +00:00
Pawel Rozanski
1d233075e6 Add ASRock K7S41GX board-enable
Tested reading, writing and verification, all worked fine.

Corresponding to flashrom svn r1346.

Signed-off-by: Pawel Rozanski <rozie@poczta.onet.pl>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-19 16:52:48 +00:00
Uwe Hermann
19f46f2057 Various board status updates
Mark the following boards as OK:

 - ASUS P7H57D-V EVO (reported by Andrew Wierzan <andrew@emerginguk.com>)
   http://www.flashrom.org/pipermail/flashrom/2010-October/005042.html

 - Tyan S2723 (Tiger i7501) (reported by Uwe Hermann <uwe@hermann-uwe.de>)
   http://www.flashrom.org/pipermail/flashrom/2010-October/005156.html

 - ASUS P5VD1-X (reported by Olle Gross <gusgross@student.gu.se>)
   http://www.flashrom.org/pipermail/flashrom/2010-October/005205.html

 - Lanner EM-8510C (reported by Christian Motz <christian.motz@funkwerk-ec.com>)
   http://www.flashrom.org/pipermail/flashrom/2010-October/005240.html

 - ASUS A8N-VM (reported by Dave B <flashrom@d10.karoo.co.uk>)
   http://www.flashrom.org/pipermail/flashrom/2010-October/005247.html

 - GIGABYTE GA-6VXE7+ (reported by Justin Doiel <justin.doiel@gmail.com>)
   http://www.flashrom.org/pipermail/flashrom/2010-October/005251.html

 - Supermicro X7SPA-HF (reported by Jochen Schulz <ml@well-adjusted.de>)
   http://www.flashrom.org/pipermail/flashrom/2010-November/005346.html

 - ASUS M4A78-EM (reported by Jani Uusitalo <jani@mummila.net>)
   http://www.flashrom.org/pipermail/flashrom/2010-December/005587.html

 - ASUS P5N32-E SLI (reported by Paul Brookman <paul_brookman@sky.com>)
   http://www.flashrom.org/pipermail/flashrom/2010-December/005559.html

Mark the following chips as OK:

 - SST SST39SF020A (reported by Andrew Morgan <ziltro@ziltro.com>)
   http://www.flashrom.org/pipermail/flashrom/2010-October/005107.html

 - ST M25P80 (reported by Harald Gutmann <harald.gutmann@gmx.net>)
   http://www.flashrom.org/pipermail/flashrom/2010-November/005334.html

Corresponding to flashrom svn r1345.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-18 22:56:14 +00:00
Stefan Tauner
2cf2da6e5b Add intel 6 series pci ids to chipset_enables
As defined by Intel 6 Series Chipset and Intel C200 Series Chipset
Specification Update; document number 324646-006, May 2011.

Corresponding to flashrom svn r1344.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-18 18:45:56 +00:00
Idwer Vollering
570dcc743a Fix and add a few chipset_enables entries
Corresponding to flashrom svn r1343.

Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-18 18:45:50 +00:00
Idwer Vollering
326a060661 Resort chipset_enables array by pci ids
Corresponding to flashrom svn r1342.

Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-18 18:45:41 +00:00
Carl-Daniel Hailfinger
6573b74da2 Do not display skipped probe messsages in verbose mode
They are still visible in spew mode (-VV).

Corresponding to flashrom svn r1341.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-17 22:38:53 +00:00
Uwe Hermann
8ebc046bf3 Update the flashrom udev rules file with new programmers
Add the following missing USB devices:

 - FIC OpenMoko Neo1973 Debug board (V2+)
 - Olimex ARM-USB-OCD
 - Olimex ARM-USB-OCD-H
 - Olimex ARM-USB-TINY
 - Olimex ARM-USB-TINY-H

Corresponding to flashrom svn r1340.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-06-17 21:25:48 +00:00
Uwe Hermann
68b9ccac25 Update the flashrom manpage
- Add missing entries for nicintel and satamv.
 - Add various programmers to those that support the 'pci=' option.
 - Small cosmetic, whitespace, grammar or consistency fixes.
 - Update the date of last change of the manpage.
 - Add Stefan Tauner to the list of authors.

Corresponding to flashrom svn r1339.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Signed-off-by: Andrew Morgan <ziltro@ziltro.com>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-15 23:44:52 +00:00
David Hendricks
8bb2021d77 Use shutdown callback mechanism to shutdown programmers
This patch attempts to resolve some programmer shutdown ordering issues
by having the programmer init functions register shutdown callbacks explicitly
wherever it makes most sense. Before, assumptions were made that could lead to
the internal programmer's state changing before the external programmer could be
shut down properly. Now, each programmer cleans up after itself and (hopefully)
performs each operation in the correct order.

As a side-effect, this patch gives us a better usage model for reverse
operations such as rpci_* and rmmio_*. In the long-run, this should make
reversing the initialization process easier to understand, less tedious, and
less error-prone.

In short, this patch does the following:
- Registers a shutdown callback during initialization for each programmer.
- Kills the .shutdown function pointer from programmer_entry struct. Also,
  make most shutdown functions static.
- Adds a few minor clean-ups and corrections (e.g. missing physunmap() calls).

TODO: Remove forward declaration of serprog_shutdown() (added to simplify diff)

Corresponding to flashrom svn r1338.

Signed-off-by: David Hendricks <dhendrix@google.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-14 01:35:36 +00:00
Joshua Roys
9d9a104233 Add board enable for GA-8IP775
- logs before: http://paste.flashrom.org/view.php?id=565
- success: http://www.flashrom.org/pipermail/flashrom/2011-June/006747.html

Corresponding to flashrom svn r1337.

Signed-off-by: Joshua Roys <roysjosh@gmail.com>
Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-13 16:59:01 +00:00
Idwer Vollering
d8a00a0b6b Add (untested) board enable for GA-K8NS Pro-939
Flashrom -V (before patch): http://paste.flashrom.org/view.php?id=531
lspci (short): http://paste.flashrom.org/view.php?id=532
lspci (verbose): http://paste.flashrom.org/view.php?id=533

Corresponding to flashrom svn r1336.

Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-13 16:58:54 +00:00
Stefan Tauner
d06d941ce2 Add a bunch of new/tested motherboards, board/chipset enables and flash chips etc. 3
- mark AT25DF321 as fully tested
  http://www.flashrom.org/pipermail/flashrom/attachments/20110527/01f1868b/attachment-0001.log
- mark 82802AB as fully tested
  http://www.flashrom.org/pipermail/flashrom/2011-April/006145.html
- mark Pm49FL002 as fully tested
  http://pastebin.com/pb5NTCmW

- add Supermicro X8DT3 to boards_known
  http://www.flashrom.org/pipermail/flashrom/attachments/20110527/01f1868b/attachment-0001.log
- add Supermicro X5DP8-G2 to boards_known
  http://www.flashrom.org/pipermail/flashrom/2011-April/006145.html

- add Supermicro X8SIE as NOT WORKING to boards_known
  http://www.flashrom.org/pipermail/flashrom/2011-May/006554.html
- add a DMI search pattern for the ASUS A8N-SLI Deluxe board enable to mitigate misdetections
  http://www.flashrom.org/pipermail/flashrom/2010-August/004379.html
  http://www.flashrom.org/pipermail/flashrom/2011-May/006570.html

also, fix some random white space errors and comments/strings

Corresponding to flashrom svn r1335.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-06-12 19:47:55 +00:00
Stefan Tauner
29c80838ae ichspi.c: add missing ICH9 register macros and eliminate magic numbers
- add macros for FRAP, FREG0, PR0-PR4 and BBAR
 - eliminate magic numbers representing those registers and some other bits too
 - remove printing out the contents of FDOC because it is useless

Corresponding to flashrom svn r1334.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-12 08:14:10 +00:00
Stefan Tauner
b2d5f6abbc Use the max_data_read field of the new spi_programmer struct to simplify run_opcode
Also, explain the transformation of the read/write array/count in
ich_spi_send_command better.

Corresponding to flashrom svn r1333.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-11 19:44:31 +00:00
Stefan Tauner
f9a8da595d enable_flash_ich: warn if SMM BIOS Write Protection is detected in BIOS_CNTL
Corresponding to flashrom svn r1332.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-11 18:16:50 +00:00
Pete Batard
c020706948 Add support for Olimex programmers to ft2232_spi
- add support for Olimex' ARM-USB-TINY, ARM-USB-TINY-H, ARM-USB-OCD
AND ARM-USB-OCD-H and adjust man page - minor string change ("First
International Computer, Inc." -> "FIC")

Corresponding to flashrom svn r1331.

Signed-off-by: Pete Batard <pbatard@gmail.com>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-06-11 12:21:37 +00:00
Stefan Tauner
5520694cab ichspi.c: add macros and pretty printing for HSFS and HSFC
Corresponding to flashrom svn r1330.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-11 09:53:22 +00:00
Stefan Tauner
2a8b26281c ichspi.c: add pretty printing for SSFS+SSFC and the OPCODE struct
Corresponding to flashrom svn r1329.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-11 09:53:16 +00:00
Stefan Tauner
0c1ec450f9 ichspi.c: improve macros for SSFS and SSFC bits
- introduce offset macros and use them to (re)define the existing mask macros
 - fix masks of SSFC_COP, SSFC_DBC, SSFC_SCF (were single-bit masks erroneously)
 - add comments
 - rename SSFS_CDS to SSFS_FDONE (abbr. used in datasheet; not in SSFS but HSFS)
 - use those for refactoring and magic number elemination.

 following patch uses them for pretty printing.

Corresponding to flashrom svn r1328.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-06-11 09:53:09 +00:00
Maciej Pijanka
6add09424a Add board enable for MSI MS-6788-040 (848P Neo-V)
Tested-by: Melroy van den Berg
http://www.flashrom.org/pipermail/flashrom/2010-December/005642.html

Corresponding to flashrom svn r1327.

Based on reverse engineering by Michael Karcher.
Signed-off-by: Maciej Pijanka <maciej.pijanka@gmail.com>
Acked-by: Idwer Vollering <vidwer@gmail.com>
2011-06-09 20:59:30 +00:00
Carl-Daniel Hailfinger
c422484b84 Fix compilation for CONFIG_INTERNAL=no
CONFIG_INTERNAL implies Super I/O support and NEED_PCI.
NEED_PCI is only used to guard PCI stuff which may be needed for
external PCI-based programmers. That way, using #if NEED_PCI can be
avoided inside #if CONFIG_INTERNAL.

Corresponding to flashrom svn r1326.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
2011-06-09 20:06:34 +00:00
Peter Lemenkov
60b83f98a8 Mark the MSI MS-7529 (G31TM-P21) as supported
Original report:
http://www.flashrom.org/pipermail/flashrom/2011-May/006594.html

Manufacturer's page:
http://msi.com/product/mb/G31TM-P21.html

Corresponding to flashrom svn r1325.

Tested-by: Peter Lemenkov <lemenkov@gmail.com>
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-06 17:50:20 +00:00
Stefan Tauner
8179be566e Add a bunch of new/tested motherboards, board/chipset enables and flash chips 2
- mark chipset enable for QS57 as OK
  (my thinkpad)

- mark MSI G31M3-L(S) V2 (MS-7529) as OK
  http://www.flashrom.org/pipermail/flashrom/2011-June/006634.html

- mark AT49BV512 as fully tested
  http://www.flashrom.org/pipermail/flashrom/2011-June/006609.html
- mark MX25L4005 as fully tested
  http://www.flashrom.org/pipermail/flashrom/2011-June/006634.html
- mark SST49LF020 as fully tested
  http://www.flashrom.org/pipermail/flashrom/2011-May/006570.html
- mark SST25VF064C as fully tested
  http://www.flashrom.org/pipermail/flashrom/2011-May/006586.html
- mark W25x16 as fully tested
  http://www.flashrom.org/pipermail/flashrom/2011-June/006605.html

Corresponding to flashrom svn r1324.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-06-04 13:13:34 +00:00
Steven Zakulec
cbe370e67a Add voltage ranges to the flashchips
Corresponding to flashrom svn r1323.

Signed-off-by: Steven Zakulec <spzakulec@gmail.com>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Peter Stuge <peter@stuge.se>
2011-06-03 07:26:31 +00:00
Stefan Tauner
db45ab5eac Tiny fix for a small fix
There was one line break added too much in the previous commit, sorry.
the probing functions need to output at least one '\n' for satisfactory output.
that means even in error cases they have to do that.
OTOH they should not output a sequence of "\n\n" because
it would distort the verbose probing output with empty lines.

Corresponding to flashrom svn r1322.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-05-28 22:59:05 +00:00
Stefan Tauner
355cbfdbef Small fixes
- missing spaces in code and output
- improved documentation/naming/output
- missing line breaks in spi probing functions

Corresponding to flashrom svn r1321.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-05-28 02:37:14 +00:00
Antony Rheneus
0fbba98c27 Add a bunch of new/tested motherboards, board enables and flash chips
Tested motherboards:
- MSI MS-7599 (870-C45)
  http://www.flashrom.org/pipermail/flashrom/2011-May/006420.html
- Gigabyte GA-P55A-UD4 (rev 1.0)
  http://www.flashrom.org/pipermail/flashrom/2011-May/006415.html
- Supermicro X8DTU-F
  http://www.flashrom.org/pipermail/flashrom/2011-May/006329.html
- Supermicro X8STi
  http://www.flashrom.org/pipermail/flashrom/2011-May/006436.html

tested board enable:
- abit NF-M2 nView
  success report (without a log though): http://www.flashrom.org/pipermail/flashrom/2011-April/006167.html

tested flash chips:
- ST M50FW080 (+EW)
  http://www.flashrom.org/pipermail/flashrom/2011-May/006409.html
- ST M25P32 (+EW)
  http://www.flashrom.org/pipermail/flashrom/2011-May/006398.html
- Winbond W25x64 (+P)
  http://www.flashrom.org/pipermail/flashrom/2011-March/006012.html
- Winbond W39V040FA (+W)
  http://www.flashrom.org/pipermail/flashrom/2010-December/005642.html

new flash chip
- Winbond W25Q128
  http://www.flashrom.org/pipermail/flashrom/2011-April/006309.html

Corresponding to flashrom svn r1320.

W25Q128 is:
Signed-off-by: Antony Rheneus <rheneus.paul@gmail.com>
everything else is:
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-05-26 14:28:51 +00:00
Joshua Roys
d172ecdb34 ichspi: fix detection of unused regions
Corresponding to flashrom svn r1319.

Signed-off-by: Joshua Roys <roysjosh@gmail.com>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-05-26 13:30:51 +00:00
Stefan Tauner
7bcacb1bdb Eliminate magic numbers indicating maximum column sizes in print.c
Without this the magic numbers need to be kept in sync with the maximum
length of the strings printed in the corresponding column. if not, an
overflow and a nasty ' '-storm occur on executing flashrom -L.

Corresponding to flashrom svn r1318.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
2011-05-26 01:35:19 +00:00
Stefan Tauner
c0aaf95487 Whitespace, documentation and other small stuff
This patch combines three previously posted patches in a revised form.
one is even stolen from Stefan Reinauer (remove umlauts from man page).

Corresponding to flashrom svn r1317.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Signed-off-by: Stefan Reinauer <reinauer@google.com>

Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-05-19 02:58:17 +00:00
Carl-Daniel Hailfinger
7a3bd8f28f Refine status register and lock printing of Atmel and AMIC SPI chips
Add lock printing for AMIC A25L05PT, A25L05PU, A25L10PT, A25L10PU,
A25L20PT, A25L20PU, A25L40PT, A25L40PU, A25L80P, A25L16PT, A25L16PU,
A25L512, A25L010, A25L020, A25L040, A25L080, A25L016, A25L032, A25LQ032
to a25.c.

Add lock printing for Atmel AT26DF081A, AT26DF161, AT26DF161A,
AT26DF321.

Move Atmel AT25*/AT26* lock related functions originally added in r1115
from spi25.c to at25.c.

For SPI chips the lock printing was handled by one common function, but
sharing a common function which only is a big switch() statement doesn't
make sense, especially if we can define lock printing functions per
flash chip anyway.

The printlock function pointer in struct flashchip is used to print
status register and locking information, and serves as replacement for
implicit status register and lock printing during probe. That code will
later be changed to store locking info in a machine- accessible data
structure so flashrom can handle locked regions correctly.

Corresponding to flashrom svn r1316.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-05-19 00:06:06 +00:00
John Schmerge
c965c2de64 Mark SST25VF080B tested for writing (again)
Success report: http://www.flashrom.org/pipermail/flashrom/2011-May/006473.html

Corresponding to flashrom svn r1315.

Signed-off-by: John Schmerge <jschmerge@gmail.com>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
2011-05-18 11:28:47 +00:00
Shailendra Sodhi
6dbab4dcfb Mark Supermicro X8DTH-6F as supported
Corresponding to flashrom svn r1314.

Signed-off-by: Shailendra Sodhi <shailendra.sodhi@endace.com>
Acked-by: Idwer Vollering <vidwer@gmail.com>
2011-05-18 01:32:25 +00:00
Joshua Roys
7225ccdb62 Add board enable for AOpen i975Xa-YDG
Success report:
http://www.flashrom.org/pipermail/flashrom/2010-October/005046.html

Corresponding to flashrom svn r1313.

Signed-off-by: Joshua Roys <roysjosh@gmail.com>
Acked-by: Idwer Vollering <vidwer@gmail.com>
2011-05-18 01:32:16 +00:00
Stefan Tauner
ef1017558b Mark EVGA 270-WS-W555-A2 (Classified SR-2) as supported
Success report: http://flashrom.org/pipermail/flashrom/2011-April/006179.html

Corresponding to flashrom svn r1312.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Idwer Vollering <vidwer@gmail.com>
2011-05-18 01:32:09 +00:00
Stefan Tauner
fcf6a8c24d Mark SST25VF032B as write tested
Success report: http://flashrom.org/pipermail/flashrom/2011-April/006179.html

Corresponding to flashrom svn r1311.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Idwer Vollering <vidwer@gmail.com>
2011-05-18 01:32:00 +00:00
Stefan Tauner
faf01fba9d Explain better what checks are disabled in case we detect a legacy BIOS
Corresponding to flashrom svn r1310.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Peter Stuge <peter@stuge.se>
2011-05-18 01:31:53 +00:00
Stefan Tauner
74c6ec695d Mark Macronix MX29F001T as fully tested
Success report with MX29F001TPC-12 at:
http://flashrom.org/pipermail/flashrom/2011-April/006132.html

Corresponding to flashrom svn r1309.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2011-05-18 01:31:46 +00:00
Stefan Tauner
67fbd77674 Add Gigabyte GA-MA790XT-UD4P to the mainboard support list
http://www.flashrom.org/pipermail/flashrom/2011-April/006099.html

Corresponding to flashrom svn r1308.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Idwer Vollering <vidwer@gmail.com>
2011-05-18 01:31:39 +00:00