coreboot.git
14 years agoThis patch is about the DA-C2 and RB-C2. Chip with install processor
Zheng Bao [Mon, 24 Aug 2009 06:30:37 +0000 (06:30 +0000)]
This patch is about the DA-C2 and RB-C2. Chip with install processor
Revision ID of 0x100F62 is DA-C2, instead of RB-C2 which was incorrectly
defined in raminit_amdmct.c. RB-C2's ID is 0x100F42. The Erratas applied to
them are almost the same.

Issues:
1. I really dont know what their nicknames are (Shanghai C2 or something).
2. About the mc_patch_01000086.h, I dont know if it is allowed to be released.
   If you really need it, please contact AMD Inc to see if it is public.
3. My RB-C2 is Socket type AM3, which needs DDR3 support. Probably your RB-C2
   doesnt need DDR3. If it does and you really need it, please contack AMD Inc
   to see if it is allowed to release DDR3 code.

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

14 years agoChange the intel cpu makefile.inc so that it fits the model better.
Ronald G. Minnich [Fri, 21 Aug 2009 18:08:49 +0000 (18:08 +0000)]
Change the intel cpu makefile.inc so that it fits the model better.
- intel/Makefile.inc only mentions sockets
- those sockets are conditionally included
- makefile.inc in socket directories are almost all unconditionally included
- Get rid of if where possible, use -$(CONFIG_VARIABLE) instead as per Kconfig
  standards in linux kernel

See the Kconfig.tex documentation for questions.

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

14 years agoTrivial spelling corrections.
Myles Watson [Fri, 21 Aug 2009 14:59:14 +0000 (14:59 +0000)]
Trivial spelling corrections.

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

14 years agoThis goes a surprisingly long way to building the epia-n. It also has
Ronald G. Minnich [Thu, 20 Aug 2009 18:05:31 +0000 (18:05 +0000)]
This goes a surprisingly long way to building the epia-n. It also has
important corrections to the Kconfig and Makefile.inc that were there. I
would like to go ahead and get this in, because I don't want anyone to
continue using what is in the upstream tree as it now exists.
I also tested old-style build with this and it did not break anything.

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

14 years ago20090819-2-trim-down-cbfs:
Patrick Georgi [Thu, 20 Aug 2009 14:48:03 +0000 (14:48 +0000)]
20090819-2-trim-down-cbfs:
CBFS uses sprintf, which requires vtxprintf, which requires (in the
current design) a nested function. That works on x86, but on PPC this
requires a trampoline. In the ROM stage, this is not available, so
remove the single use of sprintf and replace it with a direct string
handler - it's only used to fill in fixed-length hex values.

20090819-3-more-noreturns-in-romcc:
Mark two more functions in romcc as noreturn. Helps clang's scan-build a
bit

20090819-4-cbfsify-ppc:
Make PPC use CBFS. Support big endian ELF in cbfs-mkstage. Untested and
not complete yet.

20090819-5-fix-ppc-build:
The CBFS build system requires ROM_IMAGE_SIZE to have a somewhat
plausible value.

With fixes to tohex* functions as discussed on the list, and correct
function names.

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

14 years agoAdd an error message if there is a zero-sized fixed resource. Fix the existing
Myles Watson [Wed, 19 Aug 2009 19:12:39 +0000 (19:12 +0000)]
Add an error message if there is a zero-sized fixed resource.  Fix the existing
example of one.

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

14 years agoDon't let zero sized fixed resource mess up the allocator's memory map.
Patrick Georgi [Wed, 19 Aug 2009 17:29:41 +0000 (17:29 +0000)]
Don't let zero sized fixed resource mess up the allocator's memory map.

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

14 years agoConfig-abuild.lb doesn't need to override ROM_IMAGE_SIZE.
Patrick Georgi [Wed, 19 Aug 2009 14:08:42 +0000 (14:08 +0000)]
Config-abuild.lb doesn't need to override ROM_IMAGE_SIZE.
Trivial change

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

14 years agoReduce size of the romstage on various boards that fail to build on QA.
Patrick Georgi [Wed, 19 Aug 2009 13:40:20 +0000 (13:40 +0000)]
Reduce size of the romstage on various boards that fail to build on QA.
This eliminates 56kb of padding in the bootblock.

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

14 years agoThe Errata350 is "Write 0000_8000h to register F2x[1, 0]9C_xD080F0C.", instead of
Zheng Bao [Wed, 19 Aug 2009 07:08:10 +0000 (07:08 +0000)]
The Errata350 is "Write 0000_8000h to register F2x[1, 0]9C_xD080F0C.", instead of
F2x[1, 0]9C_x0C. It is a obvious bug. Some typos are also fixed.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4553 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoCorrect usage of Makefile.inc and add support for cn400
Ronald G. Minnich [Tue, 18 Aug 2009 17:15:39 +0000 (17:15 +0000)]
Correct usage of Makefile.inc and add support for cn400
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4552 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd via south support. Correct usage of conditional variables.
Ronald G. Minnich [Tue, 18 Aug 2009 17:14:58 +0000 (17:14 +0000)]
Add via south support. Correct usage of conditional variables.
Note the makefile.inc may be out of date given the new commits of code
today, but this is what was signed off ...

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

14 years agoAdd the rest of the files.
Jon Harrison [Tue, 18 Aug 2009 15:12:13 +0000 (15:12 +0000)]
Add the rest of the files.

Thanks Jon.

Signed-off-by: Jon Harrison <bothlyn@blueyonder.co.uk>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4550 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoGet the Via EPIA-N(L)/CN400 to a reasonable level of maturity::
Jon Harrison [Mon, 17 Aug 2009 17:09:46 +0000 (17:09 +0000)]
Get the Via EPIA-N(L)/CN400 to a reasonable level of maturity::

Tested on Via EPIA-NL8000EG with FILO payload booting FC9 (2.6.25
kernel) from SATA HDD.

ACPI is working for PCI interrupt routing, some memory stuff and
Soft-Off.
USB/SATA Working
VGA Console Working
X Working via Onboard AGP

Removed dsdt.c, fixed some whitespace.

Signed-off-by: Jon Harrison <bothlyn@blueyonder.co.uk>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4549 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd more docs, this time for southbridge.
Ronald G. Minnich [Mon, 17 Aug 2009 15:42:18 +0000 (15:42 +0000)]
Add more docs, this time for southbridge.
No real difference from northbridge.

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

14 years agoMove CBFS header to a safer place.
Thomas Jourdan [Mon, 17 Aug 2009 15:19:52 +0000 (15:19 +0000)]
Move CBFS header to a safer place.

Signed-off-by: Thomas Jourdan <thomas.jourdan@gmail.com>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4547 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove unused normal image option in Kconfig
Cristi Magherusan [Mon, 17 Aug 2009 14:47:32 +0000 (14:47 +0000)]
Remove unused normal image option in Kconfig

Signed-off-by: Cristi Magherusan <cristi.magherusan@net.utcluj.ro>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4546 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAllow setting up a VGABIOS image in Kconfig
Cristi Magherusan [Mon, 17 Aug 2009 14:46:13 +0000 (14:46 +0000)]
Allow setting up a VGABIOS image in Kconfig

Signed-off-by: Cristi Magherusan <cristi.magherusan@net.utcluj.ro>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4545 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd 4MB ROM image size to Kconfig
Cristi Magherusan [Mon, 17 Aug 2009 14:33:03 +0000 (14:33 +0000)]
Add 4MB ROM image size to Kconfig

Signed-off-by: Cristi Magherusan <cristi.magherusan@net.utcluj.ro>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4544 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMost of the changes here are trivial, but the white space changes would be harder...
Myles Watson [Thu, 13 Aug 2009 16:02:24 +0000 (16:02 +0000)]
Most of the changes here are trivial, but the white space changes would be harder to undo than to do over.

I changed all groups of 8 spaces to tabs, then all tabs to two spaces so more of the device tree fits on the page.  It could have been three or possibly four, but the largest indents I found were 6 tabs, so 4 is a lot of the space on the page.

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

14 years ago- AMD selected a couple of options that are incompatible with QEmu (and
Patrick Georgi [Thu, 13 Aug 2009 15:29:01 +0000 (15:29 +0000)]
- AMD selected a couple of options that are incompatible with QEmu (and
probably others). Only select them for AMD

- Make the bootblock smaller (only one copy of it), and don't pad the
bootblock using dd(1), but top-align inside cbfstool, to reduce
dependencies on unix tools.

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

14 years agoFix some conflicting types of variables
Patrick Georgi [Thu, 13 Aug 2009 07:33:55 +0000 (07:33 +0000)]
Fix some conflicting types of variables
Remove the normal/* files from the image. they're just
copies of fallback/* anyway.

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

14 years ago\\ are not escaped in a sane way between fedora and ubuntu! Just create
Ronald G. Minnich [Wed, 12 Aug 2009 20:25:24 +0000 (20:25 +0000)]
\\ are not escaped in a sane way between fedora and ubuntu! Just create
these files to make sure that we don't get idiotic problems.

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

14 years agoRemove duplicate file, adjust Makefile to use the original copy.
Patrick Georgi [Wed, 12 Aug 2009 17:16:05 +0000 (17:16 +0000)]
Remove duplicate file, adjust Makefile to use the original copy.
Keeping identical files around will only bite us eventually, when they
get out of sync. See coreboot-v2 history for examples.

Trivial and build tested.

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

14 years agodrop extra whitespace at end of line for i945 + ICH7 (trivial)
Stefan Reinauer [Wed, 12 Aug 2009 16:08:05 +0000 (16:08 +0000)]
drop extra whitespace at end of line for i945 + ICH7 (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@4538 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis now builds.
Ronald G. Minnich [Wed, 12 Aug 2009 15:56:17 +0000 (15:56 +0000)]
This now builds.

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

14 years agoFix multiple missing files and errors from the recent commit. This happened
Ronald G. Minnich [Wed, 12 Aug 2009 15:39:38 +0000 (15:39 +0000)]
Fix multiple missing files and errors from the recent commit. This happened
when Patrick's tree and mine got out of sync.

Link stage still fails.

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

14 years agoMissing files from last patch.
Ronald G. Minnich [Wed, 12 Aug 2009 15:26:31 +0000 (15:26 +0000)]
Missing files from last patch.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4535 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoKconfig!
Patrick Georgi [Wed, 12 Aug 2009 15:00:51 +0000 (15:00 +0000)]
Kconfig!
Works on Kontron, qemu, and serengeti.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
tested on abuild only.

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

14 years agoDon't pull in x86emu from a foreign directory anymore. This
Stefan Reinauer [Tue, 11 Aug 2009 21:28:25 +0000 (21:28 +0000)]
Don't pull in x86emu from a foreign directory anymore. This
produced numerous problems in the past, including the fact that
x86emu doesn't work in v3 anymore even though it lives in the v3
repository.

Since this is a cross-repository move, keeping the history in the v2 tree
would make life hard for everone. So check the v3 repository for x86emu history
since the merger. The his commit is based on an svn export of r1175 of the
coreboot-v3 repository.

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

14 years agoEnable CBFS everywhere. All boards compiled for me (abuild tested),
Patrick Georgi [Tue, 11 Aug 2009 17:35:02 +0000 (17:35 +0000)]
Enable CBFS everywhere. All boards compiled for me (abuild tested),
and we will fix issues as they appear.

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

14 years agocpu/amd/model_lx used its own routine for copying coreboot_ram. This
Patrick Georgi [Tue, 11 Aug 2009 17:32:26 +0000 (17:32 +0000)]
cpu/amd/model_lx used its own routine for copying coreboot_ram. This
change makes it use the generic infrastructure.

NOTE: If you're bisecting issues on geode-lx circa jumping to coreboot_ram,
this change has a high probability to break that place - so look into it.

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

14 years agoThe code between #if and #endif is only about UMA mode. The CONFIG_GFXUMA should...
Zheng Bao [Tue, 11 Aug 2009 03:18:11 +0000 (03:18 +0000)]
The code between #if and #endif is only about UMA mode. The CONFIG_GFXUMA should be 1.
We have another mode called side port mode. It is When the CONFIG_GFXUMA is 0.

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

14 years agofix for the case that CONFIG_TTYS0_DIV is defined in mainboard's Config.lb
Stefan Reinauer [Thu, 6 Aug 2009 11:36:33 +0000 (11:36 +0000)]
fix for the case that CONFIG_TTYS0_DIV is defined in mainboard's Config.lb

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

14 years agofix buggy comment in libpayload's strncat function
Stefan Reinauer [Wed, 5 Aug 2009 13:10:38 +0000 (13:10 +0000)]
fix buggy comment in libpayload's strncat function

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

14 years agoAdd some more CONFIG_* prefixes that were missing.
Patrick Georgi [Wed, 5 Aug 2009 12:24:23 +0000 (12:24 +0000)]
Add some more CONFIG_* prefixes that were missing.

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

14 years agoPrepare for kconfig: Rename COREBOOT_V2 to CONFIG_COREBOOT_V2
Patrick Georgi [Wed, 5 Aug 2009 12:16:01 +0000 (12:16 +0000)]
Prepare for kconfig: Rename COREBOOT_V2 to CONFIG_COREBOOT_V2
and adapt its user (x86emu) to match.

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

14 years agoFix the generic code for copying and running coreboot_ram in case
Patrick Georgi [Wed, 5 Aug 2009 10:48:43 +0000 (10:48 +0000)]
Fix the generic code for copying and running coreboot_ram in case
certain configuration options are disabled. The strings were just
at the wrong place.

Two boards fix up some variables for romstream. This isn't necessary (or
possible) when CBFS is active, as there is no romstream. It would be
nicer to have them depend on CONFIG_ROM_PAYLOAD, but there isn't any
invariant that forces that to be inactive if CBFS is active, and this
patch is supposed to be small, esp. as the stream loaders are on the way
out.

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

14 years agooops, these two were missed in the last cleanup.
Stefan Reinauer [Fri, 31 Jul 2009 14:45:41 +0000 (14:45 +0000)]
oops, these two were missed in the last cleanup.

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

14 years agoCatch various cases in libpayload where malloc() or memalign() return NULL
Stefan Reinauer [Fri, 31 Jul 2009 11:39:55 +0000 (11:39 +0000)]
Catch various cases in libpayload where malloc() or memalign() return NULL

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

14 years ago* drop duplicate prototype for lib_get_sysinfo()
Stefan Reinauer [Fri, 31 Jul 2009 11:38:59 +0000 (11:38 +0000)]
* drop duplicate prototype for lib_get_sysinfo()
* fix delay handling in tiny curses keyboard driver
* fix off by one error in video driver

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

14 years agoFix erroneous comment in src/mainboard/h8dmr/Options.lb
Ward Vandewege [Tue, 28 Jul 2009 01:23:32 +0000 (01:23 +0000)]
Fix erroneous comment in src/mainboard/h8dmr/Options.lb

This is a trivial patch.

Signed-off-by: Ward Vandewege <ward@gnu.org>
Acked-by: Ward Vandewege <ward@gnu.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4472 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agodrop dead nested assignment (trivial)
Stefan Reinauer [Sun, 26 Jul 2009 15:11:53 +0000 (15:11 +0000)]
drop dead nested assignment (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@4468 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agotrivial typo in a comment
Stefan Reinauer [Sun, 26 Jul 2009 15:05:40 +0000 (15:05 +0000)]
trivial typo in a comment

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

14 years agoCBFS stuff:
Stefan Reinauer [Thu, 23 Jul 2009 22:03:14 +0000 (22:03 +0000)]
CBFS stuff:
- update, add, and improve comments
- whitespace here and there
- remove unused or write-only variables
- improve debug output
- only build payload.{nrv2b,lzma} for non-cbfs
- improved error checking in cbfstool

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

14 years agosb/via/k8t890: add vga textmode code for k8m890 chrome igp.
Luc Verhaegen [Thu, 23 Jul 2009 16:04:58 +0000 (16:04 +0000)]
sb/via/k8t890: add vga textmode code for k8m890 chrome igp.

Add initialisation for the VIA Chrome 9 IGP on the k8m890 through native code
and through the general vga infrastructure i committed a month or two ago.
Add videoram_size option for k8m890 and the Asus M2V-MX SE.

Now the Asus M2V-MX SE will magically come up with a working standard VGA
80x25 textmode.

Many thanks to the people who worked hard on the Asus M2V-MX SE, and all
of its components; this vga bringup was a breeze thanks to your hard work
for this excellently supported board. And separate thanks to Rudolf Marek
for spurring me on and for providing a register dump.

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

14 years agoWe did together some patch which makes finally a MMCONFIG workable in
Rudolf Marek [Thu, 23 Jul 2009 08:10:51 +0000 (08:10 +0000)]
We did together some patch which makes finally a MMCONFIG workable in
linux out of the box. There were two problems. First was that the
mmconfig ACPI structure was empty because of cut and paste (PCI ID of
K8M890 is different).

Second problem is now nicely solvable by add_region. Linux expects that
the mmconfig region is found as reserved memory. Otherwise it does not
trust it.

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

14 years agoDon't put .o files in the source tree. (trivial)
Stefan Reinauer [Wed, 22 Jul 2009 12:26:18 +0000 (12:26 +0000)]
Don't put .o files in the source tree. (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@4463 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix a redundant declaration warning (trivial)
Stefan Reinauer [Wed, 22 Jul 2009 01:42:13 +0000 (01:42 +0000)]
Fix a redundant declaration warning (trivial)

src/include/device/pci.h:75: warning: redundant redeclaration of 'pci_dev_init'
src/include/device/pci_rom.h:39: warning: previous declaration of 'pci_dev_init' was 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@4462 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix up the tree again...
Stefan Reinauer [Wed, 22 Jul 2009 01:11:37 +0000 (01:11 +0000)]
Fix up the tree again...

* acpi_add_table requires a pointer to the RSDP, not the RSDT anymore, in order
  to properly support XSDT generation.
* fix compilation the DSDT on gigabyte/m57sli
* drop a remaining, forgotten HPET_NAME for "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@4461 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoclean up acpi table strings, as discussed on the list
Stefan Reinauer [Tue, 21 Jul 2009 22:15:43 +0000 (22:15 +0000)]
clean up acpi table strings, as discussed on the list

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

14 years agoAnother include file slipped. This gets via/epia-m building again.
Stefan Reinauer [Tue, 21 Jul 2009 22:01:21 +0000 (22:01 +0000)]
Another include file slipped. This gets via/epia-m building 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@4459 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoKontron updates, get board up to date with i945 and ich7 updates.
Stefan Reinauer [Tue, 21 Jul 2009 21:58:20 +0000 (21:58 +0000)]
Kontron updates, get board up to date with i945 and ich7 updates.
Move interrupt routing to mainboard specific code.

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

14 years agothis bug sneaked in during conversion
Stefan Reinauer [Tue, 21 Jul 2009 21:57:11 +0000 (21:57 +0000)]
this bug sneaked in during conversion

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

14 years agoIntel ICH7 updates
Stefan Reinauer [Tue, 21 Jul 2009 21:50:34 +0000 (21:50 +0000)]
Intel ICH7 updates
- code restructuring (move ich7 out of i945)
- ACPI fixes
- major SMI handler updates
- make sure SMBus lives where we expect it
- try to get usb debug working

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

14 years ago* drop ich7 include
Stefan Reinauer [Tue, 21 Jul 2009 21:44:24 +0000 (21:44 +0000)]
* drop ich7 include
* detect more i945 variants
* raminit fixes
* ACPI + PCIe updates

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

14 years agoadd intel speedstep support and some PM fixes.
Stefan Reinauer [Tue, 21 Jul 2009 21:41:42 +0000 (21:41 +0000)]
add intel speedstep support and some PM fixes.

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

14 years agoThis fixes a couple of issues with older Linux kernels (that expect an XSDT as
Stefan Reinauer [Tue, 21 Jul 2009 21:38:33 +0000 (21:38 +0000)]
This fixes a couple of issues with older Linux kernels (that expect an XSDT as
soon as there's an ACPI 2.0 or later table)

* add XSDT support
* add more table types

This patch will break at least the kontron (and possibly some new boards I
missed)

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

14 years agoRewrite interrupt handling in coreboot to be more comprehensible and
Stefan Reinauer [Tue, 21 Jul 2009 21:36:41 +0000 (21:36 +0000)]
Rewrite interrupt handling in coreboot to be more comprehensible and
more flexible. Also some minore device allocator cleanups that sneaked
in.

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

14 years agoAdd more warnings to CFLAGS, and also add some to HOSTCFLAGS
Stefan Reinauer [Tue, 21 Jul 2009 21:31:36 +0000 (21:31 +0000)]
Add more warnings to CFLAGS, and also add some to HOSTCFLAGS
include ldoptions from ldscript.ld instead appending it.

Not everyone was happy about the -Wmissing-prototypes in CFLAGS.
I put it in there now anyways, so everyone can get an overview which parts of
their code could use some cleanup. If it gets too ugly, we can still remove
that flag again.

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

14 years agoExample how simple it is to use printk instead of printk_something in
Stefan Reinauer [Tue, 21 Jul 2009 21:25:45 +0000 (21:25 +0000)]
Example how simple it is to use printk instead of printk_something in
coreboot ram stage.

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

14 years agoRewrite keyboard driver to actually wait time in ms as specified in the specs,
Stefan Reinauer [Tue, 21 Jul 2009 21:24:22 +0000 (21:24 +0000)]
Rewrite keyboard driver to actually wait time in ms as specified in the specs,
rather than doing inexact and slow idle loops.
Also improve error reporting in case of problems.

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

14 years ago- Remove superfluous / from path
Stefan Reinauer [Tue, 21 Jul 2009 21:22:40 +0000 (21:22 +0000)]
- Remove superfluous / from path
- use make -C instead of workaround

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

14 years agoSome USB debug updates, mostly comments fixing, license header updates
Stefan Reinauer [Tue, 21 Jul 2009 21:20:45 +0000 (21:20 +0000)]
Some USB debug updates, mostly comments fixing, license header updates
and refactoring

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

14 years ago* rework tsc based timer code to use inb instead of outb for calibration
Stefan Reinauer [Tue, 21 Jul 2009 21:19:06 +0000 (21:19 +0000)]
* rework tsc based timer code to use inb instead of outb for calibration
* Add generic Local APIC based timer code. This timer does not need expensive
  calibration and thus reduces the boot time by up to more than a second.

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

14 years ago* cleanup ricoh rl5c476 code:
Stefan Reinauer [Tue, 21 Jul 2009 20:27:00 +0000 (20:27 +0000)]
* cleanup ricoh rl5c476 code:
  - drop duplicate udelay function
  - simplify code flow
  - some cosmetics on comments

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

14 years agoRemove a comment that no longer applies. Trivial.
Myles Watson [Tue, 21 Jul 2009 18:06:12 +0000 (18:06 +0000)]
Remove a comment that no longer applies.  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@4444 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd legacy I/O region for vt8237r southbridge.
Myles Watson [Mon, 20 Jul 2009 19:42:15 +0000 (19:42 +0000)]
Add legacy I/O region for vt8237r southbridge.

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

14 years agoRename some preprocessor symbols. I have no idea why
Patrick Georgi [Mon, 20 Jul 2009 19:34:47 +0000 (19:34 +0000)]
Rename some preprocessor symbols. I have no idea why
those symbols were left alone before, after this, they're
somewhat more in line with the rest of the tree.

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

14 years agoThe file string.h is also included in romcc code, which has no malloc().
Stefan Reinauer [Sun, 19 Jul 2009 00:18:15 +0000 (00:18 +0000)]
The file string.h is also included in romcc code, which has no malloc().
The patch adds proper preprocessor guards and drops the malloc() prototype
because that's in stdlib.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@4441 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agocoding style fixes for powernow (trivial)
Stefan Reinauer [Sat, 18 Jul 2009 18:00:37 +0000 (18:00 +0000)]
coding style fixes for powernow (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@4440 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agodrop unused variable (trivial)
Stefan Reinauer [Sat, 18 Jul 2009 17:58:44 +0000 (17:58 +0000)]
drop unused variable (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@4439 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis patch fixes payloads on certain Fedora versions
Stefan Reinauer [Sat, 18 Jul 2009 15:18:22 +0000 (15:18 +0000)]
This patch fixes payloads on certain Fedora versions

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

14 years agoFix off-by-one bug in libpayload UHCI driver
Stefan Reinauer [Sat, 18 Jul 2009 15:17:40 +0000 (15:17 +0000)]
Fix off-by-one bug in libpayload UHCI driver

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

14 years agostrdup the input of dirname, as dirname is free
Patrick Georgi [Sat, 18 Jul 2009 14:20:39 +0000 (14:20 +0000)]
strdup the input of dirname, as dirname is free
(according to the spec) to change the string in-situ,
even if glibc doesn't do it.

This avoids errors on Mac OS and Solaris.

Kill nrv2b support in CBFS (we have lzma),
slightly improve debug output in CBFS,
properly declare all functions of CBFS in the header.

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

14 years agoBring S1g1 cpu names up to date with the official
Ward Vandewege [Fri, 17 Jul 2009 15:15:17 +0000 (15:15 +0000)]
Bring S1g1 cpu names up to date with the official

  Revision Guide for AMD NPT Family 0Fh Processors

Rev. 3.42 March 2009, found at

  http://support.amd.com/us/Processor_TechDocs/33610_PUB_Rev3%2042v3.pdf

This patch takes its data from Table 9.

Build tested.

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

14 years agoBring Socket F cpu names up to date with the official
Ward Vandewege [Fri, 17 Jul 2009 15:13:54 +0000 (15:13 +0000)]
Bring Socket F cpu names up to date with the official

  Revision Guide for AMD NPT Family 0Fh Processors

Rev. 3.42 March 2009, found at

  http://support.amd.com/us/Processor_TechDocs/33610_PUB_Rev3%2042v3.pdf

This patch takes its data from Table 7.

Build tested.

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

14 years agoBring AM2 cpu names up to date with the official
Ward Vandewege [Fri, 17 Jul 2009 15:12:45 +0000 (15:12 +0000)]
Bring AM2 cpu names up to date with the official

  Revision Guide for AMD NPT Family 0Fh Processors

Rev. 3.42 March 2009, found at

  http://support.amd.com/us/Processor_TechDocs/33610_PUB_Rev3%2042v3.pdf

This patch takes its data from Table 8.

Build tested, and boot tested on a AMD Athlon(tm) Dual Core Processor 5050e.

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

14 years agoThis is an obvious bug which I overlooked when I worked on the AM2r2
Zheng Bao [Fri, 17 Jul 2009 05:41:34 +0000 (05:41 +0000)]
This is an obvious bug which I overlooked when I worked on the AM2r2
modules.

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

14 years agoSeparate cache_as_ram_auto.c and failover.c for Tyan s2895.
Myles Watson [Thu, 16 Jul 2009 15:53:11 +0000 (15:53 +0000)]
Separate cache_as_ram_auto.c and failover.c for Tyan s2895.

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

14 years agoFix VIA EPIA-M700 target enough for a first serial boot log.
Uwe Hermann [Wed, 15 Jul 2009 00:03:28 +0000 (00:03 +0000)]
Fix VIA EPIA-M700 target enough for a first serial boot log.

Add the respective Super I/O config in Config.lb (Winbond W83697HG),
enable COM1 on the board, fix irq_table.c, as well as the PCI
devices listed in Config.lb (based on lspci output).

This has been tested by Jakob Bornecrantz <wallbraker@gmail.com>
on hardware, i.e. there is serial output. It does not yet boot
to a Linux console successfully, more fixing will be needed.

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

14 years agotrivial fixes to function declarations (and build system test)
Stefan Reinauer [Tue, 14 Jul 2009 19:10:10 +0000 (19:10 +0000)]
trivial fixes to function declarations (and build system test)

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

14 years agoSuperiotool: Add IT8703F support.
Luc Verhaegen [Sun, 12 Jul 2009 14:24:06 +0000 (14:24 +0000)]
Superiotool: Add IT8703F support.

Kudos to ITE for providing the necessary information that quickly.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
Tested-by: Glenn Mueller <mechwarrior5@hotmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4424 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix MS-6178 boot by setting unused device (CIR) to 'off' (trivial).
Uwe Hermann [Sat, 11 Jul 2009 22:00:37 +0000 (22:00 +0000)]
Fix MS-6178 boot by setting unused device (CIR) to 'off' (trivial).

Tested on hardware, works fine.

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

14 years agoApparently I'm not the only one who forgets which way the outb and
Ed Swierk [Fri, 10 Jul 2009 15:05:35 +0000 (15:05 +0000)]
Apparently I'm not the only one who forgets which way the outb and
outl arguments go.

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

14 years agoThis seems to be a more official, common, simple way to check if the CPU is dual...
Zheng Bao [Fri, 10 Jul 2009 03:42:13 +0000 (03:42 +0000)]
This seems to be a more official, common, simple way to check if the CPU is dual core or
single core.

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

14 years agomsrtool: CS5536: The most important interrupt MSRs and some DIVIL MSRs.
Peter Stuge [Fri, 10 Jul 2009 03:10:26 +0000 (03:10 +0000)]
msrtool: CS5536: The most important interrupt MSRs and some DIVIL MSRs.

Thanks to Tom for reviewing as well!

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

14 years agoAdd CONFIG_ARCH_X86=0 to sandpointx3_altimus_mpc7410.
Myles Watson [Tue, 7 Jul 2009 19:00:10 +0000 (19:00 +0000)]
Add CONFIG_ARCH_X86=0 to sandpointx3_altimus_mpc7410.

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

14 years agoAdd pci_rawops.h from the mailing list and fix the via/epia-m700 build.
Myles Watson [Tue, 7 Jul 2009 17:54:26 +0000 (17:54 +0000)]
Add pci_rawops.h from the mailing list and fix the via/epia-m700 build.

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

14 years agoChangeLog:
Harald Gutmann [Tue, 7 Jul 2009 16:15:43 +0000 (16:15 +0000)]
ChangeLog:
Change the parallel port from polling to interrupt-driven.

This was tested by Andreas Mundt with a parallel port printer.

Signed-off-by: Harald Gutmann <harald.gutmann@gmx.net>
Acked-by: Andreas B. Mundt <andi.mundt@web.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4405 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd initial support for a CBFS module for coreinfo.
Uwe Hermann [Tue, 7 Jul 2009 15:10:13 +0000 (15:10 +0000)]
Add initial support for a CBFS module for coreinfo.

Currently it prints a list of components in CBFS and their size/type.
There's a bunch of additional output that could be printed, but that's
for another patch.

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

14 years agoAdd the IORESOURCE_BRIDGE flag to the fam10 resources for the benefit of the resource...
Myles Watson [Tue, 7 Jul 2009 13:26:35 +0000 (13:26 +0000)]
Add the IORESOURCE_BRIDGE flag to the fam10 resources for the benefit of the resource allocator.

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

14 years agoEnable onboard-VGA on the Mitac 6513WU board.
Michael Gold [Mon, 6 Jul 2009 16:05:54 +0000 (16:05 +0000)]
Enable onboard-VGA on the Mitac 6513WU board.

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

14 years agoAdd support for the Mitac 6513WU mainboard, a Compaq OEM board using the
Michael Gold [Sun, 5 Jul 2009 19:29:39 +0000 (19:29 +0000)]
Add support for the Mitac 6513WU mainboard, a Compaq OEM board using the
i810 chipset. Not all hardware has been tested, but my test PC boots Linux
(via FILO) without any problems.

Also: Add support for the SMSC LPC47U33X to the generic 'smscsuperio' driver.

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

14 years agoFix build for i810 boards that don't enable onboard VGA, yet.
Uwe Hermann [Sun, 5 Jul 2009 16:23:43 +0000 (16:23 +0000)]
Fix build for i810 boards that don't enable onboard VGA, yet.

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

14 years agoEnable onboard VGA on the MS-6178 (i810 chipset) board (trivial).
Uwe Hermann [Sun, 5 Jul 2009 16:01:57 +0000 (16:01 +0000)]
Enable onboard VGA on the MS-6178 (i810 chipset) board (trivial).

Tested on hardware with the patch from r4398 and works fine as soon
as Linux boots (no VGA in FILO for some reason, will investigate).

In order to make the 'i810.vga' VGA blob from the vendor BIOS work
you have to make the check for PCI device ID mismatches non-fatal
(for now) in the src/devices/pci_rom.c file like this:

Index: src/devices/pci_rom.c
===================================================================
--- src/devices/pci_rom.c       (Revision 4393)
+++ src/devices/pci_rom.c       (Arbeitskopie)
@@ -87,7 +87,7 @@
        if (dev->vendor != rom_data->vendor || dev->device != rom_data->device) {
                printk_err("Device or Vendor ID mismatch Vendor %04x, Device %04x\n",
                           rom_data->vendor, rom_data->device);
-               return NULL;
+               // return NULL;
        }

        printk_spew("PCI ROM Image,  Class Code %04x%02x, Code Type %02x\n",

The reason is that the VGA blob thinks the proper VGA device ID is 0x7123
whereas it really is 0x7121 on hardware. There are multiple ways to work
around this (there have been many discussions in the past), we'll see which
method will be used in future...

Note: This has been tested against r4393 only for now to make sure there
are no problems because of the recent resource allocator changes, see
http://www.coreboot.org/pipermail/coreboot/2009-July/050486.html.
Tests with trunk will follow.

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

14 years agoVarious Intel 82810/82810E changes which allow onboard VGA to work.
Elia Yehuda [Sun, 5 Jul 2009 15:50:30 +0000 (15:50 +0000)]
Various Intel 82810/82810E changes which allow onboard VGA to work.
At the same time also make the 82810 code handle 82810E.

 - Set SMRAM register according to CONFIG_VIDEO_MB value:
    - 512 means 512 KB
    - 1 means 1 MB
    - Every other value for CONFIG_VIDEO_MB (e.g. 0) disables VGA.
   This is not very clean, changing CONFIG_VIDEO_MB to CONFIG_VIDEO_KB
   in a future patch may be nicer.

 - Set MISSC2 register bits as required per datasheet to make VGA work.
   The code handles both 82810 and 82810E.

 - northbridge.c: Add __pci_driver entry for the Intel 82810E.

Also:

 - Rename PAM register #define to PAMR as per datasheet.

 - Drop unused/commented code for now.

 - Don't explicitly set GMCHCFG for now, the default works ok. We'll
   have to figure out the proper/ideal settings later.

The code is based on a patch from Elia Yehuda <z4ziggy@gmail.com> but
has been modified quite a bit for correctness and minimalism.

Tested on hardware with a slightly modified MS-6178 target,
patches to enable onboard-VGA for MS-6178 will follow.

Signed-off-by: Elia Yehuda <z4ziggy@gmail.com>
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@4398 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix many things for via/epia-m700 to build.
Myles Watson [Thu, 2 Jul 2009 21:19:33 +0000 (21:19 +0000)]
Fix many things for via/epia-m700 to build.

Unfortunately it still doesn't.  I think it's close, though.

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

14 years agoChangeLog:
Harald Gutmann [Thu, 2 Jul 2009 19:06:01 +0000 (19:06 +0000)]
ChangeLog:

Turn on Parallel Port and Floppy in Config.lb

Signed-off-by: Harald Gutmann <harald.gutmann@gmx.net>
Acked-by: Andreas B. Mundt <andi.mundt@web.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4396 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoUpdate the k8 code for the v3 resource allocator.
Myles Watson [Thu, 2 Jul 2009 19:02:33 +0000 (19:02 +0000)]
Update the k8 code for the v3 resource allocator.
The major change is that the K8 registers don't get touched until the end of
resource allocation.

Fam10 code could be updated the same way.

Move VGA code before resource allocation but after device enumeration.

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