aboutsummaryrefslogtreecommitdiffstats
path: root/board_enable.c
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-241-0/+9
| | | | | | | | | | 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-241-0/+9
| | | | | | | | | 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-241-0/+2
| | | | | | | | 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>
* 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>
* Generify support for ITE IT8705 Super I/OCarl-Daniel Hailfinger2010-07-101-26/+83
| | | | | | | | | | | | | | | | | Autodetect the ITE IT8705 Super I/O and enable flash writes if it performs LPC->Parallel translation. Remove board enables which triggered the IT8705 write enable manually. Change the IT87 SPI special case to cover IT87 LPC->SPI and LPC->Parallel translation. Corresponding to flashrom svn r1073. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Tested on Syntax SV266A. Acked-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested on Shuttle AK38N, all operations work fine. Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Fix ASUS A8N-VM CSM board enable entryMichael Karcher2010-07-081-2/+2
| | | | | | | | | | | | r1063 had several issues: The PCI IDs for this board are copy/pasted from the A8N and plain wrong for this board and the board enable is marked as tested although it isn't. Finally the board description was slightly wrong and the URL missing. Corresponding to flashrom svn r1071. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Kill global variables, constants and functions if local scope sufficesCarl-Daniel Hailfinger2010-07-031-7/+7
| | | | | | | | | | | | | | | | | | | | | | | 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>
* Add support for the HP DL165 G6Arne Georg Gleditsch2010-07-011-1/+16
| | | | | | | | | Change the match for the HP DL145 G3 to avoid matching on the DL165 G6. Corresponding to flashrom svn r1065. Signed-off-by: Arne Georg Gleditsch <arne.gleditsch@numascale.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Check that the expected winbond Super I/O was foundMichael Karcher2010-06-291-0/+5
| | | | | | | Corresponding to flashrom svn r1064. 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 A8N-VM CSMMichael Karcher2010-06-271-0/+34
| | | | | | | Corresponding to flashrom svn r1063. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* W83627x code unificationMichael Karcher2010-06-271-57/+153
| | | | | | | | | | | | | This patch unifies the code for different Winbond W83627-family chips, to be applied before I add another W83627 GPIO raise function. After the Ack I added the check for unimplemented GPIO ports, but still dared to reuse the ack. Corresponding to flashrom svn r1062. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Unbreak flashrom - fix compiler errorMichael Karcher2010-06-121-1/+1
| | | | | | | | | Fix compiler error (bad forward port in r1040). Corresponding to flashrom svn r1042. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Board-enable for MS-7025 (K8N Neo2 Platinum)Michael Karcher2010-06-121-0/+10
| | | | | | | | | | | Test report is http://www.coreboot.org/pipermail/flashrom/2010-April/002967.html Corresponding to flashrom svn r1041. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Tested-by: Valentine "Pegasus rider" Yatsenko <mr.qweo@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Board enable for EPIA EK (untested)Michael Karcher2010-06-121-1/+2
| | | | | | | | | | Reporter/owner of that board: oscar <oshikore@gmail.com> http://www.coreboot.org/pipermail/flashrom/2010-April/002910.html Corresponding to flashrom svn r1040. 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.c: Remove useless 'name' parameterUwe Hermann2010-06-071-64/+61
| | | | | | | | | | | | Every board-enable function is passed a 'const char *name' (board name) which is totally useless as the board name was already printed by flashrom at that point. Also, 95% or so of the board-enables don't use the parameter anyway. So, drop it. Corresponding to flashrom svn r1037. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Add hp xw9400 board enableMichael Karcher2010-06-011-8/+42
| | | | | | | | | | | Also modifies nvidia_mcp_gpio_set to cope with multiple MCP55 chips on the same board, like on the Tyan S2915-E. Corresponding to flashrom svn r1025. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Adis Salcin <crow@linux.org.ba> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Remove unneeded #include statements completelyCarl-Daniel Hailfinger2010-05-301-5/+4
| | | | | | | | | | | | | | | 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>
* It seems that this board is actually a 'Pro' versionPeter Lemenkov2010-05-261-1/+1
| | | | | | | | | | | | | At least it's addressed as 'Pro' in the list of boards, which requires board_enable. See also: http://www.flashrom.org/pipermail/flashrom/2009-July/000003.html Corresponding to flashrom svn r1015. Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Sort boards in board-enable table alphabeticallyPeter Lemenkov2010-05-261-7/+7
| | | | | | | Corresponding to flashrom svn r1014. Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Handle the following architectures in generic flashrom codeCarl-Daniel Hailfinger2010-05-261-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - x86/x86_64 (little endian) - PowerPC (big endian) - MIPS (big+little endian) No changes to programmer specific code. This means any drivers with MMIO access will _not_ suddenly start working on big endian systems, but with this patch everything is in place to fix them. Compilation should work on all architectures listed above for all drivers except nic3com and nicrealtek which require PCI Port IO which is x86-only for now. To compile without nic3com and nicrealtek, run make distclean make CONFIG_NIC3COM=no CONFIG_NICREALTEK=no Thanks to Misha Manulis for testing early versions of this patch on PowerPC (big endian) with the satasii programmer. Thanks to Segher Boessenkool for design review and for helping out with compiler tricks and pointing out that we need eieio on PowerPC. Thanks to Vladimir Serbinenko for compile testing on MIPS (little endian) and PowerPC (big endian) and for runtime testing on MIPS (little endian). Thanks to David Daney for compile testing on MIPS (big endian). Thanks to Uwe Hermann for compile and runtime testing on x86_64. DO NOT RUN flashrom ON NON-X86 AFTER APPLYING THIS PATCH! This patch only provides the infrastructure, but does not convert any drivers, so flashrom will compile, but it won't do the right thing on non-x86 platforms. Corresponding to flashrom svn r1013. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Misha Manulis <misha@manulis.com> Acked-by: Vladimir 'phcoder/φ-coder' Serbinenko <phcoder@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Segher Boessenkool <segher@kernel.crashing.org>
* Board enable for IP530Michael Karcher2010-05-241-0/+43
| | | | | | | Corresponding to flashrom svn r1010. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Marc Bertens <mbertens@xs4all.nl>
* Libpci < 2.2.4 can not store class info in struct pci_devCarl-Daniel Hailfinger2010-05-211-2/+4
| | | | | | | | | Read class info manually and store it in a separate variable. Corresponding to flashrom svn r1004. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Convert various prints to use msg_p* and msg_g* respectivelySean Nelson2010-05-071-48/+45
| | | | | | | | | Convert programmer print messages to msg_p* convert general print messages to msg_g* a few fixes as suggested by Carl-Daniel. Corresponding to flashrom svn r997. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Add board enable for ABit NF7-SMichael Karcher2010-04-111-0/+9
| | | | | | | | Corresponding to flashrom svn r993. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Tom Brand <worntreads@sbcglobal.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Polish the flashrom code comments and outputs a bitUwe Hermann2010-03-251-24/+24
| | | | | | | | | | | - Fix a number of typos (found via ispell). - Use correct vendor names (as per their websites) consistently. Corresponding to flashrom svn r985. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Autodetect ITE IT87* LPC->SPI translation on all boards without the need for ↵Carl-Daniel Hailfinger2010-03-251-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | a board enable Move boards which had an IT87* SPI board enable from the board enable list to the OK list. Mark the Gigabyte GA-MA78GPM-DS2H as OK. Change the it87spi forced port parameter to it87spiport=... Fix incorrect indentation in the man page. Tested by Ward Vandewege on both variants of the Gigabyte GA-M57SLI-S4 http://www.flashrom.org/pipermail/flashrom/2010-March/002712.html Tested by 李彥學 (Ian-Xue Li) on the Gigabyte GA-MA78GPM-DS2H http://www.flashrom.org/pipermail/flashrom/2010-March/002723.html Corresponding to flashrom svn r983. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ward Vandewege <ward@gnu.org>
* Abit VT6X4 + Winbond W29C020C and Asus A7V133 + Atmel AT29C010A workMichael Karcher2010-03-241-2/+2
| | | | | | | | | | | | | | | | | Abit VT6X4 / W29C020C: See http://www.coreboot.org/pipermail/flashrom/2010-March/002730.html Fixes typo in comment and marks board-enable as tested (the flashrom running on that machine was patched with the board enable that got in later). Asus A7V133 / Atmel AT29C010A: See http://www.coreboot.org/pipermail/flashrom/2010-March/002729.html Adding "erase" to tested as there is only one erase function. Corresponding to flashrom svn r975. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Adds board enable to Termtek TK-3370 thin client motherboardDaniel Brandt2010-03-211-0/+12
| | | | | | | Corresponding to flashrom svn r962. Signed-off-by: Daniel Brandt <dbr@mindglow.se> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Rebased Board Enable Patch: iBase MB899Luc Verhaegen2010-03-191-0/+9
| | | | | | | Corresponding to flashrom svn r959. Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Abit AN-M2Sean Nelson2010-03-191-0/+1
| | | | | | | | | Original patch by: Luc Verhaegen. Corresponding to flashrom svn r958. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Reversed-engineered board enable for the ASUS A8N-LASean Nelson2010-03-191-0/+2
| | | | | | | | | | | | | Rebased. IDs are ISA and SMBus. Added DMI string to match 3 HP boards: Nagami, Nagami2, Nagami2L. This could match any HP Nagami board. Needs testing. Corresponding to flashrom svn r957. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: 2nd attempt to fix board detection on GA-MA74GM-S2HPeter Lemenkov2010-03-191-1/+1
| | | | | | | | | | | | | This board (GA-MA74GM-S2H) has the same list of pciids as the GA-MA78M-S2H, so I narroved search conditions by populating corresponding board_pciid_enable entry for GA-MA78M-S2H with DMI pattern. Untested! Corresponding to flashrom svn r956. Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Asus P4B533-EMichael Karcher2010-03-191-0/+2
| | | | | | | Corresponding to flashrom svn r955. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Factor out Via Apollo GPO settingMichael Karcher2010-03-191-9/+37
| | | | | | | | | The board enable for the VT6X4 committed in r950 actually depended on this commit. Corresponding to flashrom svn r954. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: A8JM board_enable patchJames Lancaster2010-03-191-1/+10
| | | | | | | Corresponding to flashrom svn r953. Signed-off-by: James Lancaster <deathstalker@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Abit KN8 UltraSean Nelson2010-03-191-0/+9
| | | | | | | | | Patch by Chris <zinx+flashrom@zenthought.org> Corresponding to flashrom svn r952. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Intel SE440BX-2Michael Karcher2010-03-191-0/+9
| | | | | | | | | | | This board has no subsystem IDs, but thankfully the DMI patch is in now, which is a real life safer. There are *WAY* to many 440BX/PIIX4 boards out there to match this without DMI. Corresponding to flashrom svn r951. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Abit VT6X4Michael Karcher2010-03-191-0/+9
| | | | | | | | | | | | This board has *no* usable IDs at all, neither DMI nor PCI subsystem IDs. You have to force it using "-m abit:vt6x4" Try 3: really correct polarity of the GPIO Corresponding to flashrom svn r950. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Add Asus A8NLuc Verhaegen2010-03-191-0/+1
| | | | | | | Corresponding to flashrom svn r949. Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Add board enable for P4C800-EMichael Karcher2010-03-171-0/+2
| | | | | | | | | | Lspci/flashrom/superiotool at http://www.coreboot.org/pipermail/flashrom/2010-March/002579.html Corresponding to flashrom svn r947. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Enabling Gigabyte GA-MA69VM-S2Raúl Soriano2010-03-141-0/+1
| | | | | | | | | | This board has a supported chipset and a supported bios, but it's connected indirectly through IT8716 and not recognized. Corresponding to flashrom svn r935. Signed-off-by: Raúl Soriano <GatoLoko@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Various coding style and cosmetic changesUwe Hermann2010-03-131-28/+21
| | | | | | | | | | | | | - Fix coding-style, whitespace, and indentation in a few places. - Consistently use the same spelling ("Super I/O") everywhere. Corresponding to flashrom svn r933. - Make some flashrom stdout output look a bit nicer. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Fix NULL pointer reference in board_flash_enableMichael Karcher2010-03-111-1/+1
| | | | | | | | | Was introduced in r926. Found by Henrik Kretzschmar <henne@nachtwindheim.de>. Corresponding to flashrom svn r930. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Maciej Pijanka <maciej.pijanka@gmail.com>
* Add ASUS A7V8X-X write-enableRuss Dill2010-03-091-3/+6
| | | | | | | | | | I have an ASUS A7V8X-X, the BIOS programming requires a write-enable. It has an IT8712F, just like the A7V600-X. Corresponding to flashrom svn r929. Signed-off-by: Russ Dill <Russ.Dill@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Move untested board enable documentation to manpageMichael Karcher2010-03-071-24/+17
| | | | | | | | | | This also checks the testedness of boards in all cases, not just for PCI/DMI detection. Corresponding to flashrom svn r926. 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 MS-7202 (K8N GM2-L)Michael Karcher2010-03-071-0/+2
| | | | | | | | | Board enable code is untested, marked as such. Corresponding to flashrom svn r925. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Board enable for Asus M2NBP-VM CSMMichael Karcher2010-03-071-0/+9
| | | | | | | | | Board info: http://www.coreboot.org/pipermail/flashrom/2009-December/001373.html Corresponding to flashrom svn r924. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Board enable for HP Vectra VL420SFFMichael Karcher2010-03-071-1/+4
| | | | | | | | | | | | | This code has been tested by Mattias Mattsson on 23. December 2009, but without the DMI match. Now that DMI support is in and working, the board can be added to mainline flashrom. board info: http://www.coreboot.org/pipermail/flashrom/2009-December/001440.html Corresponding to flashrom svn r923. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Board enable for Abit IP35 ProMichael Karcher2010-03-031-0/+2
| | | | | | | | | This board is like the IP35. Just changed the IDs to match. Corresponding to flashrom svn r920. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Timothy Lepre <Klavious@gmail.com>