coreboot.git
14 years agoprevent timer overflows in libpayload
Stefan Reinauer [Thu, 25 Mar 2010 18:53:20 +0000 (18:53 +0000)]
prevent timer overflows in libpayload

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@5292 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agomake keyboard reset driver generic (not pc keyboard driver dependent)
Stefan Reinauer [Thu, 25 Mar 2010 18:52:24 +0000 (18:52 +0000)]
make keyboard reset driver generic (not pc keyboard driver dependent)
so it can be used by usb, too

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@5291 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoCopy argument of -include as it's modified later.
Patrick Georgi [Thu, 25 Mar 2010 15:49:40 +0000 (15:49 +0000)]
Copy argument of -include as it's modified later.

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@5290 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoIt's really obj=, not O= (see toplevel Makefile)
Patrick Georgi [Thu, 25 Mar 2010 15:25:15 +0000 (15:25 +0000)]
It's really obj=, not O= (see toplevel Makefile)

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@5289 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoOne feature I've been really missing since we switched to
Stefan Reinauer [Thu, 25 Mar 2010 14:18:57 +0000 (14:18 +0000)]
One feature I've been really missing since we switched to
Kconfig is that after an abuild run you could cd to
coreboot-builds/mainboard_name and just run "make" to rebuild
that one target (and get a non-parallel build easily)

This small add-on to abuild brings that feature back.

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

14 years agoabuild should be using O=, not obj=
Stefan Reinauer [Wed, 24 Mar 2010 22:39:40 +0000 (22:39 +0000)]
abuild should be using O=, not obj=

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

14 years agoGet rid of type-punned pointer errors.
Myles Watson [Wed, 24 Mar 2010 22:02:53 +0000 (22:02 +0000)]
Get rid of type-punned pointer errors.

Defining AmlCode differently in different source files is a bit ugly...
Creating a void * to do the casting is not exactly beautiful either...

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

14 years agoSome keyboards need a longer timeout. Also increase error level, because a
Stefan Reinauer [Wed, 24 Mar 2010 21:24:17 +0000 (21:24 +0000)]
Some keyboards need a longer timeout. Also increase error level, because a
not-connected keyboard should normally not raise an error.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5285 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoDrop unneeded code that checks for CONFIG_ variables in
Stefan Reinauer [Wed, 24 Mar 2010 21:21:33 +0000 (21:21 +0000)]
Drop unneeded code that checks for CONFIG_ variables in
build_opt_tbl.

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

14 years agofix acpi dsdt copy on roda rk886ex
Stefan Reinauer [Wed, 24 Mar 2010 20:59:43 +0000 (20:59 +0000)]
fix acpi dsdt copy on roda rk886ex

thanks to Myles Watson for spotting 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@5283 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoSMM: remove hack that was needed back in oldconfig times.
Stefan Reinauer [Wed, 24 Mar 2010 16:45:46 +0000 (16:45 +0000)]
SMM: remove hack that was needed back in oldconfig times.

These days it even does the wrong thing (not using the .smmobj.o version of
vtxprintf.c and printk.c)
Also, SMM never needed libgcc, it's only in coreboot_ram for yabel/x86emu's
crazy math.

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

14 years agooops, forgot to cleanup extra output in bootblock creation for dependency patch
Stefan Reinauer [Wed, 24 Mar 2010 16:18:06 +0000 (16:18 +0000)]
oops, forgot to cleanup extra output in bootblock creation for dependency patch

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

14 years agodependency tracking for coreboot
Stefan Reinauer [Wed, 24 Mar 2010 15:51:48 +0000 (15:51 +0000)]
dependency tracking for coreboot

Obviously compile time increases slightly because more work has to be done, but
I'm sure the benefit of having to rm -rf build less often is worth it :-)

Other small changes:
* be a bit more verbose on some of the created files
* move -O2 from compiler rule into bootblock_romccflags
* drop rule needed for util/*.c -> build/*.o as x86emu no longer lives in util.

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

14 years agoCPPFLAGS and DEBUG_CFLAGS don't exist since Kconfig. Drop their remainders.
Stefan Reinauer [Wed, 24 Mar 2010 09:53:50 +0000 (09:53 +0000)]
CPPFLAGS and DEBUG_CFLAGS don't exist since Kconfig. Drop their remainders.

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

14 years agomahogany_fam10: rename apc_auto.c to ap_romstage.c like on all other boards
Stefan Reinauer [Tue, 23 Mar 2010 17:01:23 +0000 (17:01 +0000)]
mahogany_fam10: rename apc_auto.c to ap_romstage.c like on all  other boards
that have one.

Can we get rid of ap_romstage.c completely? It sounds like the wrong thing to
do.

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

14 years agoFix reading HT link offsets.
Maximilian Thuermer [Tue, 23 Mar 2010 15:58:29 +0000 (15:58 +0000)]
Fix reading HT link offsets.

pci_read_config32 overwrites the real value, use another variable for that.

Signed-off-by: Maximilian Thuermer <maximilian.thuermer@ziti.uni-heidelberg.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5277 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoUse coreboot-internal version of x86emu for the vgabios utility.
Stefan Reinauer [Tue, 23 Mar 2010 15:53:38 +0000 (15:53 +0000)]
Use coreboot-internal version of x86emu for the vgabios utility.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Joseph Smith <joe@settoplinux.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5276 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoPrepare for using coreboot x86emu in userspace utility "vgabios"
Stefan Reinauer [Tue, 23 Mar 2010 15:49:44 +0000 (15:49 +0000)]
Prepare for using coreboot x86emu in userspace utility "vgabios"
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Joseph Smith <joe@settoplinux.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5275 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agofix newly introduced printk_foo warnings..
Stefan Reinauer [Tue, 23 Mar 2010 13:23:40 +0000 (13:23 +0000)]
fix newly introduced printk_foo warnings..

Interesting enough, console_printk was only used in a single place and
duplicated a large part of console.h which is included in the same place.
Thus, just drop console_printk.c and we're one down with console complexity

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

14 years agoRemove the building warnings.
Zheng Bao [Tue, 23 Mar 2010 06:49:16 +0000 (06:49 +0000)]
Remove the building warnings.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5273 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove the building warnings.
Zheng Bao [Tue, 23 Mar 2010 06:46:01 +0000 (06:46 +0000)]
Remove the building warnings.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5272 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemoving build warning of sb600 & rs690.
Wang Qing Pei [Tue, 23 Mar 2010 06:25:55 +0000 (06:25 +0000)]
Removing build warning of sb600 & rs690.

Signed-off-by: Wang Qing Pei <wangqingpei@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5271 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix i82801dx_power_options() so CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL works...
Joseph Smith [Mon, 22 Mar 2010 23:10:53 +0000 (23:10 +0000)]
Fix i82801dx_power_options() so CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL works, and rewrite HPET code.
Signed-off-by: Joseph Smith <joe@settoplinux.org>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5270 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRevert my debugging patch that got committed by accident. Sorry.
Myles Watson [Mon, 22 Mar 2010 16:35:38 +0000 (16:35 +0000)]
Revert my debugging patch that got committed by accident.  Sorry.

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

14 years agoFix all the format string warnings.
Myles Watson [Mon, 22 Mar 2010 16:33:25 +0000 (16:33 +0000)]
Fix all the format string warnings.
Some other random warnings.

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

14 years agodrop some unused files and fix warnings on i945 based systems.
Stefan Reinauer [Mon, 22 Mar 2010 11:50:52 +0000 (11:50 +0000)]
drop some unused files and fix warnings on i945 based systems.

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

14 years agoprintk_foo -> printk(BIOS_FOO, ...)
Stefan Reinauer [Mon, 22 Mar 2010 11:42:32 +0000 (11:42 +0000)]
printk_foo -> printk(BIOS_FOO, ...)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5266 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agodrop dead code.
Stefan Reinauer [Sun, 21 Mar 2010 23:33:36 +0000 (23:33 +0000)]
drop dead code.

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

14 years agofix "make" after "rm -rf build"
Stefan Reinauer [Sun, 21 Mar 2010 22:35:58 +0000 (22:35 +0000)]
fix "make" after "rm -rf build"

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

14 years agoDon't abuse LDFLAGS and fix linking with -Wl,--as-needed.
Christian Ruppert [Sun, 21 Mar 2010 21:22:51 +0000 (21:22 +0000)]
Don't abuse LDFLAGS and fix linking with -Wl,--as-needed.

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

14 years agoI ran into a couple of errors while building a mahogany_fam10 target;
Ed Swierk [Fri, 19 Mar 2010 21:57:40 +0000 (21:57 +0000)]
I ran into a couple of errors while building a mahogany_fam10 target;
CONFIG_CAR_FAM10 was renamed some time ago to
CONFIG_NORTHBRIDGE_AMD_AMDFAM10, and l3Cache() is actually defined as
l3_cache().

Signed-off-by: Ed Swierk <eswierk@aristanetworks.com>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5262 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThe parameters of memset() should be
Zheng Bao [Fri, 19 Mar 2010 08:23:50 +0000 (08:23 +0000)]
The parameters of memset() should be
memset(addr, value, size), right?
It is an obvious bug created at r5201. I am wondering
why it doesnt trouble you. I took a quick look at other
files and didnt find other calling error.

Trailing white spaces are also deleted.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5261 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoGet rid of a few warnings:
Myles Watson [Fri, 19 Mar 2010 02:33:40 +0000 (02:33 +0000)]
Get rid of a few warnings:
1. Add some more prototypes to lib.h
2. Include console.h when not using romcc
3. Eliminate an unused function
4. Set a default for SSE2, since it is just for ramtest performance

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

14 years agoRemove remaining uses of
Patrick Georgi [Thu, 18 Mar 2010 20:58:41 +0000 (20:58 +0000)]
Remove remaining uses of
HAVE_FAILOVER_BOOT
HAVE_FALLBACK_BOOT
USE_FAILOVER_IMAGE
USE_FALLBACK_IMAGE

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

14 years agoRework boolean expression (DeMorgan and all) for
Patrick Georgi [Thu, 18 Mar 2010 16:46:50 +0000 (16:46 +0000)]
Rework boolean expression (DeMorgan and all) for
better readability.
Also remove failover.c files in mainboards, as they're
not used anymore (and useless, too)

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

14 years agoRemove fallback/normal handling in mainboards'
Patrick Georgi [Thu, 18 Mar 2010 16:18:58 +0000 (16:18 +0000)]
Remove fallback/normal handling in mainboards'
romstage.c like r5255 did for failover/fallback/normal
mainboards.

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

14 years agotrivial. Delelte double blank line.
Zheng Bao [Thu, 18 Mar 2010 05:57:32 +0000 (05:57 +0000)]
trivial. Delelte double blank line.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Zheng Bao <zheng.bao@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5256 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove failover/fallback/normal handling in mainboards'
Patrick Georgi [Wed, 17 Mar 2010 22:44:39 +0000 (22:44 +0000)]
Remove failover/fallback/normal handling in mainboards'
romstage.c. That's newconfig stuff.

1. In failover_process(), I removed the fallback/normal selection logic
and kept the remaining hardware init in. The if-clauses' conditions are
reverted to match.
Remove #if failover||fallback guard.

2. Change cache_as_ram_main() to first call failover_process, then
real_main unconditionally.

3. Move failover_process's code to the beginning of real_main, remove
failover_process and its call in cache_as_ram_main.

4. Remove cache_as_ram_main, rename real_main to cache_as_ram_main (same
arguments, so no problem with that)

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@5255 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agomore warnings gone...
Stefan Reinauer [Wed, 17 Mar 2010 22:09:26 +0000 (22:09 +0000)]
more warnings gone...
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5254 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agorevert the faulty part of r5252
Stefan Reinauer [Wed, 17 Mar 2010 22:08:51 +0000 (22:08 +0000)]
revert the faulty part of r5252

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

14 years agofix HPET on some ICH southbridges
Stefan Reinauer [Wed, 17 Mar 2010 17:50:48 +0000 (17:50 +0000)]
fix HPET on some ICH southbridges

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

14 years agotrivial warning fixes, mostly for ACPI code
Stefan Reinauer [Wed, 17 Mar 2010 04:40:15 +0000 (04:40 +0000)]
trivial warning fixes, mostly for ACPI code

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

14 years agodrop shadow variable from hypertransport code.
Stefan Reinauer [Wed, 17 Mar 2010 04:38:22 +0000 (04:38 +0000)]
drop shadow variable from hypertransport code.

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

14 years agoActually enable HPET
Stefan Reinauer [Wed, 17 Mar 2010 04:37:52 +0000 (04:37 +0000)]
Actually enable HPET
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5249 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoClean up warnings in yabel vbe code. No more warnings on the IP1000
Stefan Reinauer [Wed, 17 Mar 2010 04:04:20 +0000 (04:04 +0000)]
Clean up warnings in yabel vbe code. No more warnings on the IP1000

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

14 years agoclean up shadow variables in jpeg decoder.
Stefan Reinauer [Wed, 17 Mar 2010 04:03:22 +0000 (04:03 +0000)]
clean up shadow variables in jpeg decoder.

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

14 years agofix minor warnings in RTC code when HAVE_OPTION_TABLE is disabled.
Stefan Reinauer [Wed, 17 Mar 2010 03:44:45 +0000 (03:44 +0000)]
fix minor warnings in RTC code when HAVE_OPTION_TABLE is disabled.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5246 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agobug fix for IOAPIC on i82801dx.
Stefan Reinauer [Wed, 17 Mar 2010 03:40:23 +0000 (03:40 +0000)]
bug fix for IOAPIC on i82801dx.

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

14 years agoThis patch fixes up the i82801dx_lpc.c code post transition.
Joseph Smith [Wed, 17 Mar 2010 03:37:18 +0000 (03:37 +0000)]
This patch fixes up the i82801dx_lpc.c code post transition.

Boot Tested (bootlog attached)

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

14 years agoThis is kind of a pre CAR patch to properly allocate "shared" graphics memory
Joseph Smith [Wed, 17 Mar 2010 03:18:29 +0000 (03:18 +0000)]
This is kind of a pre CAR patch to properly allocate "shared" graphics memory
area.

CONFIG_GFXUMA is used in src/cpu/x86/mtrr/mtrr.c which is called by the cpu.

Attached is a revised patch which works well.

Signed-off-by: Joseph Smith <joe@settoplinux.org>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
See boot snips below:

Root Device assign_resources, bus 0 link: 0
8MB IGD UMA
Available memory: 581632KB
PCI_DOMAIN: 0000 assign_resources, bus 0 link: 0
----------------------------
Adding high table area
Adding UMA memory area
coreboot memory table:
 0. 0000000000000000-0000000000000fff: CONFIGURATION TABLES
 1. 0000000000001000-000000000009ffff: RAM
 2. 0000000000100000-00000000237effff: RAM
 3. 00000000237f0000-00000000237fffff: CONFIGURATION TABLES
 4. 0000000023800000-0000000023ffffff: RESERVED

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

14 years agomore warning fixes.
Stefan Reinauer [Wed, 17 Mar 2010 03:14:54 +0000 (03:14 +0000)]
more warning fixes.

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

14 years agofix HPET base addressed.
Stefan Reinauer [Wed, 17 Mar 2010 03:14:28 +0000 (03:14 +0000)]
fix HPET base addressed.

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

14 years agoThe SB600 also has the BootFailTimer. We should disable it,
Zheng Bao [Wed, 17 Mar 2010 03:10:39 +0000 (03:10 +0000)]
The SB600 also has the BootFailTimer. We should disable it,
otherwise it will keeps reboot. The comment was also added in
detail to make less confusing when we debug SB600/SB700.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5240 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoremove more warnings, and fix some boards (watchdog.h)
Stefan Reinauer [Wed, 17 Mar 2010 02:48:24 +0000 (02:48 +0000)]
remove more warnings, and fix some boards (watchdog.h)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5239 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFrom Keith Hui:
Keith Hui [Wed, 17 Mar 2010 02:15:07 +0000 (02:15 +0000)]
From Keith Hui:

This patch implements a full SDRAM buffer strength programming algorithm in
set_dram_buffer_strength(), checked against my P2B-LS factory BIOS. With this
in place, I now have 133MHz (!) stability with three 256MB PC133 modules, and
can boot Fedora 11 all the way to the init daemon (actually upstart, but that's
another story). Not to login prompt yet. We'll find out why later.

This again assumes a 4-DIMM board because that's all I have. I need someone
with a 3-DIMM board to test it.

As a bonus, there's a big comment block within that illustrates the algorithm.
:-)

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

14 years agofix dell s1850, ROMCC didn't seem to like SSE2 memtest here.
Stefan Reinauer [Wed, 17 Mar 2010 02:09:12 +0000 (02:09 +0000)]
fix dell s1850, ROMCC didn't seem to like SSE2 memtest here.

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

14 years agofix a couple of warnings
Stefan Reinauer [Wed, 17 Mar 2010 01:51:11 +0000 (01:51 +0000)]
fix a couple of warnings

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

14 years agoclean some more files in make clean
Stefan Reinauer [Wed, 17 Mar 2010 01:50:15 +0000 (01:50 +0000)]
clean some more files in make clean
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5235 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoremove warnings from cs5530 driver. (trivial)
Stefan Reinauer [Wed, 17 Mar 2010 01:22:01 +0000 (01:22 +0000)]
remove warnings from cs5530 driver. (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@5234 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agomake clean: delete failover.inc and romstage.inc, drop auto.inc (obsolete)
Stefan Reinauer [Wed, 17 Mar 2010 01:18:14 +0000 (01:18 +0000)]
make clean: delete failover.inc and romstage.inc, drop auto.inc (obsolete)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5233 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agodrop unused variable
Stefan Reinauer [Wed, 17 Mar 2010 01:09:58 +0000 (01:09 +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@5232 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoSource all Kconfig files for Intel® CPU models..
Myles Watson [Wed, 17 Mar 2010 00:55:39 +0000 (00:55 +0000)]
Source all Kconfig files for Intel® CPU models..

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

14 years agoCatch non-static arrays in romcc. Not allowed.
Eric W. Biederman [Wed, 17 Mar 2010 00:23:34 +0000 (00:23 +0000)]
Catch non-static arrays in romcc. Not allowed.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5230 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agopci drivers should be const.
Stefan Reinauer [Tue, 16 Mar 2010 23:33:29 +0000 (23:33 +0000)]
pci drivers should be const.

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

14 years agoit was reason for workaround rules already, and it's somewhat ugly:
Stefan Reinauer [Tue, 16 Mar 2010 23:07:29 +0000 (23:07 +0000)]
it was reason for workaround rules already, and it's somewhat ugly:
util/x86emu is the only part of coreboot that is linked into coreboot
itself that lives in util/.
It's not a utility and it does not really belong where it lives.

---> svn mv util/x86emu src/devices/oprom

plus necessary Makefile changes to get it building again

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

14 years agoLeft over strip_quotes definition. Top level Makefile
Patrick Georgi [Tue, 16 Mar 2010 19:23:17 +0000 (19:23 +0000)]
Left over strip_quotes definition. Top level Makefile
already provides this.

Thanks Myles for catching this.

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@5227 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoStrip quotes from COREBOOT_ROM_DEPENDENCIES
Patrick Georgi [Tue, 16 Mar 2010 19:01:32 +0000 (19:01 +0000)]
Strip quotes from COREBOOT_ROM_DEPENDENCIES
Macro-ify stripping quotes

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@5226 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoImprove dependency tracking for coreboot.rom
Patrick Georgi [Tue, 16 Mar 2010 16:59:03 +0000 (16:59 +0000)]
Improve dependency tracking for coreboot.rom
Improve handling of problems while building coreboot.rom

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

14 years agoVarious changes to the buildsystem:
Patrick Georgi patrick.georgi [Tue, 16 Mar 2010 12:01:13 +0000 (12:01 +0000)]
Various changes to the buildsystem:
- Single instance of the CC build rule in Makefile, instantiated as
necessary

- Remove manual static.o and option_table.o rules, they're now covered
by those instances of the CC build rule

- Normalize object file paths, so it can be $(obj)/option_table.o
instead of $(obj)/arch/i386/../../option_table.o now

- Add -pipe to compiler flags. It might be detrimental on rare scenarios
(building with extremly high disk bandwidth, eg. RAM disk), but it
significantly helps on win32 (which seems to cache less aggressively
than most unix-alikes)

- Silence stderr on hostname and domainname invocations (cosmetic fix
for cygwin)

- Test for -Wa,--divide functionality of the target compiler (taken from
abuild). It might be possible to remove most patches in crossgcc with that.

- Report build of failover.inc and romstage.inc

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

14 years agoDelete Config.lb in new southbridge folders.
Zheng Bao [Tue, 16 Mar 2010 02:02:26 +0000 (02:02 +0000)]
Delete Config.lb in new southbridge folders.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5223 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd entries of RS780, SB700, Mahogany, Mahogany_fam10 into the
Zheng Bao [Tue, 16 Mar 2010 01:59:28 +0000 (01:59 +0000)]
Add entries of RS780, SB700, Mahogany, Mahogany_fam10 into the
Makefile and Kconfig.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5222 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThe code can run on the Mahogany board, which is one of sample boards
Zheng Bao [Tue, 16 Mar 2010 01:53:10 +0000 (01:53 +0000)]
The code can run on the Mahogany board, which is one of sample boards
made by AMD. Its major features are:
 CPU:
  * AMD AM2+
  * AMD Athlon 64 x2
  * AMD Athlon 64 FX
  * AMD Athlon 64
  * AMD Sempron CPUs
 System Chipset:
  * RS780E
  * SB700
 On Board Chipset:
  * BIOS - SPI
  * Azalia CODEC - Realtek ALC888
  * LPC SuperIO - ITE8718F(GX).
  * LAN - REALTEK 8111C
  * TPM - SLB9635TT1.2
 Main Memory:
  * DDR II * 4 (Max 4GB)
 Expansion Slots:
  * PCI Express X16 slot*2 (PCI-E X8 Bus)
  * PCI Express X4 Slot*1
 Intersil PWM:
  * Controller - Intersil 6323

Note:
1. The only difference to mahogany is the CPU is changed to K8 family 10.
2. The main structure of the code is based on
   serengeti_cheetah_fam10. I am a rookie to fam10. I am still
   confused about CONFIG_HT_CHAIN_UNITID_BASE and
   CONFIG_HT_CHAIN_END_UNITID_BASE. I set them as the way dbm690t
   does.  And I have to modify the some fam10 code (see the patch
   ht_chain_unitid_base.patch). I dont know how to solve this. Please
   help.
   Updated findings: In h3finit.c, the code goes the AMD_CB_ManualBUIDSwapList().
   The swaplist is {0x00, 0x00, 0xFF, 0x00, 0xFF}. I am trying to find the meaning
   of the list. The amdht wrapper needs to modify definitely.
3. With fam10 processor, the HT link can work in HT3.
4. The ACPI _PSS table is set staticly. The auto configuaration
   process doesnt seem to work correctly.
5. Currently the fam10 code in coreboot doesn't support DDR3. If you
   happen to get a board with DDR3 and you don't have the patience to wait,
   please find another board with DDR2.
6. It will take "Uncompressing image to RAM" about 1 minute. I know it is a
   issue for a long time. I disable the compressing currently. When the problem
   is fixed, we can re-enable it.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5221 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years ago1. Features of mahogany.
Zheng Bao [Tue, 16 Mar 2010 01:42:50 +0000 (01:42 +0000)]
1. Features of mahogany.
The code can run on the Mahogany board, which is one of sample boards
made by AMD. Its major features are:
 CPU (only K8 system):
  * AMD AM2+
  * AMD Athlon 64 x2
  * AMD Athlon 64 FX
  * AMD Athlon 64
  * AMD Sempron CPUs
 System Chipset:
  * RS780E
  * SB700
 On Board Chipset:
  * BIOS - SPI
  * Azalia CODEC - Realtek ALC888
  * LPC SuperIO - ITE8718F(GX).
  * LAN - REALTEK 8111C
  * TPM - SLB9635TT1.2
 Main Memory:
  * DDR II * 4 (Max 4GB)
 Expansion Slots:
  * PCI Express X16 slot*2 (PCI-E X8 Bus)
  * PCI Express X4 Slot*1
 Intersil PWM:
  * Controller - Intersil 6323

2. The ACPI feature is already added. I suggest that firstly we can test
the board without the ACPI by setting the HAVE_ACPI_TABLE as 0.
With Rev F processor, the HT link can only work in HT1, whose max
frequency is 1GHz.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5220 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFeatures supported in RS780 code:
Zheng Bao [Tue, 16 Mar 2010 01:41:14 +0000 (01:41 +0000)]
Features supported in RS780 code:
  * PCIe initialization.
  * Internal Graphics initialization.
  * HT Link initialization. It works in HT1 or HT3 mode.

Note:
1. I tried to add the description of every step to the code. For example,
   if it is made based on rpr, section 2.4.5, I will pasted the words
   from 2.4.5 to the c code. But the document I worked with might be
   different with the most updated one. A new section has been added and
   the 2.4.5 might be changed to 2.5.5. That migh lead to confusing. I
   correct every comment if I met one. But I have to confess that I am so
   reluctant to find out everyone. I believe it will be correct in the long
   run.
2. The interanl graphics part is done by Libo Feng <libo.feng@amd.com>.
3. There is a conflict between RPR and our CIM code. Please see the comment in
   switching_gppsb_configurations in rs780_pcie.c.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5219 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFeatures supported in SB700 code:
Zheng Bao [Tue, 16 Mar 2010 01:38:54 +0000 (01:38 +0000)]
Features supported in SB700 code:
  * SATA initialization.
  * USB initialization.
  * HDA initialization.
  * LPC initialization.
  * IDE initialization.
  * SMBUS initialization.

Note:
1. I tried to add the description of every step to the code. For example,
   if it is made based on rpr, section 2.4.5, I will pasted the words
   from 2.4.5 to the c code. But the document I worked with might be
   different with the most updated one. A new section has been added and
   the 2.4.5 might be changed to 2.5.5. That migh lead to confusing. I
   correct every comment if I met one. But I have to confess that I am so
   reluctant to find out everyone. I believe it will be correct in the long
   run.
2. I only test the SATA port 0-3. The ports 4, 5 are "PATA emulations".
   I am confused about it.
3. This patch is not only about SB700. Actually it should be
   SB7x0. But I dont think it is nice to change everything to
   SB7x0. It is ugly, isn't it. As far as I know, they all use the
   same code with revision checking. If you guys think it is
   appropriate, please modify it to sb7x0.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5218 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years ago1. This patch is about the pci header of RS780 and SB700. It is made
Zheng Bao zheng.bao [Tue, 16 Mar 2010 01:36:21 +0000 (01:36 +0000)]
1. This patch is about the pci header of RS780 and SB700. It is made
   seperatedly because both RS780 and SB700 will modify the pci_ids.h. It
   maybe will cause conflict if the sequence the patches are applied is
   different with the one they are created.
2. Dev 0-10 of RS780 has AMD's Vendor ID. So we think it is better to
   define the Device ID as XXX_AMD_RS780_XXX. Does anyone think it is
   better to move this definition to the AMD zone? That will split the
   RS780 into two parts. Is it inappropriate?

Signed-off-by: Zheng Bao <zheng.bao@amd.com
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5217 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMake CLANG selectable in Kconfig
Patrick Georgi [Tue, 16 Mar 2010 01:17:19 +0000 (01:17 +0000)]
Make CLANG selectable in Kconfig

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@5216 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis patch is what I needed to compile coreboot with LLVM.
Stefan Reinauer [Tue, 16 Mar 2010 01:02:18 +0000 (01:02 +0000)]
This patch is what I needed to compile coreboot with LLVM.

- call va_* directly if coreboot is running on GCC so we don't need
  to maintain hacks to get to stdarg.h
- only define LIBGCC_FILE_NAME if it's an absolute path. GCC and LLVM
  just print "libgcc.a" if the file is not there.

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

14 years agoback out r5212 and r5210; Follow the thread of
Stefan Reinauer [Tue, 16 Mar 2010 00:58:36 +0000 (00:58 +0000)]
back out r5212 and r5210; Follow the thread of
http://www.coreboot.org/pipermail/coreboot/2010-March/056501.html
for the details.

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

14 years agoCreate a new build.h on every make call; this makes sure it contains a
Stefan Reinauer [Mon, 15 Mar 2010 13:35:19 +0000 (13:35 +0000)]
Create a new build.h on every make call; this makes sure it contains a
valid compiler signature and time stamp. Since we maintain correct build.h
dependencies in the source code we can also drop "prepare2"

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

14 years agoUse copy_triple only on non-flattened nodes.
Patrick Georgi [Mon, 15 Mar 2010 10:32:59 +0000 (10:32 +0000)]
Use copy_triple only on non-flattened nodes.

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@5212 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd an AM2R2 entry in to the src/arch/i386/Makefile.inc.
Zheng Bao [Mon, 15 Mar 2010 10:04:06 +0000 (10:04 +0000)]
Add an AM2R2 entry in to the src/arch/i386/Makefile.inc.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5211 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix segfault of romcc when complex assignment operators
Patrick Georgi [Sun, 14 Mar 2010 22:20:57 +0000 (22:20 +0000)]
Fix segfault of romcc when complex assignment operators
were applied to non-trivial LHSs, eg.  c[4] |= 1;

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@5210 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMove deprecated Kconfig options to their own file,
Patrick Georgi [Sun, 14 Mar 2010 21:31:05 +0000 (21:31 +0000)]
Move deprecated Kconfig options to their own file,
so it's clear that they should be gone.
More can (and should) be added, but this is a start.

Of course, eliminating the uses of the flags (and then
the flags themselves) that are in Kconfig.deprecated_options
is a noble task for the future :-)

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@5209 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd scan-build support to the build system.
Patrick Georgi [Sun, 14 Mar 2010 21:25:03 +0000 (21:25 +0000)]
Add scan-build support to the build system.
When configured in Kconfig, just running "make"
calls scan-build as appropriate (however, it does not
check for the presence of scan-build)

The target directory for the scan-build report is configurable
and defaults to the scan-build default of /tmp/scan-build-$date-$num

abuild is adapted to properly run scanbuild when ran
with the -sb option.

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@5208 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoICH4 update, fix ATA init, drop SATA (chipset doesn't have SATA)
Stefan Reinauer [Sun, 14 Mar 2010 17:01:08 +0000 (17:01 +0000)]
ICH4 update, fix ATA init, drop SATA (chipset doesn't have SATA)
fix some PCI IDs, enable USB bus mastering, add some license headers, ...

LPC code needs another look, but I think we're getting there.

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

14 years agoFix llshell
Stefan Reinauer [Sat, 13 Mar 2010 22:07:15 +0000 (22:07 +0000)]
Fix llshell

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@5206 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoUse CPU_INTEL_SLOT_1 for Slot 1 boards (trivial).
Uwe Hermann [Sat, 13 Mar 2010 20:36:11 +0000 (20:36 +0000)]
Use CPU_INTEL_SLOT_1 for Slot 1 boards (trivial).

This fixes a longstanding TODO item.

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@5205 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd SDRAMPWR_4DIMM Kconfig option (not user-visible in menuconfig).
Keith Hui [Sat, 13 Mar 2010 20:16:48 +0000 (20:16 +0000)]
Add SDRAMPWR_4DIMM Kconfig option (not user-visible in menuconfig).

Each Intel 440BX board should select this option if it has 4 DIMM
slots on the PCB, and _not_ select it (it defaults to 'n') if it
has 3 DIMMs on the PCB.

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

14 years agoFix supermicro/h8qme_fam10 by enabling SPD ROM properly.
Knut Kujat [Sat, 13 Mar 2010 12:54:58 +0000 (12:54 +0000)]
Fix supermicro/h8qme_fam10 by enabling SPD ROM properly.
Also configure GPIOs so the power LED is working.
Some whitespace cleanups (but by no means comprehensive)

Signed-off-by: Knut Kujat <knuku@gap.upv.es>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5203 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoReplace spaces with tabs. Trivial.
Myles Watson [Thu, 11 Mar 2010 22:12:10 +0000 (22:12 +0000)]
Replace spaces with tabs.  Trivial.

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

14 years agoReplace clear_memory with memset.
Myles Watson [Thu, 11 Mar 2010 21:34:27 +0000 (21:34 +0000)]
Replace clear_memory with memset.
Replace set_init_ram_access with the call to set_var_mtrr.
Remove unused #include statments.

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

14 years agoThe following patch implements Opteron Fam 10 rev D (aka Istanbul)
Arne Georg Gleditsch [Wed, 10 Mar 2010 03:43:05 +0000 (03:43 +0000)]
The following patch implements Opteron Fam 10 rev D (aka Istanbul)
support for coreboot.  I have not updated MAX_CPUS for all fam10
mainboards, but it might make sense to multiply those by 1.5.

Signed-off-by: Arne Georg Gleditsch <arne.gleditsch@numascale.com>
I assume the line
pci_write_config32(NODE_PCI(nodeid, 0), 0x168, dword);
should be put outside the loop.

Everything seems to be fine. I don't have Istanbul to test. I have
read every changes and they all look good.

Acked-by: Zheng Bao <zheng.bao@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5200 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agosb600 has problems with the virtual wire mode setup in setup_ioapic(). It causes...
Marc Jones [Tue, 9 Mar 2010 21:51:31 +0000 (21:51 +0000)]
sb600 has problems with the virtual wire mode setup in setup_ioapic(). It causes problems when interrupts are enabled (specifically timer).
Previously the sb600 setup was equivalent to clear_ioapic(), so that is what we will do for now.

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

14 years agoRemove Kconfig entries that disable
Patrick Georgi [Mon, 8 Mar 2010 23:44:30 +0000 (23:44 +0000)]
Remove Kconfig entries that disable
WAIT_BEFORE_CPUS_INIT. It's disabled by default
(see src/cpu/x86/Kconfig)

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

14 years agoSet options to make AMD CAR code compile correctly,
Arne Georg Gleditsch [Mon, 8 Mar 2010 23:38:43 +0000 (23:38 +0000)]
Set options to make AMD CAR code compile correctly,
and increase MAX_CPUS to aid support 6-core CPUs.

Signed-off-by: Arne Georg Gleditsch <arne.gleditsch@numascale.com>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5197 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoTrivial fix, use correct define.
Mathias Krause [Mon, 8 Mar 2010 13:08:24 +0000 (13:08 +0000)]
Trivial fix, use correct define.

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

14 years agoMore readable recursive descent macro in Makefile
Patrick Georgi [Sat, 6 Mar 2010 21:18:43 +0000 (21:18 +0000)]
More readable recursive descent macro in Makefile

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@5195 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years ago440BX: Do not hardcode DIMM number + size anymore.
Keith Hui [Sat, 6 Mar 2010 18:16:25 +0000 (18:16 +0000)]
440BX: Do not hardcode DIMM number + size anymore.

The code currently assumes a 4-DIMM-slots board, this will be fixed soon.

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

14 years agoAdd support for the 0x06B1 CPU ID for Celeron (Tualatin).
Keith Hui [Sat, 6 Mar 2010 16:19:11 +0000 (16:19 +0000)]
Add support for the 0x06B1 CPU ID for Celeron (Tualatin).

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