coreboot.git
14 years agoAdd EXPERT kconfig option so we can hide more advanced options
Uwe Hermann [Sun, 18 Oct 2009 18:35:50 +0000 (18:35 +0000)]
Add EXPERT kconfig option so we can hide more advanced options
from beginners who should rather not touch them unless they know what
they do.

Also, add a random Kconfig help comment.

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

14 years agoDrop a duplicated implementation of failover.c.
Uwe Hermann [Sun, 18 Oct 2009 18:27:42 +0000 (18:27 +0000)]
Drop a duplicated implementation of failover.c.

Abuild-tested.

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

14 years agoSimplify Kconfig files by using "select" where possible (trivial).
Uwe Hermann [Sun, 18 Oct 2009 13:47:30 +0000 (13:47 +0000)]
Simplify Kconfig files by using "select" where possible (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@4806 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoDrop dead/unused code (trivial).
Uwe Hermann [Sun, 18 Oct 2009 13:42:50 +0000 (13:42 +0000)]
Drop dead/unused code (trivial).

DEBUG_SETNORTHB is never defined, and even if it was, setnorthb()
is never called anyway.

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

14 years agoRemove this, we no longer need it.
Ronald G. Minnich [Sun, 18 Oct 2009 03:15:59 +0000 (03:15 +0000)]
Remove this, we no longer need it.

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

14 years agoMove files from src/cpu/x86/{fpu,mmx,sse}/ to x86/
Peter Stuge [Sat, 17 Oct 2009 15:01:00 +0000 (15:01 +0000)]
Move files from src/cpu/x86/{fpu,mmx,sse}/ to x86/

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

14 years agoRemove CONFIG_ from #defines that aren't config variables. Trivial.
Myles Watson [Sat, 17 Oct 2009 13:25:07 +0000 (13:25 +0000)]
Remove CONFIG_ from #defines that aren't config variables.  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@4802 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoSilence src/Kconfig:349:warning: config symbol defined without type
Peter Stuge [Sat, 17 Oct 2009 03:00:04 +0000 (03:00 +0000)]
Silence src/Kconfig:349:warning: config symbol defined without type

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

14 years agoRemove some more instances of including previous empty x86/fpu/Makefile.inc
Peter Stuge [Sat, 17 Oct 2009 02:51:26 +0000 (02:51 +0000)]
Remove some more instances of including previous empty x86/fpu/Makefile.inc

Thanks to Jakob and Uwe for spotting the mistake!

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

14 years agoDrop src/cpu/x86/fpu/{Config.lb,Makefile.inc} since they are also empty
Peter Stuge [Sat, 17 Oct 2009 01:12:42 +0000 (01:12 +0000)]
Drop src/cpu/x86/fpu/{Config.lb,Makefile.inc} since they are also empty

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

14 years agoMake COM port selection and BAUD rate a "choice" for better usability.
Uwe Hermann [Fri, 16 Oct 2009 22:39:55 +0000 (22:39 +0000)]
Make COM port selection and BAUD rate a "choice" for better usability.

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

14 years agoDrop duplicate version of the documentation/cbfs.txt file as discussed.
Uwe Hermann [Fri, 16 Oct 2009 22:07:20 +0000 (22:07 +0000)]
Drop duplicate version of the documentation/cbfs.txt file as discussed.

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

14 years agoThis is a snapshot as the availability of the systems for this
Ronald G. Minnich [Fri, 16 Oct 2009 22:07:15 +0000 (22:07 +0000)]
This is a snapshot as the availability of the systems for this
project is now uncertain, and I can't invest the remaining time
needed to get it done.

Status is that memory is still not quite configured correctly. It is close
but here are DRAM Row Boundary registers.
Here is coreboot
60: 10 10 20 20 20 20 20 20 00 00 00 00 00 00 00 00
This is close. But:
60: 10 10 10 10 20 20 30 30 00 00 00 00 00 00 00 00
is the real hardware. So we are somehow missing those last slots. I think it's
because the SPD connections and the chip connections differ, some dumping
of RAM registers differ. But it's very close.

This is under serialice. Once we get to this point we get stuck here:
Copying coreboot to RAM.
Copying coreboot to RAM.
Copying coreboot to RAM.

Forever.

Here is the total config for 0:0.0 from coreboot:
PCI: 00:00.00
00: 86 80 90 35 06 00 90 00 0c 00 00 06 00 00 80 00
10: 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00
40: 09 00 05 41 10 00 00 00 00 00 00 00 00 00 00 00
50: 0c 60 2a 00 00 00 00 00 00 30 33 33 33 33 33 33
60: 10 10 20 20 20 20 20 20 00 00 00 00 00 00 00 00
70: 0a 0a 00 00 00 00 00 00 67 11 5e 55 1e 02 20 2c
80: 41 28 21 00 00 00 00 00 80 01 00 f0 00 00 00 00
90: 00 00 00 00 00 a1 04 39 aa aa 0c 30 5f 08 02 07
a0: 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00
b0: 32 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 44 c0 50 11 00 c0 ff 03 00 00 df 03 20 00 00 e0
d0: 02 28 00 0e 07 00 00 00 00 00 93 b5 00 00 00 00
e0: 00 00 00 00 00 00 00 00 36 3c 00 00 00 00 00 00
f0: 00 00 00 00 3a 01 42 00 80 0f 0c 00 00 00 00 00

And from factory:
00:00.0 Host bridge: Intel Corporation E7520 Memory Controller Hub (rev 09)
00: 86 80 90 35 46 01 90 00 09 00 00 06 00 00 80 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 28 10 6c 01
30: 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00
40: 09 00 05 41 10 00 00 00 00 00 00 00 00 00 00 00
50: 0c 20 6a 00 00 00 00 00 00 10 11 11 01 00 00 10
60: 10 10 10 10 20 20 30 30 00 00 00 00 00 00 00 00
70: 0a 00 0a 0a 00 00 00 00 44 11 5e 55 1e 02 20 2c
80: 41 28 41 00 00 00 00 00 80 01 00 f0 88 00 00 00
90: 00 00 00 00 00 aa 04 39 aa aa 0c 30 75 08 12 07
a0: 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00
b0: cc 00 99 55 00 00 00 00 00 00 00 00 00 00 00 00
c0: 44 c0 50 33 00 e0 60 00 67 00 28 00 30 00 00 e0
d0: 02 28 00 0e 03 00 00 00 00 00 93 b5 00 00 00 00
e0: 00 00 00 00 00 00 00 00 3a 3c 00 00 00 00 00 00
f0: 00 00 00 00 10 01 02 00 80 0f 0c 00 00 00 00 00

I want to commit this because even if I get no further, someone else might.
Note that for serialice you need the following temporary patch as well:
Index: src/superio/nsc/pc8374/pc8374_early_init.c
===================================================================
--- src/superio/nsc/pc8374/pc8374_early_init.c (revision 4791)
+++ src/superio/nsc/pc8374/pc8374_early_init.c (working copy)
@@ -29,7 +29,8 @@
 static void pc8374_enable_dev(device_t dev, unsigned iobase)
 {
  pnp_set_logical_device(dev);
- pnp_set_enable(dev, 0);
+/* don't disable for now, it kills serialice */
+ pnp_set_enable(dev, 1);

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

14 years agoRevert deletion that snuck in to 4794. Sorry.
Myles Watson [Fri, 16 Oct 2009 20:15:06 +0000 (20:15 +0000)]
Revert deletion that snuck in to 4794.  Sorry.

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

14 years agoChange console code to emit SPEW with DEFAULT_CONSOLE_LOGLEVEL==8.
Myles Watson [Fri, 16 Oct 2009 19:29:45 +0000 (19:29 +0000)]
Change console code to emit SPEW with DEFAULT_CONSOLE_LOGLEVEL==8.

Make MAXIMUM_CONSOLE_LOGLEVEL >= DEFAULT_CONSOLE_LOGLEVEL.

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

14 years agoFix AP_CODE_IN_CAR (only selected for two boards), STACK_SIZE, and HEAP_SIZE.
Myles Watson [Fri, 16 Oct 2009 19:12:49 +0000 (19:12 +0000)]
Fix AP_CODE_IN_CAR (only selected for two boards), STACK_SIZE, and HEAP_SIZE.

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

14 years agoDrop empty cpu/x86/{mmx,sse}/{Config.lb,Makefile.inc} and remove references
Peter Stuge [Fri, 16 Oct 2009 18:27:13 +0000 (18:27 +0000)]
Drop empty cpu/x86/{mmx,sse}/{Config.lb,Makefile.inc} and remove references

Files in those directories are still used, but always with explicit path.

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

14 years agoDrop enable_mmx.inc. It reads (only) "Enabling mmx registers is a noop"
Peter Stuge [Fri, 16 Oct 2009 17:43:46 +0000 (17:43 +0000)]
Drop enable_mmx.inc. It reads (only) "Enabling mmx registers is a noop"

abuild tested

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

14 years agoSet default ROM sizes per-board to match the ROM chip that came
Uwe Hermann [Fri, 16 Oct 2009 17:37:20 +0000 (17:37 +0000)]
Set default ROM sizes per-board to match the ROM chip that came
with the respective board.

Of course, the user can still override the size in menuconfig.

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

14 years agoDrop unused and useless CONFIG_MAX_PCI_BUSES.
Uwe Hermann [Fri, 16 Oct 2009 16:39:40 +0000 (16:39 +0000)]
Drop unused and useless CONFIG_MAX_PCI_BUSES.

It was added by rsmith in r2273 on 20060424, when pci_locate_device() in
src/arch/i386/include/arch/romcc_io.h in fact scanned all busses:

 - for(; dev <= PCI_DEV(255, 31, 7); dev += PCI_DEV(0,0,1)) {
 + for(; dev <= PCI_DEV(CONFIG_MAX_PCI_BUSES, 31, 7); dev += PCI_DEV(0,0,1)) {

Today this looks like:

   for(; dev <= PCI_DEV(255|(((1<<CONFIG_PCI_BUS_SEGN_BITS)-1)<<8), 31, 7); dev += PCI_DEV(0,0,1)) {

and CONFIG_MAX_PCI_BUSES is never used anywhere.

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

14 years agoChange CONFIG_LB_MEM_TOPK to CONFIG_RAMTOP to match CONFIG_RAMBASE.
Myles Watson [Fri, 16 Oct 2009 16:32:57 +0000 (16:32 +0000)]
Change CONFIG_LB_MEM_TOPK to CONFIG_RAMTOP to match CONFIG_RAMBASE.

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

14 years agoFix IRQ9 and allow ACPI without an MP table for Tyan s289x.
Myles Watson [Fri, 16 Oct 2009 14:34:50 +0000 (14:34 +0000)]
Fix IRQ9 and allow ACPI without an MP table for Tyan s289x.

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

14 years agoFix kconfig setup for the VIA pc2500e.
Uwe Hermann [Fri, 16 Oct 2009 13:34:32 +0000 (13:34 +0000)]
Fix kconfig setup for the VIA pc2500e.

Add/drop Kconfig variables as needed.
In Makefile.inc just include Makefile.romccboard.inc with -mcpu=c3.

Build- and runtime-tested on hardware.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.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@4786 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoSimilar to r4626, change obj-y to driver-y for VIA C3 and C7.
Uwe Hermann [Fri, 16 Oct 2009 10:06:18 +0000 (10:06 +0000)]
Similar to r4626, change obj-y to driver-y for VIA C3 and C7.

Otherwise the following happens at runtime (tested on VIA pc2500e, C7):

  Initializing CPU #0
  CPU: vendor Centaur device 6a9
  CPU: family 06, model 0a, stepping 09
  Unknown cpu

We also change C3 as it is pretty clear that the same problem occurs there.

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

14 years agoDrop duplicate CPU subdirs-y entries for "../../x86/mtrr".
Uwe Hermann [Fri, 16 Oct 2009 10:03:50 +0000 (10:03 +0000)]
Drop duplicate CPU subdirs-y entries for "../../x86/mtrr".

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

14 years agoAdd CONFIG_VGA_ROM_RUN to dbm690t and pistachio, otherwise the
Zheng Bao [Fri, 16 Oct 2009 07:44:04 +0000 (07:44 +0000)]
Add CONFIG_VGA_ROM_RUN to dbm690t and pistachio, otherwise the
VGA ROM can not run. After make, run
> ./cbfs/cbfstool ./coreboot.rom add ../vga_bios.rom   pci1002,791f.rom  optionrom
to make the final image with vga bios.

The macro vga_rom_address is out-of-date when CBFS starts play its role. it also should
be eliminated from rs690/chip.h as below. But it will cause building error on other board, which I
cant make test on.

##    Index: src/southbridge/amd/rs690/chip.h
##    ===================================================================
##    --- src/southbridge/amd/rs690/chip.h (revision 4782)
##    +++ src/southbridge/amd/rs690/chip.h (working copy)
##    @@ -23,7 +23,6 @@
##     /* Member variables are defined in Config.lb. */
##     struct southbridge_amd_rs690_config
##     {
##    - u32 vga_rom_address; /* The location that the VGA rom has been appened. */
##      u8 gpp_configuration; /* The configuration of General Purpose Port, A/B/C/D/E. */
##      u8 port_enable; /* Which port is enabled? GFX(2,3), GPP(4,5,6,7) */
##      u8 gfx_dev2_dev3; /* for GFX Core initialization REFCLK_SEL */
##

Don't apply above patch about rs690/chip.h before every board has been 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@4783 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agothis is probably in vain because this tool should use the same x86emu as
Stefan Reinauer [Fri, 16 Oct 2009 01:08:07 +0000 (01:08 +0000)]
this is probably in vain because this tool should use the same x86emu as
coreboot in order to produce comparable results. But, this patch drops the
CONFIG_ from CONFIG_DEBUG because that was added by accident when we
automatically renamed coreboot variables to be consistent. "vgabios" is an
independent userspace utility, and it does not use newconfig nor Kconfig, so
it should not be converted. (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@4782 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoundo another accidential rename of X -> CONFIG_X (trivial)
Stefan Reinauer [Thu, 15 Oct 2009 22:40:41 +0000 (22:40 +0000)]
undo another accidential rename of X -> CONFIG_X (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@4781 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoStart documenting a few kconfig variables and user-visible options.
Uwe Hermann [Thu, 15 Oct 2009 17:49:07 +0000 (17:49 +0000)]
Start documenting a few kconfig variables and user-visible options.

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

14 years agoFix Kconfig for technexion/tim5690.
Libra Li [Thu, 15 Oct 2009 14:23:33 +0000 (14:23 +0000)]
Fix Kconfig for technexion/tim5690.

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

14 years agoAdd CONFIG_GENERATE_* for tables so that the user can select which tables not
Myles Watson [Thu, 15 Oct 2009 13:35:47 +0000 (13:35 +0000)]
Add CONFIG_GENERATE_* for tables so that the user can select which tables not
to build, but by default all the tables that are available are built.

Make PIRQ table build for qemu.

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

14 years agoAdd Kconfig support for kontron/kt960.
Myles Watson [Thu, 15 Oct 2009 13:16:40 +0000 (13:16 +0000)]
Add Kconfig support for kontron/kt960.

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

14 years agocbfs_and_run_core() did not check the return code of cbfs_load_stage()
Carl-Daniel Hailfinger [Wed, 14 Oct 2009 23:51:05 +0000 (23:51 +0000)]
cbfs_and_run_core() did not check the return code of cbfs_load_stage()
and jumped to (void*)-1 on error.
Die properly instead.
I didn't use die() because that caused a linker error.

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

14 years agoFix high tables address calculation on cn700 with VIDEO_MB > 0.
Myles Watson [Wed, 14 Oct 2009 20:49:49 +0000 (20:49 +0000)]
Fix high tables address calculation on cn700 with VIDEO_MB > 0.

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

14 years agoAdd forgotten target files for technexion/tim5690.
Libra Li [Wed, 14 Oct 2009 03:19:33 +0000 (03:19 +0000)]
Add forgotten target files for technexion/tim5690.

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

14 years agoWhite space and typo fixes. This makes it easier to compare the s2895 & s2892.
Myles Watson [Wed, 14 Oct 2009 03:09:26 +0000 (03:09 +0000)]
White space and typo fixes.  This makes it easier to compare the s2895 & s2892.

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

14 years agodelete white trailing spaces. It is done by the perl command.
Zheng Bao [Wed, 14 Oct 2009 02:56:00 +0000 (02:56 +0000)]
delete white trailing spaces. It is done by the perl command.
sh> perl -pi -e 's/[[:blank:]]+$//' $files
Trivial.

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

14 years agoUse CAR ck804 code with the s2892.
Myles Watson [Wed, 14 Oct 2009 02:38:24 +0000 (02:38 +0000)]
Use CAR ck804 code with the s2892.
Reset the s2891 so the HT speed gets updated.
Remove some PANTA comments.
Add SATA init from non-CAR version.

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

14 years agoWhite space change in preparation for a patch to unify handling of ck804.
Myles Watson [Tue, 13 Oct 2009 22:53:24 +0000 (22:53 +0000)]
White space change in preparation for a patch to unify handling of ck804.

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

14 years agoRevert some garbage that snuck into my trivial change, correct a spelling error.
Myles Watson [Tue, 13 Oct 2009 20:20:55 +0000 (20:20 +0000)]
Revert some garbage that snuck into my trivial change, correct a spelling error.

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

14 years agoRemove a couple more warnings. Trivial.
Myles Watson [Tue, 13 Oct 2009 20:00:09 +0000 (20:00 +0000)]
Remove a couple more warnings.  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@4768 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd support for the MSI MS-6156 board.
Uwe Hermann [Tue, 13 Oct 2009 19:21:44 +0000 (19:21 +0000)]
Add support for the MSI MS-6156 board.

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

14 years agoFix kontron/kt690 build.
Myles Watson [Tue, 13 Oct 2009 17:56:11 +0000 (17:56 +0000)]
Fix kontron/kt690 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@4766 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis patch support for the Technexion Tim-5690 mainboard.
Libra Li [Tue, 13 Oct 2009 16:56:58 +0000 (16:56 +0000)]
This patch support for the Technexion Tim-5690 mainboard.
It's an embedded AMD RS690/SB600 mainboard.

http://www.technexion.com/index.php/tim-5690

Myles added Kconfig support.

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

14 years agoThis patch adds (initial) support for the Kontron KT690 mainboard.
Stefan Reinauer [Tue, 13 Oct 2009 16:47:57 +0000 (16:47 +0000)]
This patch adds (initial) support for the Kontron KT690 mainboard.
It's an embedded AMD 690/SB600 mainboard with a Mobile Sempron CPU.

Issues with this port:
- hangs early during "Starting Windows" with Windows 7, after loading all the
  drivers
- sound is untested and probably not working
- powernow seems to be not working

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

14 years agoFix obvious typos (trivial).
Uwe Hermann [Tue, 13 Oct 2009 11:45:04 +0000 (11:45 +0000)]
Fix obvious typos (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@4763 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMake fam10 build (but not boot due to bootblock size problems.)
Myles Watson [Mon, 12 Oct 2009 22:39:08 +0000 (22:39 +0000)]
Make fam10 build (but not boot due to bootblock size problems.)

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

14 years agoAdd the compareboard utility which is useful for porting
Patrick Georgi [Mon, 12 Oct 2009 18:43:26 +0000 (18:43 +0000)]
Add the compareboard utility which is useful for porting
to kconfig.
Hook it up to kbuildall, too

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

14 years agoRemove useless udelay() duplication.
Uwe Hermann [Sun, 11 Oct 2009 18:21:45 +0000 (18:21 +0000)]
Remove useless udelay() duplication.

Abuild-tested for the boards that are touched.

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

14 years agoHAVE_ACPI_TABLES cleanups for kconfig:
Uwe Hermann [Sun, 11 Oct 2009 17:40:44 +0000 (17:40 +0000)]
HAVE_ACPI_TABLES cleanups for kconfig:

 - Add "select HAVE_ACPI_TABLES" for boards which need it.

 - Drop sections which set HAVE_ACPI_TABLES to 'n', that's the default.

 - Convert sections which set HAVE_ACPI_TABLES to 'y' to the
   shorter "select HAVE_ACPI_TABLES".

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

14 years agoMake console maximum/default log level a choice option.
Uwe Hermann [Sun, 11 Oct 2009 13:35:24 +0000 (13:35 +0000)]
Make console maximum/default log level a choice option.

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

14 years agoDrop "select CONSOLE_SERIAL8250" from QEMU, it's default-y anyway.
Uwe Hermann [Sat, 10 Oct 2009 16:19:12 +0000 (16:19 +0000)]
Drop "select CONSOLE_SERIAL8250" from QEMU, it's default-y anyway.

Tested on QEMU.

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

14 years agoAdd const to get rid of some warnings when passing quoted strings.
Myles Watson [Fri, 9 Oct 2009 20:13:43 +0000 (20:13 +0000)]
Add const to get rid of some warnings when passing quoted strings.
Remove an unused extern declaration.

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

14 years agoThis change allows us to see the spd on the s850, finally.
Ronald G. Minnich [Fri, 9 Oct 2009 20:07:48 +0000 (20:07 +0000)]
This change allows us to see the spd on the s850, finally.
There is an i2c mux out there. We found it using a user level program
that, as usual, began by inverting all gpios until we found out
what we needed to know. In the end, we just set up the GPIOs as
the factory bios does.

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

14 years agoRemove extra CONFIG variables.
Myles Watson [Fri, 9 Oct 2009 17:40:34 +0000 (17:40 +0000)]
Remove extra CONFIG variables.

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

14 years agoRemove default n statements to simplify .config and ldoptions files.
Myles Watson [Fri, 9 Oct 2009 17:39:35 +0000 (17:39 +0000)]
Remove default n statements to simplify .config and ldoptions files.

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

14 years agoMove the ulzma prototype out of the function to make the code easier to read.
Myles Watson [Fri, 9 Oct 2009 15:22:35 +0000 (15:22 +0000)]
Move the ulzma prototype out of the function to make the code easier to read.

Check the return value.  Minor formatting and LAR -> CBFS.

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

14 years agoRemaining boards are Kconfig'd now. Whether they work
Patrick Georgi [Fri, 9 Oct 2009 14:10:28 +0000 (14:10 +0000)]
Remaining boards are Kconfig'd now. Whether they work
or not still depends on how close the configuration
options are to what they should be.

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

14 years agoMore Kconfig-supported boards, and also kconfig support
Patrick Georgi [Fri, 9 Oct 2009 12:32:52 +0000 (12:32 +0000)]
More Kconfig-supported boards, and also kconfig support
for amd/socket_AM2R2, amd/socket_939, drivers/ati/ragexl

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

14 years agoMore kconfig cleanups:
Uwe Hermann [Fri, 9 Oct 2009 11:47:21 +0000 (11:47 +0000)]
More kconfig cleanups:

 - Use "default n" for all components that shall be "select"ed.

 - Use "0x0" instead of "0" for hex variables for clarity and to reduce
   the risk of people passing integer instead of hex values to such variables.

 - Add TODO comments for boards that have irq_tables.c but don' set
   CONFIG_HAVE_PIRQ_TABLE = 1. Someone with the hardware should test enabling.

 - ASUS M2V-MX SE doesn't have irq_tables.c so don't define
   IRQ_SLOT_COUNT in its Kconfig file.

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

14 years agoFix CS5535 build for kconfig, more kconfig boards (lippert, artec)
Patrick Georgi [Thu, 8 Oct 2009 20:17:14 +0000 (20:17 +0000)]
Fix CS5535 build for kconfig, more kconfig boards (lippert, artec)

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

14 years agoSimplify targets/amd/serengeti_cheetah/Config.lb. There were too many
Myles Watson [Thu, 8 Oct 2009 18:50:16 +0000 (18:50 +0000)]
Simplify targets/amd/serengeti_cheetah/Config.lb.  There were too many
variables being set incorrectly.

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

14 years agoThis dialogue on email was useful and hence included.
Ronald G. Minnich [Thu, 8 Oct 2009 17:10:20 +0000 (17:10 +0000)]
This dialogue on email was useful and hence included.

failover.inc MUST come after enable_sse or your CPU will hang.

> Can you say why?

yes. if you compile failover.c with romcc options that include sse,
then you'll see code like this in failover.inc:
mov eax, %xmm0

This will hang if you have not first enabled sse.
Verified yesterday on the dell s1850.

>
> Does it hang in the SSE code or in the failover code?

It will hang in failover code, if that code was compiled with sse enabled
AND if the sse registers are used.

>
> Does this mean that failover requires SSE in order to work?

It may or it may not.
But if you compile it with romcc options that include sse,
and it uses sse without sse being enabled, it will hang.
This is a particularly nasty bug in that the failover code is not
guaranteed to compile in a way that sse is used, even if sse is
enabled; hence, this could be very hard to catch.
I'm lucky this bug appeared as soon as it did.

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

14 years agoSet MMX and SSE where needed. Note that many boards don't even bother
Ronald G. Minnich [Thu, 8 Oct 2009 16:06:09 +0000 (16:06 +0000)]
Set MMX and SSE where needed. Note that many boards don't even bother
with this as many boards (AMD in particular) use CAR.

This list determined by a series of greps etc. on mainboards, no humans
were harmed in the making of this list.

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

14 years agoDisable x86emu for via based boards which bring
Patrick Georgi [Thu, 8 Oct 2009 15:12:31 +0000 (15:12 +0000)]
Disable x86emu for via based boards which bring
their own vgabios.c

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

14 years agoMore kconfig:
Patrick Georgi [Thu, 8 Oct 2009 14:31:56 +0000 (14:31 +0000)]
More kconfig:
AMD LX
AMD SC520
boards by iei, pcengines, technexion, technologic, thomson

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

14 years agoOops, wrong type for Kconfig value. Trivial fix
Patrick Georgi [Thu, 8 Oct 2009 10:19:20 +0000 (10:19 +0000)]
Oops, wrong type for Kconfig value. Trivial fix

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

14 years agoKconfig: AMD Fam10, all Tyan boards.
Patrick Georgi [Thu, 8 Oct 2009 07:43:09 +0000 (07:43 +0000)]
Kconfig: AMD Fam10, all Tyan boards.
Fam10 doesn't build due to size constraints at this time.

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

14 years agoEmergency fix. Failover.inc can end up with code that uses sse. It has
Ronald G. Minnich [Wed, 7 Oct 2009 22:53:30 +0000 (22:53 +0000)]
Emergency fix. Failover.inc can end up with code that uses sse. It has
to be run AFTER SSE is set up. I just had this problem cause a failure
today.

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

14 years agoMajor CONFIG_IRQ_TABLE_COUNT fixing and cleanups. Some of these boards
Uwe Hermann [Wed, 7 Oct 2009 21:51:33 +0000 (21:51 +0000)]
Major CONFIG_IRQ_TABLE_COUNT fixing and cleanups. Some of these boards
and PIRQ tables were actually wrong, I cannot imagine they ever
worked properly.

 - Use CONFIG_IRQ_TABLE_COUNT in all irq_tables.c files instead of
   hard-coded numbers.

 - Make all CONFIG_IRQ_TABLE_COUNT values in irq_tables.c match Options.lb.

 - Make all CONFIG_IRQ_TABLE_COUNT values match the actual number of entries
   in the irq_tables.c file.

 - Set all CONFIG_IRQ_SLOT_COUNT values in src/.../Options.lb for those
   boards where they were set to 0 (in order to be overridden in
   the respective targets/.../Config.lb).

   This is mainly done to aid Patrick's scripts for kconfig conversion.

 - Fix a number of comments in irq_tables.c files.

 - Drop CONFIG_IRQ_SLOT_COUNT usage from boards that don't have irq_tables.c:
    - tyan/s1846
    - asus/a8v-e_se
    - asus/m2v-mx_se

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

14 years agoKconfig allows you to run all PCI ROMs, VGA only, or non-VGA only.
Myles Watson [Wed, 7 Oct 2009 18:41:08 +0000 (18:41 +0000)]
Kconfig allows you to run all PCI ROMs, VGA only, or non-VGA only.
Update the code to support that too.

Remove an unused variable.

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

14 years agoFix trivial typo in Kconfig spotted by Peter, introduced by me.
Patrick Georgi [Wed, 7 Oct 2009 18:07:49 +0000 (18:07 +0000)]
Fix trivial typo in Kconfig spotted by Peter, introduced by me.

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

14 years agoGet rid of early_serial, it is now a generic function in early_init.
Ronald G. Minnich [Wed, 7 Oct 2009 18:03:41 +0000 (18:03 +0000)]
Get rid of early_serial, it is now a generic function in early_init.
Add some more enables to the s1850.

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

14 years agoConvert all "default y" options to "select FOO" (shorter).
Uwe Hermann [Wed, 7 Oct 2009 16:29:12 +0000 (16:29 +0000)]
Convert all "default y" options to "select FOO" (shorter).

Also, drop per-board CONSOLE_VGA/PCI_ROM_RUN while I'm at it, they're
global options in kconfig.

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

14 years agoVarious Kconfig fixes and improvements:
Uwe Hermann [Wed, 7 Oct 2009 16:15:40 +0000 (16:15 +0000)]
Various Kconfig fixes and improvements:

 - Add helps texts to multiple user-visible Kconfig options.

 - Improve some menu and option names.

 - PAYLOAD_NONE should come before PAYLOAD_ELF, so that you scroll down
   (instead of up) when changing "no payload" to "ELF payload" (more
   intuitive, IMHO).

 - s/cbfs/cbfstool/.

 - Add some TODO items where needed.

 - Put GDB_STUB in a "Debugging" menu, no options should be top-level.
   There'll be more debug options later, I'm pretty sure.

 - Start converting help texts which are not user-visible to #-comments.

 - Re-order some options for more intuitive menus.

 - Set ARCH_X86 and ARCH_POWERPC to "default n", each boards selects them.

 - "Maximum reboot count" should proabably not be user-selectable, or at
   most if CONFIG_EXPERT (yet to be added) is enabled. It does definately
   not need its own "Misc options" menu.

 - Set PCI_ROM_RUN and VGA_ROM_RUN to "default y", most users will want to
   run option ROMs.

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

14 years agoFix intel board build on kconfig. MAX_CPUS was missing
Patrick Georgi [Wed, 7 Oct 2009 16:00:40 +0000 (16:00 +0000)]
Fix intel board build on kconfig. MAX_CPUS was missing

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

14 years agoKconfig:
Patrick Georgi [Wed, 7 Oct 2009 15:30:58 +0000 (15:30 +0000)]
Kconfig:
- Add AMD Socket 754,
- Fix MCP55 boards (romstrap)
- Implement remaining MSI boards

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

14 years agoEnable full ROM access on AMD CS5530(A) (needed for CBFS).
Uwe Hermann [Wed, 7 Oct 2009 14:36:16 +0000 (14:36 +0000)]
Enable full ROM access on AMD CS5530(A) (needed for CBFS).

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

14 years agoMore boards in kconfig, and moved -O2 flag for romcc into
Patrick Georgi [Wed, 7 Oct 2009 14:13:36 +0000 (14:13 +0000)]
More boards in kconfig, and moved -O2 flag for romcc into
ROMCCFLAGS, so boards can override it where necessary.

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

14 years agoUse
Uwe Hermann [Tue, 6 Oct 2009 22:25:21 +0000 (22:25 +0000)]
Use
  select UDELAY_TSC
  select TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
for all 440BX and i810 boards as per Options.lb.

The UDELAY_IO / TSC / LAPIC / HPET setup will probably be checked
and improved later when the kconfig transition is done. For now
we keep the same values as in Options.lb.

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

14 years agoVarious fixes to Kconfig: All kconfig-boards should have a
Patrick Georgi [Tue, 6 Oct 2009 20:48:07 +0000 (20:48 +0000)]
Various fixes to Kconfig: All kconfig-boards should have a
complete set of variables now, though they might still have
the wrong values.

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

14 years agoRemove duplicate device trees for Tyan s289x. Remove pre-CBFS statements.
Myles Watson [Tue, 6 Oct 2009 20:36:34 +0000 (20:36 +0000)]
Remove duplicate device trees for Tyan s289x.  Remove pre-CBFS statements.

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

14 years agoBackport facility to specify a local coreboot version suffix from v3.
Uwe Hermann [Mon, 5 Oct 2009 13:55:28 +0000 (13:55 +0000)]
Backport facility to specify a local coreboot version suffix from v3.

Tested on QEMU.

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

14 years agoRemove svn:externals that pull in all kinds of useful tools that
Patrick Georgi [Mon, 5 Oct 2009 12:58:48 +0000 (12:58 +0000)]
Remove svn:externals that pull in all kinds of useful tools that
are not needed for building coreboot.

The website tells you where to get them individually.

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

14 years agoWithout these fixes the w83627dhg driver (which is currently not used by any
Stefan Reinauer [Mon, 5 Oct 2009 12:08:37 +0000 (12:08 +0000)]
Without these fixes the w83627dhg driver (which is currently not used by any
mainboard in the tree) does neither compile nor work.

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

14 years agofix building on Linux again, working around crude runtime OS detection.
Stefan Reinauer [Mon, 5 Oct 2009 10:23:36 +0000 (10:23 +0000)]
fix building on Linux again, working around crude runtime OS detection.

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

14 years agoPCI_ROM_RUN and CONSOLE_VGA are global options in Kconfig and
Uwe Hermann [Mon, 5 Oct 2009 00:07:12 +0000 (00:07 +0000)]
PCI_ROM_RUN and CONSOLE_VGA are global options in Kconfig and
should not be set in per-mainboard Kconfigs.

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

14 years agoThe new CBFS based build system requires the whole ROM to be accessible
Uwe Hermann [Sun, 4 Oct 2009 23:50:06 +0000 (23:50 +0000)]
The new CBFS based build system requires the whole ROM to be accessible
in very early stages, otherwise the boot may hang like this because
the CBFS headers cannot be found/accessed:

  Uncompressing coreboot to RAM.
  Jumping to image.
  Check CBFS header at fffedfe0
  magic is ffffffff
  ERROR: No valid CBFS header found!
  CBFS:  Could not find file fallback/coreboot_ram
  Jumping to image.

This patch enables full ROM access on all 440BX boards right after the
serial init (and before CBFS headers are parsed).

Build-tested and runtime-tested on ASUS P2B-F.

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

14 years agoThis does away with CONFIG_ROM_PAYLOAD_START and CONFIG_PAYLOAD_SIZE.
Patrick Georgi [Sun, 4 Oct 2009 18:55:40 +0000 (18:55 +0000)]
This does away with CONFIG_ROM_PAYLOAD_START and CONFIG_PAYLOAD_SIZE.
Both were only really used in pre-cbfs, as the payload's size isn't
relevant for the build process anymore.

Various calculations in {no,}failovercalculation.lb are adapted
accordingly.

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

14 years agoAdd initial kconfig support for all AMD GX1 boards.
Uwe Hermann [Sun, 4 Oct 2009 17:15:39 +0000 (17:15 +0000)]
Add initial kconfig support for all AMD GX1 boards.

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

14 years agoThis removes the uses of the buildrom utility and the coreboot.strip
Patrick Georgi [Sun, 4 Oct 2009 12:30:44 +0000 (12:30 +0000)]
This removes the uses of the buildrom utility and the coreboot.strip
intermediate file.

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

14 years agoRemove a bit of pre-cbfs build system infrastructure.
Patrick Georgi [Sun, 4 Oct 2009 12:27:48 +0000 (12:27 +0000)]
Remove a bit of pre-cbfs build system infrastructure.
Payloads are compressed by cbfstool itself, no need for external tools.

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

14 years agoRemove another FAILOVER variable. (trivial)
Patrick Georgi [Sat, 3 Oct 2009 21:13:36 +0000 (21:13 +0000)]
Remove another FAILOVER variable. (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@4716 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd gigabyte/m57sli support to Kconfig.
Harald Gutmann [Sat, 3 Oct 2009 21:06:53 +0000 (21:06 +0000)]
Add gigabyte/m57sli support to Kconfig.
Whitespace fixes to devicetree.cb

Signed-off-by: Harald Gutmann <harald.gutmann@gmx.net>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4715 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMove HAVE_FAILOVER_BOOT and USE_FAILOVER_IMAGE from
Patrick Georgi [Sat, 3 Oct 2009 21:04:13 +0000 (21:04 +0000)]
Move HAVE_FAILOVER_BOOT and USE_FAILOVER_IMAGE from
boards to global. It's not a per-board value, but
compatibility stuff.

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

14 years agoTell vgabios code in a couple of boards/chipsets about CBFS
Patrick Georgi [Sat, 3 Oct 2009 16:27:48 +0000 (16:27 +0000)]
Tell vgabios code in a couple of boards/chipsets about CBFS

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

14 years agoRemove:
Patrick Georgi [Sat, 3 Oct 2009 16:24:58 +0000 (16:24 +0000)]
Remove:
- CONFIG_CBFS
- anything that's conditional on CONFIG_CBFS == 0
- files that were only included for CONFIG_CBFS == 0
In particular:
- elfboot
- stream boot code
- mini-filo and filesystems (depends on stream boot code)

After this commit, there is no way to build an image that is not using
CBFS anymore.

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

14 years agoRemove duplicate and not too useful Kconfig board comments as
Uwe Hermann [Sat, 3 Oct 2009 15:34:08 +0000 (15:34 +0000)]
Remove duplicate and not too useful Kconfig board comments as
per discussion on the mailing list.

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

14 years agoRemove the Embedded Planet board.
Ronald G. Minnich [Fri, 2 Oct 2009 15:46:10 +0000 (15:46 +0000)]
Remove the Embedded Planet board.

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

14 years agoRemove left-over targets/motorola/*, fix Dell PowerEdge 1850 name.
Uwe Hermann [Fri, 2 Oct 2009 12:45:18 +0000 (12:45 +0000)]
Remove left-over targets/motorola/*, fix Dell PowerEdge 1850 name.

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