- 08 Mar, 2011 1 commit
-
-
Patrick Georgi authored
- Fix various minor compile issues (eg. include necessary standard headers) - Fix compilation of libpayload code paths - Provide libpayload support in Makefile - Add make target "libflashrom.a" which links non-CLI code to static library Corresponding to flashrom svn r1280. Signed-off-by:
Patrick Georgi <patrick.georgi@secunet.com> Tested-with-DOS-crosscompiler-by:
Idwer Vollering <vidwer@gmail.com> Acked-by:
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-
- 24 Jan, 2011 1 commit
-
-
Peter Huewe authored
This patch fixes the "using plain integer as NULL pointer" warnings generated by running sparse on the flashrom source. Corresponding to flashrom svn r1255. Signed-off-by:
Peter Huewe <peterhuewe@gmx.de> Acked-by:
Mathias Krause <mathias.krause@secunet.com> Acked-by:
Stefan Reinauer <stepan@coreboot.org>
-
- 30 Sep, 2010 1 commit
-
-
Patrick Georgi authored
This doesn't include changes to the frontend which must be done separately, so this won't work out of the box. This code was tested on hardware. Corresponding to flashrom svn r1184. Signed-off-by:
Patrick Georgi <patrick.georgi@coresystems.de> Acked-by:
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-
- 03 Jul, 2010 1 commit
-
-
Carl-Daniel Hailfinger authored
Constify variables where possible. Initialize programmer-related variables explicitly in programmer_init to allow running programmer_init from a clean state after programmer_shutdown. Prohibit registering programmer shutdown functions before init or after shutdown. Kill some dead code. Rename global variables with namespace-polluting names. Use a previously unused locking helper function in sst49lfxxxc.c. This is needed for libflashrom. Effects on the binary size of flashrom are minimal (300 bytes shrinkage), but the data section shrinks by 4384 bytes, and that's a good thing if flashrom is operating in constrained envionments. Corresponding to flashrom svn r1068. Signed-off-by:
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by:
Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
-
- 04 Jun, 2010 1 commit
-
-
Carl-Daniel Hailfinger authored
Since we don't support any other compilers right now, enable that extension unconditionally. Fix the bugs found by format string checking. Corresponding to flashrom svn r1032. Signed-off-by:
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by:
Sean Nelson <audiohacked@gmail.com>
-
- 03 Jun, 2010 1 commit
-
-
Carl-Daniel Hailfinger authored
Do not trust the OS at all and measure timer precision before calibrating the delay loop and use that measurement to get reasonable precision for our own delay code. Print a measurement for a delay of 4x the OS timer resolution. Be precise about how bad the deviation was if we had to recalculate. Tested on Windows XP, 32 bit, built using MinGW by Uwe. Tested on FreeDOS v1.0 Final, 32bit, built using DJGPP 4.3.2 by Idwer. Corresponding to flashrom svn r1028. Signed-off-by:
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Idwer Vollering <vidwer+lists.flashrom@gmail.com>
-
- 30 May, 2010 1 commit
-
-
Carl-Daniel Hailfinger authored
Unistd.h was only used to get a definition of NULL in all files. Add our own NULL #define and remove unistd.h from flash.h stdio.h has no place in flash.h, it should be included only in files which really need it. Add #include statements in individual .c files where needed. Replace a few printf with msg_* to eliminate the need for stdio.h. Corresponding to flashrom svn r1021. Signed-off-by:
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by:
Uwe Hermann <uwe@hermann-uwe.de>
-
- 09 Apr, 2010 1 commit
-
-
Urja Rannikko authored
Fix an unescaped % in a format specifier. Corresponding to flashrom svn r992. Signed-off-by:
Urja Rannikko <urjaman@gmail.com> Acked-by:
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-
- 31 Mar, 2010 1 commit
-
-
Carl-Daniel Hailfinger authored
The current delay loop calculation is still from revision 1 of flashrom, and since then it had a logic bug which caused all delays to be twice as long as intended. Fix the delay duration. Protect against delay loop overflows. Detect a non-working delay loop. Change the delay loop itself to ensure clever compiler optimizers won't eliminate it (as happens with clang/llvm in the current code). Some people suggested machine-specific asm, but the empty asm statement with the loop counter as register/memory input has the benefit of being perfectly cross-platform and working in gcc and clang. If time goes backwards (catastrophical NTP time difference, manual time change), timing measurements were shot because the new-old time subtraction yielded negative numbers which weren't handled correctly because the variable is unsigned. Work around that issue (a fix is mathematically impossible). If time goes forward too fast, pick the biggest possible timing measurement with a guaranteed overflow avoidance for all timing calculations. Check four times if the calculated timing is at most 10% too fast. This addresses OS scheduler interactions, e.g. being scheduled out during measurement which inflates measurements. If the timing looks like garbage, recalculate the timer values up to four times before giving up. Avoid division by zero in rare cases where timing measurements for a 250 ms delay returned 0 us elapsed. Corresponding to flashrom svn r990. Signed-off-by:
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by:
Maciej Pijanka <maciej.pijanka@gmail.com>
-
- 27 Mar, 2010 1 commit
-
-
Carl-Daniel Hailfinger authored
Clean up code duplication and measure timing of 10/100/1000/10000 us delays. Corresponding to flashrom svn r986. Signed-off-by:
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by:
Maciej Pijanka <maciej.pijanka@gmail.com>
-
- 24 Dec, 2009 1 commit
-
-
Carl-Daniel Hailfinger authored
Move that function to udelay.c and compile internal.c only if really needed. physmap.c is only needed if the programmer is internal or a PCI card. Make its compilation conditional. Corresponding to flashrom svn r822. Signed-off-by:
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by:
Idwer Vollering <vidwer@gmail.com>
-
- 05 Jun, 2009 1 commit
-
-
Carl-Daniel Hailfinger authored
Add external programmer delay functions so external programmers can handle the delay on their own if needed. Corresponding to flashrom svn r578. Signed-off-by:
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Urja Rannikko <urjaman@gmail.com>
-
- 16 May, 2009 1 commit
-
-
Uwe Hermann authored
Build-tested on 32bit x86. Corresponding to flashrom svn r521. Signed-off-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Uwe Hermann <uwe@hermann-uwe.de>
-
- 15 Apr, 2009 1 commit
-
-
Uwe Hermann authored
Corresponding to flashrom svn r429 and coreboot v2 svn r4117. Signed-off-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Uwe Hermann <uwe@hermann-uwe.de>
-
- 18 Oct, 2008 1 commit
-
-
Uwe Hermann authored
Corresponding to flashrom svn r326 and coreboot v2 svn r3669. Signed-off-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Uwe Hermann <uwe@hermann-uwe.de>
-
- 07 Sep, 2008 1 commit
-
-
Peter Stuge authored
Corresponding to flashrom svn r314 and coreboot v2 svn r3569. Signed-off-by:
Peter Stuge <peter@stuge.se> Acked-by:
Peter Stuge <peter@stuge.se>
-
- 17 Oct, 2007 1 commit
-
-
Uwe Hermann authored
Corresponding to flashrom svn r151 and coreboot v2 svn r2873. Signed-off-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Stefan Reinauer <stepan@coresystems.de>
-
- 10 Oct, 2007 2 commits
-
-
Uwe Hermann authored
Corresponding to flashrom svn r143 and coreboot v2 svn r2847. Signed-off-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Uwe Hermann <uwe@hermann-uwe.de>
-
Uwe Hermann authored
Corresponding to flashrom svn r142 and coreboot v2 svn r2846. Signed-off-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Uwe Hermann <uwe@hermann-uwe.de>
-
- 09 Sep, 2007 2 commits
-
-
Uwe Hermann authored
Corresponding to flashrom svn r136 and coreboot v2 svn r2768. Signed-off-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Uwe Hermann <uwe@hermann-uwe.de>
-
Uwe Hermann authored
I'm self-ack'ing this, as the origin of the code in udelay.c (and thus the license and copyright owner) is pretty clear. The code which is now in udelay.c was split out from flash_rom.c in r1428, and flash_rom.c, in turn, has been around since the beginning and had a 'Copyright 2000 Silicon Integrated System Corporation' line as well as the usual GPLv2-or-later license header. Corresponding to flashrom svn r135 and coreboot v2 svn r2767. Signed-off-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Uwe Hermann <uwe@hermann-uwe.de>
-
- 23 Aug, 2007 1 commit
-
-
Uwe Hermann authored
Corresponding to flashrom svn r128 and coreboot v2 svn r2746. Signed-off-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Stefan Reinauer <stepan@coresystems.de>
-
- 06 Apr, 2007 1 commit
-
-
Stefan Reinauer authored
* 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>
-
- 01 Apr, 2007 1 commit
-
-
Uwe Hermann authored
Corresponding to flashrom svn r97 and coreboot v2 svn r2577. Signed-off-by:
Uwe Hermann <uwe@hermann-uwe.de> Acked-by:
Uwe Hermann <uwe@hermann-uwe.de>
-
- 26 Nov, 2005 1 commit
-
-
Ollie Lho authored
Corresponding to flashrom svn r34 and coreboot v2 svn r2111.
-
- 20 Mar, 2004 1 commit
-
-
Ollie Lho authored
Corresponding to flashrom svn r15 and coreboot v2 svn r1457.
-
- 18 Mar, 2004 1 commit
-
-
Ollie Lho authored
Corresponding to flashrom svn r8 and coreboot v2 svn r1434.
-
- 17 Mar, 2004 2 commits