coreboot.git
14 years agoSigned-off-by: Rudolf Marek <r.marek@assembler.cz>
Rudolf Marek [Mon, 5 Apr 2010 19:47:34 +0000 (19:47 +0000)]
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Add Asrock 939a785gmh motherboard. The ACPI needs more cleanup, could be done when cleaning
the Mahagony board. The SidePort mode does not work because AMD hardcoded memory type in rs780_gfx.c
The UMA is enabled instead. The board boots, network and int VGA works, IDE too.

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

14 years agoAdd RS785G, looks like it works although it is RV620.
Rudolf Marek [Mon, 5 Apr 2010 19:21:18 +0000 (19:21 +0000)]
Add RS785G, looks like it works although it is RV620.

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

14 years agodevice_t wants device/device.h
Stefan Reinauer [Sat, 3 Apr 2010 15:41:27 +0000 (15:41 +0000)]
device_t wants device/device.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@5355 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agono need to udelay()
Stefan Reinauer [Sat, 3 Apr 2010 14:19:22 +0000 (14:19 +0000)]
no need to udelay()

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

14 years agoremove more warnings.
Stefan Reinauer [Sat, 3 Apr 2010 13:33:01 +0000 (13:33 +0000)]
remove more 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@5353 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoremove more warnings
Stefan Reinauer [Sat, 3 Apr 2010 12:41:41 +0000 (12:41 +0000)]
remove more warnings
rename amd64_main to stage1_main..
copy src/mainboard/via/vt8454c/debug.c to src/lib/debug.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@5352 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd noreturn attribute to die() in romcc.
Stefan Reinauer [Sat, 3 Apr 2010 00:03:07 +0000 (00:03 +0000)]
Add noreturn attribute to die() in romcc.
This makes life a lot easier for static analyzers such as scan-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@5351 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoremove more warnings.
Stefan Reinauer [Fri, 2 Apr 2010 22:31:35 +0000 (22:31 +0000)]
remove more 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@5350 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agooops, sorry, overlapping work
Stefan Reinauer [Fri, 2 Apr 2010 22:13:27 +0000 (22:13 +0000)]
oops, sorry, overlapping work
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5349 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoremove some more warnings
Stefan Reinauer [Fri, 2 Apr 2010 22:11:20 +0000 (22:11 +0000)]
remove some more 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@5348 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix console prototypes for non-romcc boards.
Myles Watson [Fri, 2 Apr 2010 21:39:12 +0000 (21:39 +0000)]
Fix console prototypes for non-romcc boards.

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

14 years agoFix includes for showallroutes.
Myles Watson [Fri, 2 Apr 2010 20:14:21 +0000 (20:14 +0000)]
Fix includes for showallroutes.

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

14 years agoThe error message is misleading, even for a SPEW, because
Stefan Reinauer [Fri, 2 Apr 2010 16:30:25 +0000 (16:30 +0000)]
The error message is misleading, even for a SPEW, because
the slot is empty, it's NOT a bad ID (and the message is
more confusing than helpful even in SPEW)

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

14 years ago- get rid of ASM_CONSOLE_LOGLEVEL except in two assembler files.
Stefan Reinauer [Thu, 1 Apr 2010 09:50:32 +0000 (09:50 +0000)]
- get rid of ASM_CONSOLE_LOGLEVEL except in two assembler files.
- start naming all versions of post code output "post_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@5344 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoConsolidate ifdefs in src/lib/cbmem.c for readability.
Myles Watson [Wed, 31 Mar 2010 14:57:55 +0000 (14:57 +0000)]
Consolidate ifdefs in src/lib/cbmem.c for readability.

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

14 years agoDrop \r\n and \n\r as both print_XXX and printk now do this internally.
Stefan Reinauer [Wed, 31 Mar 2010 14:47:43 +0000 (14:47 +0000)]
Drop \r\n and \n\r as both print_XXX and printk now do this internally.
Only some assembler files still have \r\n ... Can we move that part to C
completely?

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

14 years agoThis patch drops arch/i386/lib/console.c and arch/i386/lib/console_print.c and
Stefan Reinauer [Wed, 31 Mar 2010 14:34:40 +0000 (14:34 +0000)]
This patch drops arch/i386/lib/console.c and arch/i386/lib/console_print.c and
makes include/console/console.h and console/console.c usable both in
__PRE_RAM__ and coreboot_ram stages.

While debugging this, I removed an indirection from the e7520 ram init code
(same as we did on a couple of other chipsets, removes some register pressure
  from romcc)

Also, drop remainders of CONFIG_USE_INIT (except the one odd piece of dead code
in cache_as_ram.inc)

Then some ap_romstage.c fixes, at least the nvidia/l1_2pvv compiled for me with
CONFIG_AP_CODE_IN_CAR set in Kconfig which it did not before.

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

14 years agomini part of the patch on the mailing list to fix the boards again
Stefan Reinauer [Wed, 31 Mar 2010 00:06:12 +0000 (00:06 +0000)]
mini part of the patch on the mailing list to fix the boards 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@5340 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agono USE_INIT
Stefan Reinauer [Tue, 30 Mar 2010 22:21:06 +0000 (22:21 +0000)]
no USE_INIT
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5339 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agodrop USE_INIT should be USE_PRINTK_IN_CAR here.
Stefan Reinauer [Tue, 30 Mar 2010 22:12:59 +0000 (22:12 +0000)]
drop USE_INIT should be USE_PRINTK_IN_CAR here.
uint32_t should be u32
DEBUG_RAM_SETUP was failing on some northbridges
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5338 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agothat version of console_tx_byte is private.
Stefan Reinauer [Tue, 30 Mar 2010 22:08:48 +0000 (22:08 +0000)]
that version of console_tx_byte is private.

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

14 years agofix some amd k8 warnings
Stefan Reinauer [Tue, 30 Mar 2010 22:03:10 +0000 (22:03 +0000)]
fix some amd k8 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@5336 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoget coreboot_ap memory training in cache mechanism in place. Didn't work since
Stefan Reinauer [Tue, 30 Mar 2010 21:52:05 +0000 (21:52 +0000)]
get coreboot_ap memory training in cache mechanism in place. Didn't work since
Kconfig (needs more patches to ap_romstage.c but this is a first step)

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

14 years agofix some southbridge warnings (trivial)
Stefan Reinauer [Tue, 30 Mar 2010 21:48:23 +0000 (21:48 +0000)]
fix some southbridge warnings (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@5334 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years ago- drop unneeded Makefile.inc
Stefan Reinauer [Tue, 30 Mar 2010 21:47:10 +0000 (21:47 +0000)]
- drop unneeded Makefile.inc
- drop ap_romstage from Fam10 boards, the mechanism was never used on Fam10

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

14 years agoindent mptable.c
Stefan Reinauer [Tue, 30 Mar 2010 21:43:15 +0000 (21:43 +0000)]
indent mptable.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@5332 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agodrop USE_INIT from mainboard Kconfig files, it's already set in src/Kconfig
Stefan Reinauer [Tue, 30 Mar 2010 21:41:33 +0000 (21:41 +0000)]
drop USE_INIT from mainboard Kconfig files, it's already set in src/Kconfig

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

14 years agomake crt0s and ldscripts evaluate late, so the chipset_* variables are there at
Stefan Reinauer [Tue, 30 Mar 2010 20:32:01 +0000 (20:32 +0000)]
make crt0s and ldscripts evaluate late, so the chipset_* variables are there at
the time they are finally used. This should solve the Problem Myles was seeing
earlier today.

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

14 years agoabuild:
Stefan Reinauer [Tue, 30 Mar 2010 15:49:14 +0000 (15:49 +0000)]
abuild:
it seems make oldconfig is not safe for parallel compilation. The problem never
occured in my tests, but go back to non-parallel build again. Also pass on the
return value of make oldconfig correctly.

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

14 years agoabuild:
Stefan Reinauer [Tue, 30 Mar 2010 14:02:19 +0000 (14:02 +0000)]
abuild:
- increase context to 6 lines in case of build error
- add update mechanism to automatically produce fallback+normal in one image.
- tighten up output
- in-coreboot-builds makefile main target is now "all" as coreboot.rom matches
  a file
- time measurement now includes "make config" step
- actually allow long-implemented long version of --remove|-r option.

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

14 years agobuild_opt_tbl: error instead of null pointer access if no checksum is defined.
Stefan Reinauer [Tue, 30 Mar 2010 09:59:23 +0000 (09:59 +0000)]
build_opt_tbl: error instead of null pointer access if no checksum is defined.
xe7501devkit: If cmos.layout is used, there must be a checksum.

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

14 years agoadd CONFIG_NO_POST as it is used in the code, and move it together with CONFIG_SERIAL...
Stefan Reinauer [Tue, 30 Mar 2010 09:57:28 +0000 (09:57 +0000)]
add CONFIG_NO_POST as it is used in the code, and move it together with CONFIG_SERIAL_POST
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5326 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoreduce warnings in MCP55 and Fam10 code
Stefan Reinauer [Tue, 30 Mar 2010 09:56:35 +0000 (09:56 +0000)]
reduce warnings in MCP55 and Fam10 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@5325 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agofix ms9652_fam10
Stefan Reinauer [Tue, 30 Mar 2010 08:20:37 +0000 (08:20 +0000)]
fix ms9652_fam10

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

14 years agounify cmos.layout wrt AMD extended configuration registers.
Stefan Reinauer [Tue, 30 Mar 2010 08:01:43 +0000 (08:01 +0000)]
unify cmos.layout wrt AMD extended configuration registers.
This removes double preprocessor define warnings from many 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@5323 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agothis fixes 3 of 4 mainboards failed by the error on missing IRQ_SLOT_COUNT.
Stefan Reinauer [Tue, 30 Mar 2010 00:22:29 +0000 (00:22 +0000)]
this fixes 3 of 4 mainboards failed by the error on missing IRQ_SLOT_COUNT.
The third, MSI MS9652, creates an IRQ table on the fly, no kidding.

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

14 years agoDon't include option_table.h every time we include mc146818rtc.h, that was a
Stefan Reinauer [Mon, 29 Mar 2010 23:01:35 +0000 (23:01 +0000)]
Don't include option_table.h every time we include mc146818rtc.h, that was a
stupid idea. Instead include it where it is needed. And add some explicit
dependencies to it.

Also, error for missing IRQ_SLOT_COUNT for now, so we can fix up the 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@5321 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis drops the ASSEMBLY define from romstage.c, too
Stefan Reinauer [Mon, 29 Mar 2010 22:08:01 +0000 (22:08 +0000)]
This drops the ASSEMBLY define from romstage.c, too
(since it's not assembly code, this was a dirty hack anyways)
Also run
    awk 1 RS= ORS="\n\n" < $FILE > $FILE.nonewlines
    mv $FILE.nonewlines $FILE
on romstage.c because my perl -pi -e 's,#define ASSEMBLY 1,,g' */*/romstage.c
cut some holes into the source.

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

14 years ago- drop GCC 2.x workaround, GCC 2.x is not supported anymore.
Stefan Reinauer [Mon, 29 Mar 2010 22:05:26 +0000 (22:05 +0000)]
- drop GCC 2.x workaround, GCC 2.x is not supported anymore.
- warn if we didn't specify IRQ_SLOT_COUNT in Kconfig
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5319 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agotrivial warning cleanups
Stefan Reinauer [Mon, 29 Mar 2010 21:56:26 +0000 (21:56 +0000)]
trivial warning cleanups

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

14 years ago- include option_table.h when it is created, and that's HAVE_OPTION_TABLE
Stefan Reinauer [Mon, 29 Mar 2010 21:50:53 +0000 (21:50 +0000)]
- include option_table.h when it is created, and that's HAVE_OPTION_TABLE
- add some __PRE_RAM__ guards where needed
- use OPTION_TABLE_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@5317 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoqemu: drop "northbridge.c" from src/cpu/...
Stefan Reinauer [Mon, 29 Mar 2010 21:17:25 +0000 (21:17 +0000)]
qemu: drop "northbridge.c" from src/cpu/...
It's not a real northbridge, so I just move it into the mainboard directory for
now (until we maybe have a qemu-q35 image some day?)

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

14 years ago__PRE_RAM__ is now correctly specified in the Makefile. No need to hack it into
Stefan Reinauer [Mon, 29 Mar 2010 19:19:16 +0000 (19:19 +0000)]
__PRE_RAM__ is now correctly specified in the Makefile. No need to hack it into
romstage.c anymore

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

14 years agocpu_driver structs need to be const, too...
Stefan Reinauer [Mon, 29 Mar 2010 19:04:13 +0000 (19:04 +0000)]
cpu_driver structs need to be const, too...
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5314 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis patch drops the coreboot CMOS checksum ranges from Kconfig because
Stefan Reinauer [Mon, 29 Mar 2010 17:14:28 +0000 (17:14 +0000)]
This patch drops the coreboot CMOS checksum ranges from Kconfig because
the information is already specified in cmos.layout. coreboot is changed
to use that version instead.

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

14 years agoabuild: fail with dignity if mainboard does not exist.
Stefan Reinauer [Mon, 29 Mar 2010 16:23:42 +0000 (16:23 +0000)]
abuild: fail with dignity if mainboard does not exist.

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

14 years agodualcore.h and quadcore.h are almost exactly the same.
Stefan Reinauer [Mon, 29 Mar 2010 14:45:36 +0000 (14:45 +0000)]
dualcore.h and quadcore.h are almost exactly the same.
Only have multicore.h for both of them.

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

14 years agoThis patch fixes build.h dependencies in coreboot again.
Stefan Reinauer [Mon, 29 Mar 2010 13:04:13 +0000 (13:04 +0000)]
This patch fixes build.h dependencies in coreboot again.
-include was dropped, the files in question do an #include <build.h> already.

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

14 years agoAdd a non-time consuming version of ram check so we can print a decent error
Stefan Reinauer [Sun, 28 Mar 2010 21:31:30 +0000 (21:31 +0000)]
Add a non-time consuming version of ram check so we can print a decent error
rather than looping on non-working ram.

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

14 years agodrop post_code()
Stefan Reinauer [Sun, 28 Mar 2010 21:30:23 +0000 (21:30 +0000)]
drop post_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@5308 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agodrop unneeded __ROMCC__ checks when the check for __PRE_RAM__ is more
Stefan Reinauer [Sun, 28 Mar 2010 21:26:54 +0000 (21:26 +0000)]
drop unneeded __ROMCC__ checks when the check for __PRE_RAM__ is more
appropriate. Also, factor out post_code() for __PRE_RAM__ code and drop it from
some mainboards.

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

14 years agodrop __ROMCC__ define checks.. __PRE_RAM__ is what the code should be looking for.
Stefan Reinauer [Sun, 28 Mar 2010 15:11:56 +0000 (15:11 +0000)]
drop __ROMCC__ define checks.. __PRE_RAM__ is what the code should be looking for.

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

14 years agoccache and scan-build actually work together, so remove the
Patrick Georgi [Sat, 27 Mar 2010 17:36:39 +0000 (17:36 +0000)]
ccache and scan-build actually work together, so remove the
restriction that tells Kconfig not to allow that setup.
It's not particularily useful, as scan-build totally dominates
the gcc runtime, but well..

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

14 years agomake only needs to read Makefile.incs once, thanks to the
Patrick Georgi [Sat, 27 Mar 2010 17:18:39 +0000 (17:18 +0000)]
make only needs to read Makefile.incs once, thanks to the
SECONDEXPANSION feature of GNU make (and we rely on GNU make for lots of
things already)

File paths are relative to the root directory, which simplifies
debugging (make V=1 gives shorter command lines) and helps ccache
finding matches for checkouts in different directories (even though it
should normalize paths itself)

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5304 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove dead code and make white space more consistent for acpi_tables.c
Myles Watson [Fri, 26 Mar 2010 18:31:12 +0000 (18:31 +0000)]
Remove dead code and make white space more consistent for acpi_tables.c

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

14 years agoUpdate libpayload default configuration so a make oldconfig
Stefan Reinauer [Fri, 26 Mar 2010 11:47:13 +0000 (11:47 +0000)]
Update libpayload default configuration so a make oldconfig
on that configuration does not ask questions.

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

14 years agoMake sconfig only complain about real conflicts.
Patrick Georgi [Fri, 26 Mar 2010 10:33:36 +0000 (10:33 +0000)]
Make sconfig only complain about real conflicts.

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

14 years ago1. Remove warnings and multiple blank lines.
Zheng Bao [Fri, 26 Mar 2010 01:43:30 +0000 (01:43 +0000)]
1. Remove warnings and multiple blank lines.
2. Mahogany uses GPIO9 to detect 80-pin IDE cable.

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

14 years agoUSB updates from our internal tree
Stefan Reinauer [Thu, 25 Mar 2010 22:17:36 +0000 (22:17 +0000)]
USB updates from our internal tree
- support MMC2 devices
- make usb stack more solid
- drop some unused functions
- fix lowspeed/speed naming
- add support for "quirks"
- improve usbhid driver

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

14 years agolibpayload update
Stefan Reinauer [Thu, 25 Mar 2010 22:15:19 +0000 (22:15 +0000)]
libpayload update

* rework Config.in
* add string_to_args function to actually make getopt usable.
* add strchr
* add strlcat
* some malloc fixes (exposed by the USB stack)
* add malloc debugging (thanks to Matthias Krause from Secunet!)
* make LAR support optional, it's not really used anymore
* (define htoX macros for ppc)

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

14 years agoAdd support to build with ccache in the build system
Patrick Georgi [Thu, 25 Mar 2010 21:45:25 +0000 (21:45 +0000)]
Add support to build with ccache in the build system

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

14 years agoMake build verbose when requested by abuild
Patrick Georgi [Thu, 25 Mar 2010 19:01:27 +0000 (19:01 +0000)]
Make build verbose when requested by abuild

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

14 years agoAdd coreboot framebuffer support to libpayload
Stefan Reinauer [Thu, 25 Mar 2010 18:56:26 +0000 (18:56 +0000)]
Add coreboot framebuffer support to 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@5295 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agodon't hardcode i386 in lpgcc
Stefan Reinauer [Thu, 25 Mar 2010 18:54:43 +0000 (18:54 +0000)]
don't hardcode i386 in lpgcc

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

14 years agoallow libpayload to completely build out of tree.
Stefan Reinauer [Thu, 25 Mar 2010 18:54:08 +0000 (18:54 +0000)]
allow libpayload to completely build out of tree.

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

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