summaryrefslogtreecommitdiffstats
path: root/sst49lf040.c
Commit message (Collapse)AuthorAgeFilesLines
* Flashrom only checks for very few chips if the erase workedCarl-Daniel Hailfinger2009-06-151-3/+8
| | | | | | | | | | | | | | | | | | | And even when it checks if the erase worked, the result of that check is often ignored. Convert all erase functions and actually check return codes almost everywhere. Check inside all erase_* routines if erase worked, not outside. erase_sector_jedec and erase_block_jedec have changed prototypes to enable erase checking. Uwe successfully tested LPC on an CK804 box and SPI on some SB600 box. Corresponding to flashrom svn r595. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Signed-off-by: Urja Rannikko <urjaman@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Drop unused/duplicated #includes and some dead codeUwe Hermann2009-05-161-1/+0
| | | | | | | | | 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>
* Introduce a type "chipaddr" to abstract the offsets within flash regionsCarl-Daniel Hailfinger2009-05-161-2/+2
| | | | | | | | | | | | | | | | | | | Use chipaddr instead of volatile uint8_t * because when we access chips in external flashers, they are not accessed via pointers at all. Benefits: This allows us to differentiate between volatile machine memory accesses and flash chip accesses. It also enforces usage of chip_{read,write}[bwl] to access flash chips, so nobody will unintentionally use pointers to access chips anymore. Some unneeded casts are removed as well. Grepping for chip operations and machine memory operations doesn't yield any false positives anymore. Compile tested on 32 bit and 64 bit Linux. Corresponding to flashrom svn r519. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Reduce serial output, otherwise flashing will fail very oftenUwe Hermann2008-10-211-2/+4
| | | | | | | | | This has been tested on hardware by me. Corresponding to flashrom svn r327 and coreboot v2 svn r3682. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Some cosmetic cleanups in the flashrom code and outputUwe Hermann2007-10-171-1/+1
| | | | | | | 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>
* Add '(C)' where it's missing (for consistency reasons)Uwe Hermann2007-09-091-1/+1
| | | | | | | 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>
* Change all flashrom license headers to use our standard formatUwe Hermann2007-08-291-20/+13
| | | | | | | | | No changes in content of the files. Corresponding to flashrom svn r131 and coreboot v2 svn r2751. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Cosmetic fixesUwe Hermann2007-08-231-1/+3
| | | | | | | Corresponding to flashrom svn r130 and coreboot v2 svn r2748. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Drop a bunch of useless header files, merge them into flash.hUwe Hermann2007-08-231-2/+0
| | | | | | | 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>
* Drop leftover includesStefan Reinauer2007-05-241-2/+2
| | | | | | | Corresponding to flashrom svn r115 and coreboot v2 svn r2693. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Big cosmetic offensive on flashromStefan Reinauer2007-05-231-2/+2
| | | | | | | | | | | | * Give decent names to virt_addr and virt_addr_2 * add some comments * move virtual addresses to the end of the struct, so they dont mess up the initializer. Corresponding to flashrom svn r111 and coreboot v2 svn r2689. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Coding style fixesUwe Hermann2007-04-011-7/+7
| | | | | | | 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>
* Fix flashrom for sst49lf080a and small print bugRoman Kononov2006-10-071-5/+4
| | | | | | | Corresponding to flashrom svn r64 and coreboot v2 svn r2448. Signed-off-by: Roman Kononov <kononov195-lbl@yahoo.com>. X-Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
* Removing $Id$ tags as they have no meaning in SVNStefan Reinauer2006-08-231-1/+0
| | | | Corresponding to flashrom svn r60 and coreboot v2 svn r2386.
* Compilation fix for gcc 4.0.2 (SUSE10)Stefan Reinauer2006-03-201-2/+2
| | | | Corresponding to flashrom svn r50 and coreboot v2 svn r2220.
* Make SST49lf040 not clog the serial line tooStefan Reinauer2006-03-171-2/+5
| | | | Corresponding to flashrom svn r48 and coreboot v2 svn r2210.
* Flashrom update from Stefan, resolve issue 21Ollie Lho2005-11-261-3/+3
| | | | Corresponding to flashrom svn r34 and coreboot v2 svn r2111.
* Add dedicated chip erase function for SST49LF040Ollie Lho2005-01-111-2/+17
| | | | Corresponding to flashrom svn r31 and coreboot v2 svn r1852.
* Remove false alarm of erase/write, use verify '-v' if you are not sure about ↵Ollie Lho2004-03-271-4/+3
| | | | | | the integrity Corresponding to flashrom svn r19 and coreboot v2 svn r1486.
* Remove unused #define and function declarationOllie Lho2004-03-201-8/+0
| | | | Corresponding to flashrom svn r17 and coreboot v2 svn r1459.
* Consolidate more jedec standard codeOllie Lho2004-03-201-11/+13
| | | | Corresponding to flashrom svn r15 and coreboot v2 svn r1457.
* Remove duplicated codeOllie Lho2004-03-191-129/+6
| | | | Corresponding to flashrom svn r14 and coreboot v2 svn r1456.
* Remove unused code in pm49fl004, remove experimental delay in sst49lf040Ollie Lho2004-03-181-4/+0
| | | | Corresponding to flashrom svn r10 and coreboot v2 svn r1436.
* Fix 32bit vs. 64bit long int arithematicsOllie Lho2004-03-181-1/+3
| | | | Corresponding to flashrom svn r8 and coreboot v2 svn r1434.
* Use standard product ID exit method for w49f002uOllie Lho2004-03-171-40/+5
| | | | Corresponding to flashrom svn r7 and coreboot v2 svn r1433.
* Add support for SST49LF040David Hendricks2004-03-171-0/+224
Corresponding to flashrom svn r5 and coreboot v2 svn r1422.
OpenPOWER on IntegriCloud