aboutsummaryrefslogtreecommitdiffstats
path: root/flash.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Move SPI code out of board_enable.c where it started its lifeCarl-Daniel Hailfinger2007-10-151-0/+2
| | | | | | | | | | | | | | | The SPI chip finding and SPI chip accessor code is moved as well. This can be split later if we feel like it. The non-use of svn cp is intentional because the only history we'd have to preserve are a few commits which were early prototypes of chip identification code. For those who intend to look at that history, they can look at board_enable.c revision 2853. Corresponding to flashrom svn r145 and coreboot v2 svn r2857. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* This patch aims to restructure SPI flash support in a more reasonable wayCarl-Daniel Hailfinger2007-10-021-0/+27
| | | | | | | | | | | | | | | | | | It introduces a generic SPI host driver for the IT8716F Super I/O which will enable easy SPI programming without having to care for the peculiarities of the SPI host. To activate probing for the IT8716F, you have to use the gigabyte:m57sli mainboard override. SPI support will then use the gathered SPI host data to access the SPI flash. This has been tested sucessfully by Ward Vandewege <ward@gnu.org> on the GA-M57SLI v2.0, which has a MX25L4005 SPI flash part. Corresponding to flashrom svn r140 and coreboot v2 svn r2817. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ward Vandewege <ward@gnu.org>
* Remove useless 'extern' keywordsUwe Hermann2007-09-091-54/+54
| | | | | | | Corresponding to flashrom svn r137 and coreboot v2 svn r2769. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add '(C)' where it's missing (for consistency reasons)Uwe Hermann2007-09-091-3/+3
| | | | | | | 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>
* Add support for the Winbond W29EE011Markus Boas2007-08-301-0/+4
| | | | | | | Corresponding to flashrom svn r133 and coreboot v2 svn r2753. Signed-off-by: Markus Boas <ryven@ryven.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for the Winbond W29C040PMarkus Boas2007-08-301-0/+1
| | | | | | | Corresponding to flashrom svn r132 and coreboot v2 svn r2752. Signed-off-by: Markus Boas <ryven@ryven.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Change all flashrom license headers to use our standard formatUwe Hermann2007-08-291-13/+12
| | | | | | | | | 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>
* Drop a bunch of useless header files, merge them into flash.hUwe Hermann2007-08-231-2/+99
| | | | | | | 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>
* Add various ST flash chipsCarl-Daniel Hailfinger2007-07-251-0/+8
| | | | | | | | | | | | | | This patch adds support for the M50FLW040A, M50FLW040B, M50FLW080A, M50FLW080B, M50FW080, M50FW016, M50LPW116, M29W010B flash chips made by ST. The patch is based on the data sheets of the chips and has not been tested at all. Corresponding to flashrom svn r123 and coreboot v2 svn r2741. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* This patch adds support for ST M50FW040 and ST M29W040BCarl-Daniel Hailfinger2007-07-241-0/+2
| | | | | | | | | | | Only reading from the chips was tested; writing support is untested. Thanks to Gürkan Sengün <gurkan@linuks.mine.nu> for testing! Corresponding to flashrom svn r122 and coreboot v2 svn r2740. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Factor out register mapping codeStefan Reinauer2007-05-241-0/+2
| | | | | | | Corresponding to flashrom svn r113 and coreboot v2 svn r2691. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Big cosmetic offensive on flashromStefan Reinauer2007-05-231-2/+5
| | | | | | | | | | | | * 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>
* Add support for the Winbond W39V040FA chipUwe Hermann2007-05-211-0/+1
| | | | | | | Corresponding to flashrom svn r110 and coreboot v2 svn r2686. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Fix coding style of flashrom by running indent on all filesUwe Hermann2007-05-091-5/+5
| | | | | | | | | | | | indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs *.[ch] Some minor fixups were required, and maybe a few more cosmetic changes are needed. Corresponding to flashrom svn r108 and coreboot v2 svn r2643. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add initial support for the following flash chipsUwe Hermann2007-04-281-1/+4
| | | | | | | | | | | | | - Atmel AT29C020 - STMicroelectronics M29F002B - STMicroelectronics M29F002T - STMicroelectronics M29F002NT Corresponding to flashrom svn r105 and coreboot v2 svn r2621. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Signed-off-by: Roger Zauner <roger@eskimo.com> Acked-by: Peter Stuge <peter@stuge.se>
* Trivial (cosmetic) cleanupStefan Reinauer2007-04-061-9/+10
| | | | | | | | | | | | | * 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>
* Split flash_enable.c into chipset_enable.c and board_enable.cLuc Verhaegen2007-04-041-2/+10
| | | | | | | | | | | | | | | | | | | | This splits up the ROM Write enable code into chipset specific and board specific parts. This of course means that a lot of code is plainly moved about. * Allows for linuxbios name matching and pci-subsystem id matching. The latter uses a double set to properly distuinguish boards despite of some known vendors being lax about it. * Fixes GPIO15 being raised on every VT8235 southbridge, regardless of what that line actually controls; rom on EPIA-M, backlight on mitac 8999 laptop. * Adds flashrom support for Asus A7V400-MX (KM400 + VT8235) * Island aruma was renamed agami aruma, the board specific code now got adjusted. A set of pci-ids was retrieved from source code. Corresponding to flashrom svn r99 and coreboot v2 svn r2581. Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Drop useless and partly even incorrect commentsUwe Hermann2007-04-011-49/+54
| | | | | | | Corresponding to flashrom svn r98 and coreboot v2 svn r2578. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Coding style fixesUwe Hermann2007-04-011-72/+71
| | | | | | | 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>
* Add Winbond W39V080A supportDavid Hendricks2007-03-021-0/+1
| | | | | | | | Corresponding to flashrom svn r92 and coreboot v2 svn r2565. Signed-off-by: David Hendricks <david.hendricks@gmail.com> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* This patch is a rework of Adam Kaufman's Solaris patchAdam Kaufman2007-02-061-0/+38
| | | | | | | | | | | | | | | | | | | | | | * flash.h: - add a license header - add system definitions * flash_enable.c: - put io priviledge access in one single place - add includes required for Solaris. * lbtable.c, flash_rom.c, 82802ab.c: - use MEM_DEV so it works on Solaris * sst49lfxxxc.c, sharplhf00l04.c, sst_fwhub.c, 82802ab.c - drop unneeded include to sys/io.h * Makefile - adapt to Solaris specifics. Corresponding to flashrom svn r88 and coreboot v2 svn r2550. Signed-off-by: Adam Kaufman <adam.kaufman@pinnacle.com> Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Adam Kaufman <adam.kaufman@pinnacle.com>
* Add support for the SST 49LF160CAlan Carvalho de Assis2007-01-271-0/+1
| | | | | | | Corresponding to flashrom svn r87 and coreboot v2 svn r2539. Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for the SST-49LF004C, SST-49LF008C, SST-49LF016CYinghai Lu2007-01-221-0/+3
| | | | | | | | | | Also add suport for NVIDIA MCP55. Corresponding to flashrom svn r85 and coreboot v2 svn r2537. Signed-off-by: Yinghai Lu <yinghai.lu@amd.com> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Peter Stuge <peter@stuge.se>
* Add support for ASD AE49F2008 Stefan Reinauer2006-11-211-0/+3
| | | | | | | Corresponding to flashrom svn r77 and coreboot v2 svn r2504. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
* Rename SM_ID to SYNCMOS_IDUwe Hermann2006-11-211-1/+1
| | | | | | | Corresponding to flashrom svn r75 and coreboot v2 svn r2502. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Add support for the SyncMOS S29C51001T, S29C51004T, and S29C31004TUwe Hermann2006-11-211-1/+4
| | | | | | | Corresponding to flashrom svn r74 and coreboot v2 svn r2501. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com>
* Support for the 256K SyncMos S29C51002T flashGiampiero Giancipoli2006-11-201-0/+3
| | | | | | | Corresponding to flashrom svn r72 and coreboot v2 svn r2499. Signed-off-by: Giampiero Giancipoli <gianci@email.it> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Here's a small patch to add support for the SST 49LF020AUwe Hermann2006-10-071-0/+1
| | | | | | | Corresponding to flashrom svn r66 and coreboot v2 svn r2450. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> X-Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
* Add support for SST39SF040, SST39SF010A and W39V040BStefan Reinauer2006-07-311-6/+9
| | | | Corresponding to flashrom svn r58 and coreboot v2 svn r2354.
* Signed-off-by: Scott Tsai <scott.tsai@arima.com.tw>Stefan Reinauer2006-07-191-0/+1
| | | | | | | Data sheet: http://www.alldatasheet.com/datasheet-pdf/pdf/47674/WINBOND/W49V002FAP.html Corresponding to flashrom svn r56 and coreboot v2 svn r2341.
* Add support for EFST F49B002UA (untested)Stefan Reinauer2006-06-301-0/+3
| | | | Corresponding to flashrom svn r55 and coreboot v2 svn r2336.
* Add support for PMC 49FL002 as used in the RD1-PMC2Stefan Reinauer2006-06-251-0/+1
| | | | Corresponding to flashrom svn r54 and coreboot v2 svn r2332.
* Add support for Winbond W49V002AStefan Reinauer2006-06-141-0/+1
| | | | Corresponding to flashrom svn r53 and coreboot v2 svn r2321.
* Multiple unrelated changesScott Tsai2006-03-311-0/+1
| | | | | | | | | * SST_49LF040B flash support for flashrom * add ICH4-M support to flashrom Corresponding to flashrom svn r52 and coreboot v2 svn r2230. Signed-off-by: Scott Tsai <scott.tsai@arima.com.tw>
* Multiple unrelated changesStefan Reinauer2006-03-311-1/+2
| | | | | | | | * support for Winbond W39V040A * Support for ATI SB400 (RS480 chipset) * Support for Intel ICH7 (from Scott Tsai <scott.tsai@arima.com.tw>) Corresponding to flashrom svn r51 and coreboot v2 svn r2229.
* Support for Am29F016DStefan Reinauer2006-03-161-0/+1
| | | | Corresponding to flashrom svn r45 and coreboot v2 svn r2203.
* Add support for ST M29F040BStefan Reinauer2006-02-241-0/+1
| | | | | | Signed-off-by: Leon Woestenberg <leonw@mailcan.com> Corresponding to flashrom svn r41 and coreboot v2 svn r2182.
* Add sharp flashRonald G. Minnich2006-02-231-0/+3
| | | | Corresponding to flashrom svn r40 and coreboot v2 svn r2180.
* Flashrom update from Stefan, resolve issue 21Ollie Lho2005-11-261-4/+7
| | | | Corresponding to flashrom svn r34 and coreboot v2 svn r2111.
* Remove false alarm of erase/write, use verify '-v' if you are not sure about ↵Ollie Lho2004-03-271-1/+1
| | | | | | the integrity Corresponding to flashrom svn r19 and coreboot v2 svn r1486.
* Consolidate more jedec standard codeOllie Lho2004-03-201-26/+26
| | | | Corresponding to flashrom svn r15 and coreboot v2 svn r1457.
* Add support for more SST 49lf0xxA partsDavid Hendricks2004-03-181-0/+5
| | | | Corresponding to flashrom svn r12 and coreboot v2 svn r1438.
* Move utility functions into new source filesOllie Lho2004-03-171-1/+2
| | | | Corresponding to flashrom svn r6 and coreboot v2 svn r1428.
* Add support for SST49LF040David Hendricks2004-03-171-1/+2
| | | | Corresponding to flashrom svn r5 and coreboot v2 svn r1422.
* Now we support 8111 and these partsRonald G. Minnich2004-02-101-0/+3
| | | | Corresponding to flashrom svn r3 and coreboot v2 svn r1375.
* Changes from NIKIRonald G. Minnich2003-09-121-18/+12
| | | | Corresponding to coreboot v1 svn r873.
* Add w29c011Andrew Ip2002-12-301-0/+1
| | | | Corresponding to coreboot v1 svn r727.
* Add w49f002u supportAndrew Ip2002-10-161-0/+5
| | | | Corresponding to coreboot v1 svn r643.
* Can now burn 82802abRonald G. Minnich2002-09-061-0/+2
| | | | Corresponding to coreboot v1 svn r633.
* Add sst39vf020 supportOllie Lho2002-07-181-0/+1
| | | | Corresponding to coreboot v1 svn r606.