coreboot.git
14 years agoFix technexion tim5690 build failure - REALMODE option required for x86.c mainboard...
Marc Jones [Wed, 23 Dec 2009 22:16:18 +0000 (22:16 +0000)]
Fix technexion tim5690 build failure - REALMODE option required for x86.c mainboard function to be built.

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

14 years agonewconfig compilation failed with
Stefan Reinauer [Wed, 23 Dec 2009 19:46:36 +0000 (19:46 +0000)]
newconfig compilation failed with
(.text+0x4989): undefined reference to `vgabios_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@4991 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd mainboard x86emu interrupt function support. Add tim5690 VGA BIOS functions:...
Libra Li [Wed, 23 Dec 2009 19:16:47 +0000 (19:16 +0000)]
Add mainboard x86emu interrupt function support. Add tim5690 VGA BIOS functions: int15 getting LCD panel ID.

Signed-off-by: Libra Li <libra.li@technexion.com>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4990 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoTiny Bootblock, step 1/n.
Patrick Georgi [Wed, 23 Dec 2009 12:52:56 +0000 (12:52 +0000)]
Tiny Bootblock, step 1/n.

Introduce the tiny bootblock infrastructure and use it on QEmu.

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

14 years agomake strcmp happy by including string.h (trivial)
Stefan Reinauer [Mon, 21 Dec 2009 15:09:01 +0000 (15:09 +0000)]
make strcmp happy by including string.h (trivial)

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

14 years agoAllow user to specify the size of a newly created cbfs image
Patrick Georgi [Mon, 21 Dec 2009 13:50:37 +0000 (13:50 +0000)]
Allow user to specify the size of a newly created cbfs image
to be stated in kilobytes or megabytes. Usage is
cbfstool coreboot.rom create 1048576 coreboot.bootblock
cbfstool coreboot.rom create 1024k coreboot.bootblock
cbfstool coreboot.rom create 1m coreboot.bootblock
to get an 1048576 bytes = 1024kb = 1mb image.

Kconfig also uses this instead of calculating bytes from kilobytes itself.

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

14 years agoMake coreboot load VSA from CBFS on amd/gx2.
Patrick Georgi [Mon, 21 Dec 2009 12:32:29 +0000 (12:32 +0000)]
Make coreboot load VSA from CBFS on amd/gx2.

You have to convert the VSA bios image to ELF using the following
commands (assuming i386/32bit binutils, if in doubt, use crossgcc's
i386-elf-* tools):

objcopy --set-start 0x20 --adjust-vma 0x60000 -I binary -O elf32-i386 -B i386 vsa.binary vsa.o
ld -e 0x60020 --section-start .data=0x60000 vsa.o -o vsa.elf

Then, after build, use
cbfstool coreboot.rom add-stage vsa.elf vsa l
to add it to the image.

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

14 years agoClean up amd/dbm690t and kontron/986lcd-m some more (not
Patrick Georgi [Fri, 18 Dec 2009 16:43:30 +0000 (16:43 +0000)]
Clean up amd/dbm690t and kontron/986lcd-m some more (not
fully). Also fix the kconfig build for HAVE_ACPI_RESUME.

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

14 years agoCONFIG_K8_MEM_BANK_B_ONLY and CONFIG_PCIE_CONFIGSPACE_HOLE aren't used _anywhere_...
Patrick Georgi [Fri, 18 Dec 2009 15:29:23 +0000 (15:29 +0000)]
CONFIG_K8_MEM_BANK_B_ONLY and CONFIG_PCIE_CONFIGSPACE_HOLE aren't used _anywhere_, so drop
them from view (they could be dropped from newconfig, too - but why bother?)

trivial

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

14 years agoFilter out some more K8/Fam10 specific options on unrelated boards.
Patrick Georgi [Fri, 18 Dec 2009 13:36:43 +0000 (13:36 +0000)]
Filter out some more K8/Fam10 specific options on unrelated boards.
Trivial.

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

14 years ago- speed up board comparison by only building abuild configs, not the whole
Stefan Reinauer [Fri, 18 Dec 2009 10:20:15 +0000 (10:20 +0000)]
- speed up board comparison by only building abuild configs, not the whole
  target.
- use a template for mktemp (fixes OSX error)
- convert all numbers to hex to make comparison easier.

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

14 years agoMake "KBuild report" a bit happier
Stefan Reinauer [Thu, 17 Dec 2009 18:47:50 +0000 (18:47 +0000)]
Make "KBuild report" a bit happier
- drop some unused options from "newconfig"
- filter some Kconfig only options from the report
- drop targets directory of a non existent mainboard.

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

14 years agominor bug in the cbfs documentation (trivial)
Stefan Reinauer [Thu, 17 Dec 2009 09:42:30 +0000 (09:42 +0000)]
minor bug in the cbfs documentation (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@4980 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMake sure that the h8dmr_fam10 has the proper version string.
Ward Vandewege [Wed, 16 Dec 2009 19:48:45 +0000 (19:48 +0000)]
Make sure that the h8dmr_fam10 has the proper version string.

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

14 years agoThe drivers for the k8t890 weren't being built. Increased heapsize.
Myles Watson [Mon, 14 Dec 2009 21:52:56 +0000 (21:52 +0000)]
The drivers for the k8t890 weren't being built. Increased heapsize.

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

14 years agocrossgcc: Fix MPFR download location
Peter Stuge [Sun, 13 Dec 2009 13:39:01 +0000 (13:39 +0000)]
crossgcc: Fix MPFR download location

We want to download a specific version so fetch it from the right directory.

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

14 years agoPush VSA into CBFS for amd/lx systems. It's not hooked up to
Patrick Georgi [Thu, 10 Dec 2009 17:38:30 +0000 (17:38 +0000)]
Push VSA into CBFS for amd/lx systems. It's not hooked up to
the build system yet, so some additional steps are necessary.
It's not that bad, given that the code didn't work before.

You have to convert the VSA bios image to ELF using the following
commands (assuming i386/32bit binutils, if in doubt, use crossgcc's
i386-elf-* tools):

objcopy --set-start 0x20 --adjust-vma 0x60000 -I binary -O elf32-i386 -B i386 vsa.binary vsa.o
ld -e 0x60020 --section-start .data=0x60000 vsa.o -o vsa.elf

Then, after build, use
cbfstool coreboot.rom add-stage vsa.elf vsa l
to add it to the image.

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

14 years agocbfstool: Fill memory allocated in create_cbfs_file() with 0xff
Peter Stuge [Sun, 6 Dec 2009 12:14:39 +0000 (12:14 +0000)]
cbfstool: Fill memory allocated in create_cbfs_file() with 0xff

This should improve programming speed a bit.

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

14 years agoTrivial fixes for kconfig. They fix all non-fam10 build failures.
Myles Watson [Wed, 2 Dec 2009 21:11:12 +0000 (21:11 +0000)]
Trivial fixes for kconfig.  They fix all non-fam10 build failures.

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

14 years agoTrivial fix for kconfig socket 441 (typo was 411) so that d945gclf builds.
Myles Watson [Wed, 2 Dec 2009 05:43:50 +0000 (05:43 +0000)]
Trivial fix for kconfig socket 441 (typo was 411) so that d945gclf builds.

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

14 years agoEliminate some noise in the output of compareboard on non-K8/Fam10h boards
Patrick Georgi [Tue, 1 Dec 2009 18:19:42 +0000 (18:19 +0000)]
Eliminate some noise in the output of compareboard on non-K8/Fam10h boards

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

14 years agoNot all boards cope with automatically sized bootblocks, leading to 4GB
Patrick Georgi [Tue, 1 Dec 2009 09:35:19 +0000 (09:35 +0000)]
Not all boards cope with automatically sized bootblocks, leading to 4GB
images due to the "helpful" 4GB rollover behaviour of ld(1).

Back out r4961, something like this should go in eventually, but more
completely tested and working.

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

14 years agoAtom only supports 32bit MTRRs (trivial)
Stefan Reinauer [Tue, 1 Dec 2009 08:15:38 +0000 (08:15 +0000)]
Atom only supports 32bit MTRRs (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@4970 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoTrivial. SCH4304 and SCH4307 have the same device id.
Zheng Bao [Tue, 1 Dec 2009 03:22:16 +0000 (03:22 +0000)]
Trivial. SCH4304 and SCH4307 have the same device id.

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

14 years agoAdd support for the SMSC SCH4304 Super I/O.
Zheng Bao [Mon, 30 Nov 2009 23:53:06 +0000 (23:53 +0000)]
Add support for the SMSC SCH4304 Super I/O.

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

14 years agoMaciej Pijanka tried to get the Biostar M6TLD running, and created a patch for
Maciej Pijanka [Sat, 28 Nov 2009 09:31:30 +0000 (09:31 +0000)]
Maciej Pijanka tried to get the Biostar M6TLD running, and created a patch for
440lx using the 440bx code as a template.

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

14 years agomsrtool: Fix simple breakage in r4964
Peter Stuge [Sat, 28 Nov 2009 05:30:57 +0000 (05:30 +0000)]
msrtool: Fix simple breakage in r4964

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

14 years agomsrtool: Add FreeBSD support using /dev/cpuctl ioctl interface
Andriy Gapon [Sat, 28 Nov 2009 05:21:42 +0000 (05:21 +0000)]
msrtool: Add FreeBSD support using /dev/cpuctl ioctl interface

Signed-off-by: Andriy Gapon <avg@icyb.net.ua>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4965 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agomsrtool: Make configure more POSIX sh friendly
Andriy Gapon [Sat, 28 Nov 2009 04:54:33 +0000 (04:54 +0000)]
msrtool: Make configure more POSIX sh friendly

Change a few bash-specific constructs to more portable syntax specified by
POSIX.  After the change the script keeps working with bash interpreter and
can also be interpreted by FreeBSD /bin/sh.

Signed-off-by: Andriy Gapon <avg@icyb.net.ua>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4964 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agomsrtool: Actually do PREFIX substitution in Makefile
Peter Stuge [Sat, 28 Nov 2009 04:45:34 +0000 (04:45 +0000)]
msrtool: Actually do PREFIX substitution in Makefile

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

14 years agoEliminate special case id.inc/id.lds in favor of a configuration variable ID_SECTION_...
Patrick Georgi [Fri, 27 Nov 2009 16:55:13 +0000 (16:55 +0000)]
Eliminate special case id.inc/id.lds in favor of a configuration variable ID_SECTION_OFFSET
which is normally set to 0x10 (the current default) and set to 0x80 (the current alternative)
where necessary (if romstraps get in the way).
For Kconfig, the special case is set per southbridge (as these define the necessity for this
workaround), for newconfig it's added to each single board.

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

14 years agoLet ld(1) calculate the required size for code in the bootblock
Maciej Pijanka [Fri, 27 Nov 2009 14:32:17 +0000 (14:32 +0000)]
Let ld(1) calculate the required size for code in the bootblock
automatically.

Signed-off-by: Maciej Pijanka <maciej.pijanka@gmail.com>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4961 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoReally hook up s2850 and s2875. Trivial.
Patrick Georgi [Fri, 27 Nov 2009 11:04:08 +0000 (11:04 +0000)]
Really hook up s2850 and s2875. Trivial.

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

14 years agoMake newconfig and kconfig agree on MAINBOARD_PCI_SUBSYSTEM_{VENDOR,DEVICE}_ID
Patrick Georgi [Fri, 27 Nov 2009 11:03:20 +0000 (11:03 +0000)]
Make newconfig and kconfig agree on MAINBOARD_PCI_SUBSYSTEM_{VENDOR,DEVICE}_ID
Usually, this means adding values to Kconfig, but in a few cases, adding values
to newconfig, too (which doesn't hurt).

Also really hook up tyan/s2850 and tyan/s2875 to kconfig, and have them still
build.

Trivial and stupid kconfig changes, just lots of them.

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

14 years agoRemove commented out example MSR definitions
Peter Stuge [Thu, 26 Nov 2009 14:03:25 +0000 (14:03 +0000)]
Remove commented out example MSR definitions

Now there are definitions for actual MSRs that can be referenced instead.

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

14 years agoAdd the following GeodeLX memory controller MSRs
Nathan Williams [Thu, 26 Nov 2009 13:54:40 +0000 (13:54 +0000)]
Add the following GeodeLX memory controller MSRs

0x20000018 MC_CF07_DATA
0x20000019 MC_CF8F_DATA
0x2000001a MC_CF1017_DATA
0x2000001b MC_CFPERF_CNT1
0x2000001c MC_PERFCNT2
0x2000001d MC_CFCLK_DBUG

Signed-off-by: Nathan Williams <nathan@traverse.com.au>
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Nathan Williams <nathan@traverse.com.au>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4957 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoTrivial style changes, replace a few C++ type comments, and some code reuse
Peter Stuge [Wed, 25 Nov 2009 08:35:59 +0000 (08:35 +0000)]
Trivial style changes, replace a few C++ type comments, and some code reuse

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

14 years agoThis patch is buzzer of TechNexion TIM-5690.
Libra Li [Wed, 25 Nov 2009 08:14:04 +0000 (08:14 +0000)]
This patch is buzzer of TechNexion TIM-5690.

I forgot to svn add the speaker.c and speaker.h.

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

14 years agoThis patch is buzzer of TechNexion TIM-5690.
Libra Li [Wed, 25 Nov 2009 07:48:24 +0000 (07:48 +0000)]
This patch is buzzer of TechNexion TIM-5690.

Change EARLY_STAGE into __PRE_RAM__.

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

14 years agomsrtool: Fix Geode LX probe function, Family/Model were swapped
Peter Stuge [Wed, 25 Nov 2009 02:25:37 +0000 (02:25 +0000)]
msrtool: Fix Geode LX probe function, Family/Model were swapped

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

14 years agoMake the kconfig-style build work in mingw:
Patrick Georgi [Sat, 21 Nov 2009 19:54:02 +0000 (19:54 +0000)]
Make the kconfig-style build work in mingw:
* use relative paths in ldscript.ld and crt0_includes.h
* avoid use of dd(1) in xcompile
* build libregex for kconfig, if necessary
* work around missing utsname on win32
* unlink targets before rename on win32
* implement (crude) mkstemp for win32
* avoid open/read/close, use fopen/fread/fclose instead
* don't free certain data structures in romcc on win32 to
  avoid crashes (likely use-after-free())
* handle "\CRLF" and win32 style absolute paths (X:/ or X:\)
  in romcc
* make lzma (part of cbfstool) build on XP
* implement ntohl/htonl on win32
* handle CRLF in awk script
* set larger stack for romcc on win32

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

14 years agoAdd GLCP_SYS_RSTPLL MSR defines for GeodeLX
Peter Stuge [Sat, 21 Nov 2009 06:02:48 +0000 (06:02 +0000)]
Add GLCP_SYS_RSTPLL MSR defines for GeodeLX

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Nathan Williams <nathan@traverse.com.au>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4951 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoTrivial fix for tyan/s2912 to build. Remove overspecified options in Config.lb.
Myles Watson [Thu, 19 Nov 2009 14:25:31 +0000 (14:25 +0000)]
Trivial fix for tyan/s2912 to build.  Remove overspecified options in Config.lb.

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

14 years agoUpdate amdk8/util.c since __PRE_RAM__. Make node & link more unique.
Myles Watson [Wed, 18 Nov 2009 17:10:36 +0000 (17:10 +0000)]
Update amdk8/util.c since __PRE_RAM__.  Make node & link more unique.

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

14 years agoThis is a patch to control the DIP switch and digital I/O.
Libra Li [Wed, 18 Nov 2009 03:47:34 +0000 (03:47 +0000)]
This is a patch to control the DIP switch and digital I/O.

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

14 years agoSilence two warnings. Only use the Qemu hard-coded address for VGA devices.
Myles Watson [Tue, 17 Nov 2009 15:20:22 +0000 (15:20 +0000)]
Silence two warnings.  Only use the Qemu hard-coded address for VGA devices.

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

14 years agoInitialize memory before using it. put_bits wants it that way.
Patrick Georgi [Tue, 17 Nov 2009 11:52:18 +0000 (11:52 +0000)]
Initialize memory before using it. put_bits wants it that way.
Trivial.

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

14 years agomsrtool: Add comment with DirectIO URL to the code where it is used.
Peter Stuge [Mon, 16 Nov 2009 17:29:22 +0000 (17:29 +0000)]
msrtool: Add comment with DirectIO URL to the code where it is used.

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

14 years agoFix manual (non-kconfig) build of the following boards, due to
Uwe Hermann [Sat, 14 Nov 2009 19:34:55 +0000 (19:34 +0000)]
Fix manual (non-kconfig) build of the following boards, due to
missing renames of CONFIG_HAVE_PIRQ_TABLE to CONFIG_GENERATE_PIRQ_TABLE:

 - iwill/dk8s2
 - iwill/dk8x
 - emulation/qemu-x86
 - iei/juki-511p
 - tyan/s1846
 - msi/ms7135
 - arima/hdama

Build-tested for the QEMU target and IEI JUKI-511P.

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

14 years agoComplete the Kconfig of socket_AM2r2.
Zheng Bao [Fri, 13 Nov 2009 06:43:33 +0000 (06:43 +0000)]
Complete the Kconfig of socket_AM2r2.
This patch is from socket_F_1207, even though the fam10
can not be "make menuconfig"ed currently.

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

14 years agoCosmetics (trivial).
Uwe Hermann [Thu, 12 Nov 2009 20:06:32 +0000 (20:06 +0000)]
Cosmetics (trivial).

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

14 years agoPrint size of file on cbfs_add_file failure. The size of the file after
Myles Watson [Thu, 12 Nov 2009 17:46:59 +0000 (17:46 +0000)]
Print size of file on cbfs_add_file failure.  The size of the file after
compression is nice to know.  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@4941 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdapt ROM_IMAGE_SIZE, too. ROMBASE should probably be defined
Patrick Georgi [Thu, 12 Nov 2009 17:25:16 +0000 (17:25 +0000)]
Adapt ROM_IMAGE_SIZE, too. ROMBASE should probably be defined
by ROM_IMAGE_SIZE (so ROM_IMAGE_SIZE + ROMBASE - 4GB == 0),
but that's for another patch.

Should fix the issues created by the bootblock cleanup patch.

Build tested on kontron/986lcd-m, 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@4940 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd CONFIG_WARNINGS_ARE_ERRORS and set it for qemu.
Myles Watson [Thu, 12 Nov 2009 16:38:03 +0000 (16:38 +0000)]
Add CONFIG_WARNINGS_ARE_ERRORS and set it for qemu.

Remove all remaining warnings from qemu.

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

14 years agoTrivial debug print format string fix for romcc.
Myles Watson [Thu, 12 Nov 2009 16:20:04 +0000 (16:20 +0000)]
Trivial debug print format string fix for romcc.

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

14 years agoGet rid of the ugly warning the right way.
Myles Watson [Thu, 12 Nov 2009 13:48:39 +0000 (13:48 +0000)]
Get rid of the ugly warning the right way.

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

14 years agoRevert my too-hasty commit.
Myles Watson [Wed, 11 Nov 2009 23:59:19 +0000 (23:59 +0000)]
Revert my too-hasty commit.

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

14 years agoSilence an ugly-looking warning. Two casts were not enough, so just don't cast
Myles Watson [Wed, 11 Nov 2009 23:32:36 +0000 (23:32 +0000)]
Silence an ugly-looking warning.  Two casts were not enough, so just don't cast
it.  Trust the option_table generator to get the length correct.

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

14 years agoRework bootblock size handling:
Patrick Georgi [Wed, 11 Nov 2009 21:32:23 +0000 (21:32 +0000)]
Rework bootblock size handling:
- don't pretend to create a bootblock as large
  as the ROM in Kconfig (it's 64k at most)
- don't pretend to accept a bootblocksize value
  in cbfstool create (it ignored it)
- patch up the build systems to keep it working

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

14 years agoHelp track down enable_rom issues in CBFS. If the magic
Patrick Georgi [Wed, 11 Nov 2009 19:31:53 +0000 (19:31 +0000)]
Help track down enable_rom issues in CBFS. If the magic
looks like unmapped memory, point to the wiki page with
more information.

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

14 years ago* Simplify acpi_add_table
Stefan Reinauer [Tue, 10 Nov 2009 22:17:15 +0000 (22:17 +0000)]
* Simplify acpi_add_table
* fix some comments
* Simplify ACPI wakeup code and make it work without a memory hole
* Add resume entries to global GDT so we don't need our own for resume.
* add ECDT description to acpi.h for anyone who might need it  ;-)
* remove rather stupid math to get the right number of MAX_ACPI_TABLES
  and just define a reasonable maximum for now.

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

14 years agoAdd detection and dump support for the Winbond WPCD376I.
Sean Young [Mon, 9 Nov 2009 22:34:17 +0000 (22:34 +0000)]
Add detection and dump support for the Winbond WPCD376I.

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

14 years agoEnable Multiboot table support (for GRUB2) by default.
Ronald G. Minnich [Mon, 9 Nov 2009 17:56:47 +0000 (17:56 +0000)]
Enable Multiboot table support (for GRUB2) by default.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Robert Millan <rmh.grub@aybabtu.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4930 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd a "locate" function cbfstool, which helps you find
Patrick Georgi [Mon, 9 Nov 2009 17:18:02 +0000 (17:18 +0000)]
Add a "locate" function cbfstool, which helps you find
out a suitable address to put a XIP stage to.

Specifically, you pass it the file (to get its filesize), its filename
(as the header has a variable length that depends on it), and the
granularity requirement it has to fit in (for XIP).
The granularity is MTRR-style: when you request 0x10000, cbfstool looks
for a suitable place in a 64kb-aligned 64kb block.

cbfstool simply prints out a hex value which is the start address of a
suitably located free memory block. That value can then be used with
cbfs add-stage to store the file in the ROM image.

It's a two-step operation (instead of being merged into cbfs add-stage)
because the image must be linked twice: First, with some bogus, but safe
base address (eg. 0) to figure out the target address (based on file
size). Then a second time at the target address.

The work flow is:
 - link file
 - cbfstool locate
 - link file again
 - cbfstool add-stage.

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

14 years agoThese are post codes for TIM-5690 LED debug message.
Libra Li [Mon, 9 Nov 2009 11:53:41 +0000 (11:53 +0000)]
These are post codes for TIM-5690 LED debug message.

Signed-off-by: Libra Li <libra.li@technexion.com>
Added object reference to Config.lb, too and
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4928 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove drivers/pci/onboard. The only purpose was for option ROMs, which are
Myles Watson [Fri, 6 Nov 2009 23:42:26 +0000 (23:42 +0000)]
Remove drivers/pci/onboard.  The only purpose was for option ROMs, which are
now handled more generically using CBFS.

Simplify the option ROM code in device/pci_rom.c, since there are only two ways
to get a ROM address now (CBFS and the device) and add an exception for qemu.

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

14 years agoRemove some white space and comment differences from devicetree.cb and Config.lb
Myles Watson [Fri, 6 Nov 2009 17:32:32 +0000 (17:32 +0000)]
Remove some white space and comment differences from devicetree.cb and Config.lb
files.

These boards have non-trivial differences:
gigabyte/m57sli
kontron/986lcd-m
dell/s1850
via/epia-m700

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

14 years agoDrop all pre-CBFS rom_address entries in Config.lb/devicetree.cb.
Uwe Hermann [Fri, 6 Nov 2009 17:11:05 +0000 (17:11 +0000)]
Drop all pre-CBFS rom_address entries in Config.lb/devicetree.cb.

Since we have CBFS setting rom_address in board files is no longer
necessary.

Also, drop vga_rom_address from RS690 completely, it was never used
in the code.

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

14 years agoRevert the deletion of drivers/pci/onboard that snuck in ahead of its time.
Myles Watson [Fri, 6 Nov 2009 17:09:11 +0000 (17:09 +0000)]
Revert the deletion of drivers/pci/onboard that snuck in ahead of its time.

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

14 years agoSplit the two usages of __ROMCC__:
Myles Watson [Fri, 6 Nov 2009 17:02:51 +0000 (17:02 +0000)]
Split the two usages of __ROMCC__:
__ROMCC__ now means "Don't use prototypes, since romcc doesn't support them."
__PRE_RAM__ means "Use simpler versions of functions, and no device tree."

There are probably some places where both are tested, but only one is needed.

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

14 years agoRemove hard coded bus numbers from arima/hdama mptable code and fix warnings.
Myles Watson [Fri, 6 Nov 2009 15:31:49 +0000 (15:31 +0000)]
Remove hard coded bus numbers from arima/hdama mptable code and fix warnings.

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

14 years agoAdd debugging utility file for dumping routing registers on K8.
Myles Watson [Thu, 5 Nov 2009 21:02:35 +0000 (21:02 +0000)]
Add debugging utility file for dumping routing registers on K8.

Ported from Ron's code in v3.

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

14 years agoDon't try to set fixed resources. Trivial.
Myles Watson [Thu, 5 Nov 2009 20:06:19 +0000 (20:06 +0000)]
Don't try to set fixed resources.  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@4918 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agofix length field in dmi tables. Newer DMI versions through errors
Stefan Reinauer [Thu, 5 Nov 2009 18:08:16 +0000 (18:08 +0000)]
fix length field in dmi tables. Newer DMI versions through errors

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

14 years agoif x86emu was running for VGA init a corrupted low table RSDP
Stefan Reinauer [Thu, 5 Nov 2009 18:06:43 +0000 (18:06 +0000)]
if x86emu was running for VGA init a corrupted low table RSDP
is generated in the F segment. Clear the memory before generating an
RSDP to fix the problem.

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

14 years agobiosemu (non-yabel) cleanup
Stefan Reinauer [Thu, 5 Nov 2009 17:24:03 +0000 (17:24 +0000)]
biosemu (non-yabel) cleanup
* Drop pcbios folder that only exists for a single function
* include int1a handler in biosemu.c
* Wipe a lot of dead code, and set up F segment correctly
* include return value check from yabel.

On the long run we should teach yabel to be able to run with a reduced feature
set, ie. no emulation of (almost) all system hardware. Then we could drop the
non-yabel x86emu.
But for now this patch cleans up the non-yabel biosemu.c to a state where it's
not all that ugly anymore..

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

14 years agofix Qemu
Stefan Reinauer [Thu, 5 Nov 2009 12:44:50 +0000 (12:44 +0000)]
fix Qemu

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

14 years agohttp://www.coreboot.org/pipermail/coreboot/2007-October/025740.html
Stefan Reinauer [Thu, 5 Nov 2009 12:38:34 +0000 (12:38 +0000)]
coreboot.org/pipermail/coreboot/2007-October/025740.html

This function is not called right now,... Please step in and fix up your code,
folks.

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

14 years agoIf the coreboot and filo overlap, it will "slice off" a piece at the
Zheng Bao [Thu, 5 Nov 2009 10:02:59 +0000 (10:02 +0000)]
If the coreboot and filo overlap, it will "slice off" a piece at the
"beginning" or "end". In the beginning case, a new segment is inserted
before the current one.  But the ptr will move forward and doesn't
seem to have any other chance to process the "new" segment.

                ptr ---------+     move --->
                             |
                             V
        +--------+       +--------+
        |        |       |        |
        |  new   | <---> |current | <---> .....
        |        |       |        |
        +--------+       +--------+

Now we change the ptr to the previous one and restart the loop. The
new and current segment will both be processed. Even if the current
segment is done twice, no new segment will come up and ptr will move
forward as we expect.

      +----------------ptr      move --->
      |
      V
 +--------+        +--------+       +--------+
 |        |        |        |       |        |
 |  prev  | <--->  |  new   | <---> |current | <---> .....
 |        |        |        |       |        |
 +--------+        +--------+       +--------+

It is tested and fixes the crashing on my AMD Family 10 board.

Some trailing whitespaces were 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@4912 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoGet the passed in Bus/Device/Function from the correct location on the
Mark Marshall [Thu, 5 Nov 2009 09:09:20 +0000 (09:09 +0000)]
Get the passed in Bus/Device/Function from the correct location on the
stack.

Signed-off-by: Mark Marshall <mark.marshall@csr.com>
Clarified the comment and
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4911 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoUse more care when implementing the PCI BIOS functions.
Mark Marshall [Thu, 5 Nov 2009 09:03:04 +0000 (09:03 +0000)]
Use more care when implementing the PCI BIOS functions.

The READ_CONF and WRITE_CONF functions would both do the wrong thing
if the passed in BDF was not found.  We should return and error to the
caller, but not stop running the option ROM.

Signed-off-by: Mark Marshall <mark.marshall@csr.com>
I slightly reworked the patch:

The 'CHECK' function seemed to be both wrong code and the wrong
number.

In fact the CHECK function was given the function number of
the "Microsoft Real-Time Compression Interface". Since this is definitely wrong
I removed the code.

Dropped some unneeded scopes, too, to make the code easier to read.

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

14 years agoWhen loading an option ROM use the class stored in the device to
Mark Marshall [Thu, 5 Nov 2009 08:10:12 +0000 (08:10 +0000)]
When loading an option ROM use the class stored in the device to
decide whether the option ROM is a special VGA type.

An S3 card that I've got has the wrong class in the VGA BIOS.
(A Stealth 64 DRAM T PCI, from 1994 - BIOS V2.02)

Signed-off-by: Mark Marshall <mark.marshall@csr.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4909 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix up typo in Socket 441 CPUs, and add a few (trivial) Kconfig files for them.
Stefan Reinauer [Wed, 4 Nov 2009 12:18:44 +0000 (12:18 +0000)]
Fix up typo in Socket 441 CPUs, and add a few (trivial) Kconfig files for 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@4908 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoSome fixes.
Patrick Georgi [Tue, 3 Nov 2009 15:02:15 +0000 (15:02 +0000)]
Some fixes.
Atom does not like 36bit MTRRs in CAR setup.
Enable XIP setup again (works with 32bit MTRRs)
Keep code more similar to 6ex code..

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
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@4907 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agox86emu: Add support for the following opcodes:
Stefan Reinauer [Tue, 3 Nov 2009 14:59:43 +0000 (14:59 +0000)]
x86emu: Add support for the following opcodes:

* SMSW
* INVD/WBINVD
* RDMSR/WRMSR
* CPUID

The implementation is kept very simple (mostly dummies) but it should get
us successfully through the Poulsbo VGA OPROM code in order to determine
further requirements.

Also, fix up a lot of warnings (mostly about missing prototypes for
functions that should be static anyways)

This version adds a break in smsw that was missing in the patch that was sent
to the list.

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

14 years agoAdd 82Q35/P35/Q33/G33/G31/P31 support to inteltool.
Loïc Grenié [Mon, 2 Nov 2009 15:01:49 +0000 (15:01 +0000)]
Add 82Q35/P35/Q33/G33/G31/P31 support to inteltool.
The registers are (as far as I can tell) unchanged with respect to those
of the PM965.

Signed-off-by: Loïc Grenié <loic.grenie@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4905 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agotypo. trivial. Then -> Than.
Zheng Bao [Sun, 1 Nov 2009 09:18:23 +0000 (09:18 +0000)]
typo. trivial. Then -> Than.

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

14 years agoSet SB_HT_CHAIN_ON_BUS0 correctly for arima/hdama. Trivial.
Myles Watson [Sat, 31 Oct 2009 22:13:04 +0000 (22:13 +0000)]
Set SB_HT_CHAIN_ON_BUS0 correctly for arima/hdama.  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@4903 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoOnly remove .xcompile with distclean. Look for crossgcc in util.
Myles Watson [Sat, 31 Oct 2009 20:47:14 +0000 (20:47 +0000)]
Only remove .xcompile with distclean.  Look for crossgcc in util.

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

14 years agoADLO has long been replaced by SeaBIOS, and it's also in v1 if someone needs
Stefan Reinauer [Fri, 30 Oct 2009 20:38:15 +0000 (20:38 +0000)]
ADLO has long been replaced by SeaBIOS, and it's also in v1 if someone needs
it...
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@4900 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agodrop svn:externals in the tree and add it locally.
Stefan Reinauer [Fri, 30 Oct 2009 18:16:09 +0000 (18:16 +0000)]
drop svn:externals in the tree and add it locally.

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

14 years agonew utility.
Stefan Reinauer [Fri, 30 Oct 2009 16:54:52 +0000 (16:54 +0000)]
new utility.

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

14 years agocoreboot repository cleanup
Stefan Reinauer [Fri, 30 Oct 2009 16:53:37 +0000 (16:53 +0000)]
coreboot repository cleanup

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

14 years agoclean up coreboot repo structure.
Stefan Reinauer [Fri, 30 Oct 2009 16:51:46 +0000 (16:51 +0000)]
clean up coreboot repo structure.

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

14 years agoFix, um... a typo.
Uwe Hermann [Fri, 30 Oct 2009 13:10:03 +0000 (13:10 +0000)]
Fix, um... a typo.

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

14 years agoAllow per-northbridge and per-board VGA BIOS file name and PCI ID defaults.
Uwe Hermann [Fri, 30 Oct 2009 12:56:59 +0000 (12:56 +0000)]
Allow per-northbridge and per-board VGA BIOS file name and PCI ID defaults.

Of course, the user can still override those defaults, if needed.

Add defaults for VIA pc2500e, Kontron 986LCD-M/mITX, MSI MS-6178.

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

14 years agoRemove some warnings from the tyan s2895.
Myles Watson [Fri, 30 Oct 2009 02:08:07 +0000 (02:08 +0000)]
Remove some warnings from the tyan s2895.

Declare superio functions to be static and remove duplicates.

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

14 years agoSplit a print statement that called dev_path twice, and add a warning comment.
Myles Watson [Thu, 29 Oct 2009 21:27:43 +0000 (21:27 +0000)]
Split a print statement that called dev_path twice, and add a warning comment.

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

14 years agoAdd prototypes to silence these warnings.
Myles Watson [Thu, 29 Oct 2009 16:49:50 +0000 (16:49 +0000)]
Add prototypes to silence these warnings.
src/lib/gcc.c:30: warning: no previous prototype for '__wrap___divdi3'

The prototypes were not added to lib.h because the functions should never be
called directly.

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

14 years agoComment out option ROM line in Config-abuild.lb to fix build.
Myles Watson [Wed, 28 Oct 2009 19:56:34 +0000 (19:56 +0000)]
Comment out option ROM line in Config-abuild.lb to fix 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@4887 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1