coreboot.git
15 years agomini fix to reliably compile inteltool on darwin, and on Linux both on x86/x86_64.
Stefan Reinauer [Wed, 22 Apr 2009 23:17:44 +0000 (23:17 +0000)]
mini fix to reliably compile inteltool on darwin, and on Linux both on x86/x86_64.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4190 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agomakes the smi handler a little bit less verbose
Stefan Reinauer [Wed, 22 Apr 2009 22:55:15 +0000 (22:55 +0000)]
makes the smi handler a little bit less verbose

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4189 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix compilation of hp dl145
Stefan Reinauer [Wed, 22 Apr 2009 22:43:02 +0000 (22:43 +0000)]
fix compilation of hp dl145

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4188 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch fixes the parser. '|' has special meaning so [|] is used.
Myles Watson [Wed, 22 Apr 2009 22:25:45 +0000 (22:25 +0000)]
This patch fixes the parser.  '|' has special meaning so [|] is used.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4187 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoConvert 12 more boards to use include statements in Config.lb.
Carl-Daniel Hailfinger [Wed, 22 Apr 2009 22:08:00 +0000 (22:08 +0000)]
Convert 12 more boards to use include statements in Config.lb.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4186 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoTrivial patch. I forgot to update K8_SET_FIDVID.
Myles Watson [Wed, 22 Apr 2009 20:41:42 +0000 (20:41 +0000)]
Trivial patch.  I forgot to update K8_SET_FIDVID.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4185 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch adds the target hp/dl145_g3 together with
Mondrian nuessle [Wed, 22 Apr 2009 20:34:05 +0000 (20:34 +0000)]
This patch adds the target hp/dl145_g3 together with
the appropriate mainboard sources.

Signed-off-by: Mondrian nuessle <nuessle@uni-hd.de>
Acked-by: Samuel Verstraete <samuel.verstraete@gmail.com>
I updated some whitespace and the Config files. - Myles

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4184 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch add rudimentary support for the superio functionality of
Mondrian nuessle [Wed, 22 Apr 2009 20:30:42 +0000 (20:30 +0000)]
This patch add rudimentary support for the superio functionality of
the Serverengines Pilot BMC chip. Necessary to get serial out on the
HP DL145 G3.

Signed-off-by: Mondrian nuessle <nuessle@uni-hd.de>
Acked-by: Samuel Verstraete <samuel.verstraete@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4183 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch adds support for the BCM21000 (aka HT-2100)
Mondrian nuessle [Wed, 22 Apr 2009 20:27:53 +0000 (20:27 +0000)]
This patch adds support for the BCM21000 (aka HT-2100)
PCIe bridge.

Signed-off-by: Mondrian nuessle <nuessle@uni-hd.de>
Acked-by: Samuel Verstraete <samuel.verstraete@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4182 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agodrop duplicate compiler options that are already mentioned in CFLAGS.
Stefan Reinauer [Wed, 22 Apr 2009 18:16:20 +0000 (18:16 +0000)]
drop duplicate compiler options that are already mentioned in CFLAGS.
(scan-build chokes on this)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4181 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago- printed CBFS rom address was always 0
Stefan Reinauer [Wed, 22 Apr 2009 16:32:18 +0000 (16:32 +0000)]
- printed CBFS rom address was always 0
- drop dead code.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4180 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix warnings, shadowed declarations and style guide violations (all trivial)
Stefan Reinauer [Wed, 22 Apr 2009 16:23:47 +0000 (16:23 +0000)]
fix warnings, shadowed declarations and style guide violations (all trivial)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4179 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoincrease rom sizes for abuild
Stefan Reinauer [Wed, 22 Apr 2009 15:49:28 +0000 (15:49 +0000)]
increase rom sizes for abuild
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4178 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAll "unknown xy SPI chip" entries claim to have status UNTESTED for
Carl-Daniel Hailfinger [Wed, 22 Apr 2009 13:33:43 +0000 (13:33 +0000)]
All "unknown xy SPI chip" entries claim to have status UNTESTED for
probe/read/erase/write. That is incorrect.

A bit of confusion comes from how the #defines are named. We call them
TEST_BAD_*, but the message printed by flashrom says:
"This flash part has status NOT WORKING for operations:"

Something that is unimplemented is definitely not working.

Neither of the chip entries mentioned above has erase or write functions
implemented, so erase and write are not working.
Since their size is unknown, we can't read them in. That means read is
not working as well.
Probing is a different matter. If a chip-specific probe function had
matched, we wouldn't have to handle the chip with the "unknown xy SPI
chip" fallback. I'm tempted to call that "not working" as well, but I'm
open to discussion on this point.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4177 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agodrop unused variable.
Stefan Reinauer [Wed, 22 Apr 2009 12:38:23 +0000 (12:38 +0000)]
drop unused variable.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4176 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agono duplicate names in cmos.layout allowed. (fixes a bunch of boards)
Stefan Reinauer [Wed, 22 Apr 2009 12:35:57 +0000 (12:35 +0000)]
no duplicate names in cmos.layout allowed. (fixes a bunch of boards)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4175 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoQuick 'indent' run on ectool with some additional manual cosmetic fixes.
Uwe Hermann [Wed, 22 Apr 2009 12:28:14 +0000 (12:28 +0000)]
Quick 'indent' run on ectool with some additional manual cosmetic fixes.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4174 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agodon't ignore return values (trivial)
Stefan Reinauer [Wed, 22 Apr 2009 12:14:39 +0000 (12:14 +0000)]
don't ignore return values (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4173 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoremove some style guide breaks and warnings from raminit_f_dqs.c
Stefan Reinauer [Wed, 22 Apr 2009 12:00:17 +0000 (12:00 +0000)]
remove some style guide breaks and warnings from raminit_f_dqs.c

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4172 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoargh... never redo parts of the original patch on the fly. This fixes the tree
Stefan Reinauer [Wed, 22 Apr 2009 09:06:38 +0000 (09:06 +0000)]
argh... never redo parts of the original patch on the fly. This fixes the tree
again.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4171 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago* Allow coreboot to use the full 256 bytes of CMOS memory
Stefan Reinauer [Wed, 22 Apr 2009 09:03:08 +0000 (09:03 +0000)]
* Allow coreboot to use the full 256 bytes of CMOS memory
* Make functions out of the accessor macros in mc146818rtc.c
* don't hide reserved cmos entries from coreboot, only from the user.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4170 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch unifies the socket_mPGA604_800Mhz and socket_mPGA604_533Mhz to a
Stefan Reinauer [Wed, 22 Apr 2009 08:56:50 +0000 (08:56 +0000)]
This patch unifies the socket_mPGA604_800Mhz and socket_mPGA604_533Mhz to a
combined socket_mPGA604. No other sockets come with clock rates, and there is
no difference in code, except for the number of microcode patches included in a
build.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4169 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFactor out acpi_create_madt_lapics. It can be used on all ACPI boards.
Stefan Reinauer [Wed, 22 Apr 2009 08:18:37 +0000 (08:18 +0000)]
Factor out acpi_create_madt_lapics. It can be used on all ACPI boards.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4168 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago* move i386 / ACPI dependent code out of hardwaremain.c and into the i386
Stefan Reinauer [Wed, 22 Apr 2009 08:17:38 +0000 (08:17 +0000)]
* move i386 / ACPI dependent code out of hardwaremain.c and into the i386
  acpi code.
* add some defines for FADT flags

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4167 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoRemove the requirement for payload.sh files to be executable. This
Patrick Georgi [Wed, 22 Apr 2009 08:10:48 +0000 (08:10 +0000)]
Remove the requirement for payload.sh files to be executable. This
helps if the file is generated from patches, esp. if that happens
often (eg. with quilt)

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4165 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoTrivial removal of a freudian slip.
Patrick Georgi [Wed, 22 Apr 2009 08:07:31 +0000 (08:07 +0000)]
Trivial removal of a freudian slip.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4164 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoA small utility to dump the RAM of a laptop's Embedded/Environmental
Stefan Reinauer [Wed, 22 Apr 2009 07:23:00 +0000 (07:23 +0000)]
A small utility to dump the RAM of a laptop's Embedded/Environmental
Controller. Nothing fancy, does not know any laptops, EC types, or what
the values mean. It just dumps them. For the dump method, have a look at
the ACPI 3.0b spec.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4163 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago- function prototypes do not need "extern"
Stefan Reinauer [Tue, 21 Apr 2009 23:05:13 +0000 (23:05 +0000)]
- function prototypes do not need "extern"
- fix up debug messages of usb debug console
(trivial)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4162 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: Add support for Gigabyte GA-MA790FX-DQ6. This board uses
Carl-Daniel Hailfinger [Tue, 21 Apr 2009 23:03:20 +0000 (23:03 +0000)]
flashrom: Add support for Gigabyte GA-MA790FX-DQ6. This board uses
IT8718F LPC->SPI translation for the flash chip.

Tested by Mateusz Murawski.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Mateusz Murawski <matowy@tlen.pl>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4161 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoremove a few warnings, and comments á la #include <foo.h> // include file foo.h
Stefan Reinauer [Tue, 21 Apr 2009 23:02:40 +0000 (23:02 +0000)]
remove a few warnings, and comments Ã¡ la #include <foo.h> // include file foo.h
(trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4160 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoadd define for Role-Based Error Reporting to PCIe defines (trivial)
Stefan Reinauer [Tue, 21 Apr 2009 23:01:10 +0000 (23:01 +0000)]
add define for Role-Based Error Reporting to PCIe defines (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4159 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix a warning for a misnamed define, and make a debug message printk_debug
Stefan Reinauer [Tue, 21 Apr 2009 23:00:14 +0000 (23:00 +0000)]
fix a warning for a misnamed define, and make a debug message printk_debug
(trivial)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4158 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoCONFIG_CHIP_NAME is dead (trivial)
Stefan Reinauer [Tue, 21 Apr 2009 22:59:00 +0000 (22:59 +0000)]
CONFIG_CHIP_NAME is dead (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4157 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agosmall updates as suggested by Carl-Daniel Hailfinger.
Stefan Reinauer [Tue, 21 Apr 2009 22:05:50 +0000 (22:05 +0000)]
small updates as suggested by Carl-Daniel Hailfinger.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4156 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoUpdate to this very old document
Stefan Reinauer [Tue, 21 Apr 2009 21:45:11 +0000 (21:45 +0000)]
Update to this very old document

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4155 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd a helper function to acpigen to create _PSD tables.
Patrick Georgi [Tue, 21 Apr 2009 20:34:36 +0000 (20:34 +0000)]
Add a helper function to acpigen to create _PSD tables.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4154 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd an "-l <num>" argument to abuild that sets the LOGLEVEL variables
Patrick Georgi [Tue, 21 Apr 2009 20:31:18 +0000 (20:31 +0000)]
Add an "-l <num>" argument to abuild that sets the LOGLEVEL variables
to the specified value.

Only change Config-abuild.lb, as the others are for manual buildtarget
use - adding __LOGLEVEL__ there would kill the build as it isn't
replaced by the actual content.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4153 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoEliminate various issues brought up by scan-build.
Patrick Georgi [Tue, 21 Apr 2009 20:14:31 +0000 (20:14 +0000)]
Eliminate various issues brought up by scan-build.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4152 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoscan-build prefers -include over --includes=, gcc knows both.
Patrick Georgi [Tue, 21 Apr 2009 12:41:55 +0000 (12:41 +0000)]
scan-build prefers -include over --includes=, gcc knows both.
With this change, romcc knows -include and the build system uses it.

Also use a full path to settings.h because scan-build has trouble
finding it otherwise.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Joseph Smith <joe@settoplinux.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4151 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: Support Macronix MX2512805D flash chip
Stephan Guilloux [Tue, 21 Apr 2009 01:47:16 +0000 (01:47 +0000)]
flashrom: Support Macronix MX2512805D flash chip

Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4150 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: Trivial indent fix
Stephan Guilloux [Tue, 21 Apr 2009 01:46:07 +0000 (01:46 +0000)]
flashrom: Trivial indent fix

Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4149 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoSomehow svn add didn't work for the include files. Commit the remainder
Carl-Daniel Hailfinger [Tue, 21 Apr 2009 00:25:23 +0000 (00:25 +0000)]
Somehow svn add didn't work for the include files. Commit the remainder
of r4147.

Thanks to Myles' patch adding support for include statements,
refactoring Config.lb became possible.

Factor out ROM size calculation from Config.lb.

This patch converts 87 boards (with and without USE_FAILOVER_IMAGE),
but it has to work around a parser bug.

89 files changed, 209 insertions(+), 2415 deletions(-)
A total of 2206 removed lines.

Abuild works for all changed boards on khepri.

Myles writes:
I've tested serengeti for the failover portion and s2892 for the
nofailover portion.  ldoptions are exactly the same and they both boot
the same.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4148 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThanks to Myles' patch adding support for include statements,
Carl-Daniel Hailfinger [Tue, 21 Apr 2009 00:16:06 +0000 (00:16 +0000)]
Thanks to Myles' patch adding support for include statements,
refactoring Config.lb became possible.

Factor out ROM size calculation from Config.lb.

This patch converts 87 boards (with and without USE_FAILOVER_IMAGE),
but it has to work around a parser bug.

89 files changed, 209 insertions(+), 2415 deletions(-)
A total of 2206 removed lines.

Abuild works for all changed boards on khepri.

Myles writes:
I've tested serengeti for the failover portion and s2892 for the
nofailover portion.  ldoptions are exactly the same and they both boot
the same.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4147 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAfter verification in datasheets, all MX25 accept the same opcodes
Stephan Guilloux [Mon, 20 Apr 2009 22:54:13 +0000 (22:54 +0000)]
After verification in datasheets, all MX25 accept the same opcodes
0x60 and 0xC7 for Chip Erase.

Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4146 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoA little more info. Failover docs are next, then proposed new mechanism
Ronald G. Minnich [Mon, 20 Apr 2009 22:10:34 +0000 (22:10 +0000)]
A little more info. Failover docs are next, then proposed new mechanism

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4145 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch adds
Myles Watson [Mon, 20 Apr 2009 21:38:11 +0000 (21:38 +0000)]
This patch adds

cbfstool extract [FILE] [NAME]

It also factors out the csize calculation in rom_add, and fixes rom_delete so
that it can handle deleting the last entry.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4144 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoContinuing the slow doc-o update
Ronald G. Minnich [Mon, 20 Apr 2009 15:36:57 +0000 (15:36 +0000)]
Continuing the slow doc-o update
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4143 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: board_enables: reconstruct table.
Luc Verhaegen [Mon, 20 Apr 2009 12:38:17 +0000 (12:38 +0000)]
flashrom: board_enables: reconstruct table.

This patch restores the pciid based board matching table. It makes this
table readable and hackable again, and the only disadvantage is that the
right margin is way beyond the rather dogmatic 80. All 0x0000 pci ids have
been string replaced by 0 to more easily spot missing ids, and extra
comments have been added to explain how the various entries are used.

Signed-Off-By: Luc Verhaegen <libv@skynet.be>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4142 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: Trivial README change Flashrom->flashrom
Peter Stuge [Mon, 20 Apr 2009 12:34:30 +0000 (12:34 +0000)]
flashrom: Trivial README change Flashrom->flashrom

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4141 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix implicit declarations of done_cache_as_ram_main by adding a
Carl-Daniel Hailfinger [Mon, 20 Apr 2009 12:02:25 +0000 (12:02 +0000)]
Fix implicit declarations of done_cache_as_ram_main by adding a
prototype for these assembler functions.
Affected boards:
digitallogic/msm800sev
pcengines/alix1c

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4140 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: MX25L1605 and 1635 accept Chip Erase opcodes 60 and C7
Stephan Guilloux [Sun, 19 Apr 2009 23:24:26 +0000 (23:24 +0000)]
flashrom: MX25L1605 and 1635 accept Chip Erase opcodes 60 and C7

Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4139 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd MX25L1635D support, as discussed on #coreboot.
Stephan Guilloux [Sun, 19 Apr 2009 23:04:00 +0000 (23:04 +0000)]
Add MX25L1635D support, as discussed on #coreboot.

Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4138 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThere is a typo in amdk8/raminit_f.c regarding the preprocessor symbol QRANK_DIMM_SUP...
Ronald Hoogenboom [Sat, 18 Apr 2009 23:04:28 +0000 (23:04 +0000)]
There is a typo in amdk8/raminit_f.c regarding the preprocessor symbol QRANK_DIMM_SUPPORT in line 2208, which caused the protected code fragment never to be included for compilation.

Signed-off-by: Ronald Hoogenboom <hoogenboom30@zonnet.nl>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4137 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agodrop the ChangeLog.cvsimport document from the transition from CVS
Stefan Reinauer [Sat, 18 Apr 2009 18:10:38 +0000 (18:10 +0000)]
drop the ChangeLog.cvsimport document from the transition from CVS
to GNU arch. Does anyone remember that? What a fun!
All history is in the SVN repository, including the CVS and TLA parts,
so nothing is lost.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4136 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoDrop long-obsolete HOWTO, it's still available in wikified form at
Uwe Hermann [Sat, 18 Apr 2009 17:22:11 +0000 (17:22 +0000)]
Drop long-obsolete HOWTO, it's still available in wikified form at
http://www.coreboot.org/VIA_EPIA-M.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4135 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agos/LinuxBIOS/coreboot/.
Uwe Hermann [Sat, 18 Apr 2009 14:18:20 +0000 (14:18 +0000)]
s/LinuxBIOS/coreboot/.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4134 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd support for the ASUS P2B-D mainboard.
Uwe Hermann [Sat, 18 Apr 2009 14:02:00 +0000 (14:02 +0000)]
Add support for the ASUS P2B-D mainboard.

This is a pretty standard "yet another 440BX" target, so the code
is pretty straight-forward. It's a dual-CPU machine, which might need
some fixing, I'm booting with 'maxcpus=0' for now. It does boot
successfully up to a Linux login prompt, though.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4133 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: Add VIA PC3500G board. It has SPI flash behind ITE8716 on LPC.
Peter Stuge [Fri, 17 Apr 2009 23:01:45 +0000 (23:01 +0000)]
flashrom: Add VIA PC3500G board. It has SPI flash behind ITE8716 on LPC.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: illdred <illdred@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4132 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd include to config.g
Myles Watson [Fri, 17 Apr 2009 17:58:34 +0000 (17:58 +0000)]
Add include to config.g

Usage:

include path

path can be relative to the current directory or absolute starting at /src.

I tested it with:

include /config/absolute.lb
include relative.lb

in /src/northbridge/amd/amdk8/Config.lb
which included
   /src/northbridge/amd/amdk8/relatvie.lb
   /src/config/absolute.lb

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4131 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoImprovements for the coreboot v2 README:
Uwe Hermann [Fri, 17 Apr 2009 17:11:39 +0000 (17:11 +0000)]
Improvements for the coreboot v2 README:

 - Point to the 'Payloads' wiki page for more info.

 - Document (most of) the build requirements of v2.

 - Point to the wiki for build instructions (wiki needs more docs, though).

 - Mention QEMU for testing coreboot, also point to wiki page.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4130 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoUpdating documentation as I get ready to put v3-style startup in (which
Ronald G. Minnich [Fri, 17 Apr 2009 16:18:02 +0000 (16:18 +0000)]
Updating documentation as I get ready to put v3-style startup in (which
I have working in an early version in my tree).

Corrections welcome.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4129 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThere are two identical cfgfile rules in config.g. Remove one of them.
Myles Watson [Fri, 17 Apr 2009 16:11:24 +0000 (16:11 +0000)]
There are two identical cfgfile rules in config.g.  Remove one of them.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4128 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch allows you to add lines of the form
Myles Watson [Fri, 17 Apr 2009 13:43:46 +0000 (13:43 +0000)]
This patch allows you to add lines of the form

pci_rom PATH vendor_id = # device_id = #

to Config.lb files.  No more changing the ROM_SIZE to add an option ROM, and no more manual prepending.

Examples:

pci_rom ../ragexl.rom vendor_id = 0x1002 device_id = 0x4752
pci_rom ../nic.rom vendor_id = 0x1100 device_id = 0x4152

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4127 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd VIA CX700 support, plus VIA vt8454c reference board support.
Stefan Reinauer [Fri, 17 Apr 2009 08:37:18 +0000 (08:37 +0000)]
Add VIA CX700 support, plus VIA vt8454c reference board support.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4126 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis needed to be removed.
Ronald G. Minnich [Fri, 17 Apr 2009 02:40:20 +0000 (02:40 +0000)]
This needed to be removed.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4125 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFollowing patch flushes the instruction queue when we set PE=0. This is normally
Rudolf Marek [Thu, 16 Apr 2009 21:09:56 +0000 (21:09 +0000)]
Following patch flushes the instruction queue when we set PE=0. This is normally
done by FAR JMP, but here it is more tricky because we run at EIP>1MB. Many
thanks to Marc and Kevin to tell me how to fix it

The trick is to use 0x66 prefix (done with ljmpl) it will allow to jump in real
mode to any EIP addresses  ;)

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4124 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoI deleted mptable.c in my patch, but forgot to svn rm it.
Myles Watson [Thu, 16 Apr 2009 16:42:05 +0000 (16:42 +0000)]
I deleted mptable.c in my patch, but forgot to svn rm it.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4123 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agov2/src romfs->cbfs rename
Peter Stuge [Wed, 15 Apr 2009 21:40:08 +0000 (21:40 +0000)]
v2/src romfs->cbfs rename

romfs.c has been replaced by cbfs.c.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4121 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch cleans up mpspec.h and allows it to be included when
Myles Watson [Wed, 15 Apr 2009 21:25:21 +0000 (21:25 +0000)]
This patch cleans up mpspec.h and allows it to be included when
HAVE_MP_TABLE=0

It also removes the artifacts from the Asus m2v-mx_se that were
necessary before the change.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4120 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd -r|--remove option to force abuild to remove the output directory
Uwe Hermann [Wed, 15 Apr 2009 16:07:27 +0000 (16:07 +0000)]
Add -r|--remove option to force abuild to remove the output directory
after every board build, in order to save disk space if you don't need
the actual output files.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4119 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoSome coding style and consistency fixes (trivial).
Uwe Hermann [Wed, 15 Apr 2009 10:52:49 +0000 (10:52 +0000)]
Some coding style and consistency fixes (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4117 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agor4097 broke the tree and it remains unfixed :-(
Stefan Reinauer [Wed, 15 Apr 2009 06:00:01 +0000 (06:00 +0000)]
r4097 broke the tree and it remains unfixed :-(
Repeat: Cosmetic patches shall not break the tree for 20 revisions.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4116 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoEPIA-CN does not have any ACPI tables. Fixes manual and auto build here.
Peter Stuge [Tue, 14 Apr 2009 20:51:41 +0000 (20:51 +0000)]
EPIA-CN does not have any ACPI tables. Fixes manual and auto build here.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4115 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoutil/cbfstool/tools/rom-mk*->cbfs-mk* rename
Peter Stuge [Tue, 14 Apr 2009 19:48:32 +0000 (19:48 +0000)]
util/cbfstool/tools/rom-mk*->cbfs-mk* rename

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4114 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agov2/src romfs->cbfs rename
Peter Stuge [Tue, 14 Apr 2009 07:40:01 +0000 (07:40 +0000)]
v2/src romfs->cbfs rename

This also has the config tool changes in v2/util.

Rename romfs.[ch]->cbfs.[ch] and sed romfs->cbfs romtool->cbfstool ROMFS->CBFS

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4113 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix up the tree.
Stefan Reinauer [Tue, 14 Apr 2009 06:38:15 +0000 (06:38 +0000)]
fix up the tree.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4112 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoutil: romfs->cbfs rename
Peter Stuge [Tue, 14 Apr 2009 00:26:24 +0000 (00:26 +0000)]
util: romfs->cbfs rename

I noticed this before sed, but forgot to change it back after sed.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4111 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agov2/util: romfs -> cbfs rename
Peter Stuge [Tue, 14 Apr 2009 00:08:34 +0000 (00:08 +0000)]
v2/util: romfs -> cbfs rename

It's all sed here. romfs->cbfs, ROMFS->CBFS, romtool->cbfstool

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4110 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agov2/documentation: romfs -> cbfs rename
Peter Stuge [Tue, 14 Apr 2009 00:01:34 +0000 (00:01 +0000)]
v2/documentation: romfs -> cbfs rename

This is svn mv romfs.txt cbfs.txt and sed romfs->cbfs, ROMFS->CBFS along with
one manual change: CBFS_file->cbfs_file

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4109 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix the build. This error was introduced by change in acpi.c, the acpi_slp_type exist...
Rudolf Marek [Mon, 13 Apr 2009 21:42:49 +0000 (21:42 +0000)]
Fix the build. This error was introduced by change in acpi.c, the acpi_slp_type exists only conditionally.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Rudolf Marek <r.marek@assembler.cz>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4108 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix typo. Add missing copyright year.
Uwe Hermann [Mon, 13 Apr 2009 21:35:49 +0000 (21:35 +0000)]
Fix typo. Add missing copyright year.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4107 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoEmergency fix. Most targets now build.
Ronald G. Minnich [Mon, 13 Apr 2009 21:19:58 +0000 (21:19 +0000)]
Emergency fix. Most targets now build.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4106 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoI need to do uses HAVE_ACPI_RESUME for each board. Here we go.
Rudolf Marek [Mon, 13 Apr 2009 20:07:26 +0000 (20:07 +0000)]
I need to do uses HAVE_ACPI_RESUME for each board. Here we go.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Rudolf Marek <r.marek@assembler.cz>
It should fix the build break introduced in r4101

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4105 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThe wake_vec must be HAVE_ACPI_RESUME guarded because PPC uses -Werror on this file.
Rudolf Marek [Mon, 13 Apr 2009 18:44:06 +0000 (18:44 +0000)]
The wake_vec must be HAVE_ACPI_RESUME guarded because PPC uses -Werror on this file.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Self ack, trivial fix:
Acked-by: Rudolf Marek <r.marek@assembler.cz>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4104 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFollowing patch adds support for the ACPI resume on Asus M2V-MX SE. The ACPI
Rudolf Marek [Mon, 13 Apr 2009 18:37:17 +0000 (18:37 +0000)]
Following patch adds support for the ACPI resume on Asus M2V-MX SE. The ACPI
code just blinks the leds. The motherboard resources are use to reserve coreboot
used memory.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4103 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFollowing patch adds resume (exit from self refresh) support for AMD K8 revF
Rudolf Marek [Mon, 13 Apr 2009 18:34:35 +0000 (18:34 +0000)]
Following patch adds resume (exit from self refresh) support for AMD K8 revF
CPUs. It handles both type of erratas on those CPUs.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4102 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFollowing patch implements ACPI resume support for coreboot. The hardware main
Rudolf Marek [Mon, 13 Apr 2009 18:07:02 +0000 (18:07 +0000)]
Following patch implements ACPI resume support for coreboot. The hardware main
hook will come in separate patch perhaps.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4101 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFollowing patch adds support for resume on VT8237 based motherboards. The NB
Rudolf Marek [Mon, 13 Apr 2009 18:00:09 +0000 (18:00 +0000)]
Following patch adds support for resume on VT8237 based motherboards. The NB
part of this patch adds support for resume well NVRAM. In which DQS values are
stored.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4100 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFollowing patch adds necessary hooks and as well the compile time checks for
Rudolf Marek [Mon, 13 Apr 2009 17:57:44 +0000 (17:57 +0000)]
Following patch adds necessary hooks and as well the compile time checks for
ACPI suspend/resume.

The memory cleared now is just the coreboot memory not the low memory.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4099 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix the following errors:
Carl-Daniel Hailfinger [Mon, 13 Apr 2009 16:21:16 +0000 (16:21 +0000)]
Fix the following errors:

In file included from
src/mainboard/asus/a8v-e_se/cache_as_ram_auto.c:93:
src/northbridge/amd/amdk8/raminit.c: In function ‘sdram_set_spd_registers’:
src/northbridge/amd/amdk8/raminit.c:2123: error: implicit declaration of
function ‘activate_spd_rom’

In file included from
src/mainboard/asus/a8v-e_se/cache_as_ram_auto.c:101:
src/cpu/amd/model_fxx/init_cpus.c: In function ‘init_cpus’:
src/cpu/amd/model_fxx/init_cpus.c:319: error: implicit declaration of
function ‘soft_reset’

In file included from
src/mainboard/asus/m2v-mx_se/cache_as_ram_auto.c:98:
src/northbridge/amd/amdk8/raminit_f.c: In function ‘sdram_set_spd_registers’:
src/northbridge/amd/amdk8/raminit_f.c:2848: error: implicit declaration of
function ‘activate_spd_rom’

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4098 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch cleans up the calls to $CC in mainboard Config.lb files. They
Carl-Daniel Hailfinger [Sun, 12 Apr 2009 21:47:09 +0000 (21:47 +0000)]
This patch cleans up the calls to $CC in mainboard Config.lb files. They
now all have the same parameter order.

action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS)
-I$(TOP)/src -I. -nostdinc -nostdlib -fno-builtin -Wall -Os -c -S
$(MAINBOARD)/$(CACHE_AS_RAM_AUTO_C) -o $@"

The idea behind this parameter order is:
- *FLAGS at the beginning.
- Use a common set of *FLAGS.
- Include files and directories listed afterwards.
- nostdinc, nostdlib, no-builtin tell the compiler this is standalone
  code.
- Warnings. They do not influence source or compilation.
- Compilation strategy (small) and output mode (asm or binary).
- File to be compiled.
- Output name.
- $(DEBUG_CFLAGS) and -S are only used for asm output.

Other changes in this patch:

- src/supermicro/h8dme/Config.lb now uses $DEBUG_CFLAGS instead of
hardcoding the respective flags.

- $DEBUG_CFLAGS was added to asm outputting $CC calls:
supermicro/h8dme/Config.lb
lippert/roadrunner-lx/Config.lb

- $DISTRO_CFLAGS was added to some $CC calls in:
iwill/dk8_htx/Config.lb (CAR AP code)
supermicro/h8dmr/Config.lb (CAR AP code)
supermicro/h8dme/Config.lb (CAR AP code)
gigabyte/m57sli/Config.lb (CAR AP code)
gigabyte/ga_2761gxdk/Config.lb (CAR AP code)
amd/serengeti_cheetah_fam10/Config.lb (everywhere)
msi/ms7135/Config.lb (everywhere)
nvidia/l1_2pvv/Config.lb (CAR AP code)
-$CFLAGS was added to all $CC calls in:
amd/db800/Config.lb
amd/dbm690t/Config.lb
amd/norwich/Config.lb
amd/pistachio/Config.lb
amd/serengeti_cheetah/Config.lb
amd/serengeti_cheetah_fam10/Config.lb
arima/hdama/Config.lb
artecgroup/dbe61/Config.lb
asus/a8n_e/Config.lb
asus/a8v-e_se/Config.lb
asus/m2v-mx_se/Config.lb
broadcom/blast/Config.lb
digitallogic/msm800sev/Config.lb
gigabyte/ga_2761gxdk/Config.lb
gigabyte/m57sli/Config.lb
ibm/e325/Config.lb
ibm/e326/Config.lb
iei/pcisa-lx-800-r10/Config.lb
iwill/dk8_htx/Config.lb
iwill/dk8s2/Config.lb
iwill/dk8x/Config.lb
kontron/986lcd-m/Config.lb
lippert/roadrunner-lx/Config.lb
lippert/spacerunner-lx/Config.lb
msi/ms7135/Config.lb
msi/ms7260/Config.lb
msi/ms9185/Config.lb
msi/ms9282/Config.lb
newisys/khepri/Config.lb
nvidia/l1_2pvv/Config.lb
pcengines/alix1c/Config.lb
sunw/ultra40/Config.lb
supermicro/h8dme/Config.lb
supermicro/h8dmr/Config.lb
technexion/tim8690/Config.lb
tyan/s2735/Config.lb
tyan/s2850/Config.lb
tyan/s2875/Config.lb
tyan/s2880/Config.lb
tyan/s2881/Config.lb
tyan/s2882/Config.lb
tyan/s2885/Config.lb
tyan/s2891/Config.lb
tyan/s2892/Config.lb
tyan/s2895/Config.lb
tyan/s2912/Config.lb
tyan/s2912_fam10/Config.lb
tyan/s4880/Config.lb
tyan/s4882/Config.lb

- Use $@ wherever appropriate.

- Kill that evil CACHE_AS_RAM_AUTO_C variable.

- Trailing whitespace fixups on lines which were touched anyway.

We now only have 6 remaining different calls to $CC whereas before there
were 20.
If I am allowed to rename src/mainboard/kontron/986lcd-m/auto.c to
src/mainboard/kontron/986lcd-m/cache_as_ram_auto.c, we're down to 4
different calls.
If we can decide on the use of $CPU_OPT, we are down to 3 different
calls.

One additional point I'd like to clear up:
if ASSEMBLER_DEBUG
makedefine DEBUG_CFLAGS := -g -dA -fverbose-asm
end

"-dA -fverbose-asm" is only useful for asm output. For these flags,
DEBUG_CFLAGS is a total misnomer. What about calling them
DEBUG_ASMCFLAGS or somesuch?
"-g" should be controllable by a separate switch. It is useful even for
object code.

The following targets are broken by this patch because they contain
implicit declarations, but the error did not trigger due to missing
CFLAGS:
amd/serengeti_cheetah
asus/a8v-e_se
asus/m2v-mx_se
digitallogic/msm800sev
pcengines/alix1c
supermicro/h8dme
supermicro/h8dmr

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4097 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThe IT8712F needs to have the configuration bits changed to handle the power for
Rudolf Marek [Sun, 12 Apr 2009 18:01:55 +0000 (18:01 +0000)]
The IT8712F needs to have the configuration bits changed to handle the power for
memory correctly during suspend.s

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4096 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoBring S2912 and S2912_Fam10 Config.lb in line with each other.
Carl-Daniel Hailfinger [Sat, 11 Apr 2009 18:58:17 +0000 (18:58 +0000)]
Bring S2912 and S2912_Fam10 Config.lb in line with each other.

- Use $(CACHE_AS_RAM_AUTO_C) instead of cache_as_ram_auto.c
- Compile apc_auto.c with $(DISTRO_CFLAGS)
- Clean up whitespace

If anyone can explain the remaining differences in Config.lb which are
NOT caused by the K8/Fam10 switch, I'd be glad to hear them.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4095 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch fixes an edge case for K8 raminit. Specifically, it brings the code
Ward Vandewege [Sat, 11 Apr 2009 18:09:03 +0000 (18:09 +0000)]
This patch fixes an edge case for K8 raminit. Specifically, it brings the code
in line with the K10 code.

I was trying to use DDR2 800 (CL6) memory on an m57sli, but booting failed.
Marc Jones found this bug (thanks!), which fixes booting with this specific
memory. For the record, it was Crucial CT2KIT25664AA800.

I put the machine through a few days of use. It also succesfully passed a run
of http://people.redhat.com/dledford/memtest.shtml:

  $ ./memtest
  TEST_DIR:               /tmp
  SOURCE_FILE:            linux-2.6.29.1.tar.bz2
  NR_PASSES:              20
  MEGS_PER_COPY:          270
  NR_COPIES:              45
  PARALLEL:               no
  COMPRESS_RATIO:         5
  COMPRESS_FLAG:          j
  COMPRESS_PROG:          /bin/bzip2
  EXTRACT:                yes

  Creating comparison source...done.
  Starting test pass #1: unpacking, comparing, removing, done.
  Starting test pass #2: unpacking, comparing, removing, done.
  Starting test pass #3: unpacking, comparing, removing, done.
  Starting test pass #4: unpacking, comparing, removing, done.
  Starting test pass #5: unpacking, comparing, removing, done.
  Starting test pass #6: unpacking, comparing, removing, done.
  Starting test pass #7: unpacking, comparing, removing, done.
  Starting test pass #8: unpacking, comparing, removing, done.
  Starting test pass #9: unpacking, comparing, removing, done.
  Starting test pass #10: unpacking, comparing, removing, done.
  Starting test pass #11: unpacking, comparing, removing, done.
  Starting test pass #12: unpacking, comparing, removing, done.
  Starting test pass #13: unpacking, comparing, removing, done.
  Starting test pass #14: unpacking, comparing, removing, done.
  Starting test pass #15: unpacking, comparing, removing, done.
  Starting test pass #16: unpacking, comparing, removing, done.
  Starting test pass #17: unpacking, comparing, removing, done.
  Starting test pass #18: unpacking, comparing, removing, done.
  Starting test pass #19: unpacking, comparing, removing, done.
  Starting test pass #20: unpacking, comparing, removing, done.

Signed-off-by: Ward Vandewege <ward@gnu.org>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4094 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoKill remaining unneeded CAR/ROMCC if-blocks.
Carl-Daniel Hailfinger [Sat, 11 Apr 2009 14:51:49 +0000 (14:51 +0000)]
Kill remaining unneeded CAR/ROMCC if-blocks.

Lots of Config.lb files still have "if USE_DCACHE_RAM" sections although
USE_DCACHE_RAM is always set for them. Such checks are not only
pointless, they actively make the files hard to read.

A full abuild run confirmed that compilation did not change with this
patch applied.

The patch does not change whitespace of the remaining code to ease
review and svn blame.

With this change, it should be possible to have two or three Config.lb
variants in total (except the actual hardware config). Right now, some
Config.lb have comments, some don't, some have empty lines for better
readability, some don't, some have leading whitespace, some don't. This
is an utter mess and unifying these files would certainly reduce the
headaches I have when looking at them.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4093 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoMention a few more flash chip packages in README/manpage.
Uwe Hermann [Sat, 11 Apr 2009 13:59:00 +0000 (13:59 +0000)]
Mention a few more flash chip packages in README/manpage.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4092 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agomove architecture override before cross compiler detection, or the Sandpoint
Stefan Reinauer [Fri, 10 Apr 2009 23:02:48 +0000 (23:02 +0000)]
move architecture override before cross compiler detection, or the Sandpoint
skeleton will have get a cross compiler before it gets the architecture set
to SKIP. Pretty much build system internal, so self-acked.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4091 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd a note that 'modprobe msr' might be required.
Uwe Hermann [Fri, 10 Apr 2009 21:05:56 +0000 (21:05 +0000)]
Add a note that 'modprobe msr' might be required.
Remove trailing whitespace. Fix typos.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4090 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix typo.
Uwe Hermann [Fri, 10 Apr 2009 14:49:14 +0000 (14:49 +0000)]
Fix typo.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4089 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoVarious manpage / README fixes:
Uwe Hermann [Fri, 10 Apr 2009 14:41:29 +0000 (14:41 +0000)]
Various manpage / README fixes:

 - Improve description a bit, especially wrt chip packages and
   protocols.

 - Add some missing parameters to manpage option descriptions.

 - Remove long obsolete DoC support note.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4088 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1