Commit Graph

56 Commits

Author SHA1 Message Date
Eric Biederman 5cd81730ec - Moved hlt() to it's own header.
- Reworked pnp superio device support.  Now complete superio support is less than 100 lines.
- Added support for hard coding resource assignments in Config.lb
- Minor bug fixes to romcc
- Initial support for catching the x86 processor BIST error codes.  I've only seen
  this trigger once in production during a very suspcious reset but...
- added raminit_test to test the code paths in raminit.c for the Opteron
- Removed the IORESOURCE_SET bit and added IORESOURCE_ASSIGNED and IORESOURCE_STORED
  so we can tell what we have really done.
- Added generic AGP/IOMMU setting code to x86
- Added an implementation of memmove and removed reserved identifiers from memcpy
- Added minimal support for booting on pre b3 stepping K8 cores
- Moved the checksum on amd8111 boards because our default location was on top of
  extended RTC registers
- On the Hdama added support for enabling i2c hub so we can get at the temperature
  sensors.  Not that i2c bus was implemented well enough to make that useful.
- Redid the Opteron port so we should only need one reset and most of memory initialization
  is done in cpu_fixup.  This is much, much faster.
- Attempted to make the VGA IO region assigment work.  The code seems to work now...
- Redid the error handling in amdk8/raminit.c to distinguish between a bad value
  and a smbus error, and moved memory clearing out to cpufixup.
- Removed CONFIG_KEYBOARD as it was useless.  See pc87360/superio.c for how to
  setup a legacy keyboard properly.
- Reworked the register values for standard hardware, moving the defintions from
  chip.h into the headers of the initialization routines.  This is much saner
  and is actually implemented.
- Made the hdama port an under clockers BIOS.  I debuged so many interesting problems.
- On amd8111_lpc added setup of architectural/legacy hardware
- Enabled PCI error reporting as much as possible.
- Enhanded build_opt_tbl to generate a header of the cmos option locations so
  that romcc compiled code can query the cmos options.
- In romcc gracefully handle function names that degenerate into function pointers
- Bumped the version to 1.1.6 as we are getting closer to 2.0

  TODO finish optimizing the HT links of non dual boards
  TODO make all Opteron board work again
  TODO convert all superio devices to use the new helpers
  TODO convert the via/epia to freebios2 conventions
  TODO cpu fixup/setup by cpu type


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1390 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2004-03-11 15:01:31 +00:00
Greg Watson efa1f324af config.g
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1383 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2004-03-07 22:17:05 +00:00
Eric Biederman b8a7578a12 - Update to the latest config.g
- Everything except if statements should work correctly


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1367 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2004-02-04 09:11:51 +00:00
Greg Watson 8cb747942c New option behavior:
1. Options can only be set with 'option' statement in the target
   configuration file. Options can be set as many times as needed.
2  Option DEFAULT values can be changed (or set) in any configuration file.
   Changing a default value will display a warning message.
3. A default value is changed with the statement 'default <op> = <val>'.
4. Setting an option overrides the default value.
5. The 'mainboard' and 'arch' statements now set options implicitly. No
   'uses' statement is required.

The idea is that parts will define default values for options that
they need/use. Option overrides are only done in the target file.


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1258 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-11-05 18:55:44 +00:00
Eric Biederman 3561759620 - Fix the link check so it actually checks for the appropriate maximum link
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1218 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-10-14 04:29:39 +00:00
Eric Biederman 83b991afff - O2, enums, and switch statements work in romcc
- Support for compiling romcc on non x86 platforms
  - new romc options -msse and -mmmx for specifying extra registers to use
  - Bug fixes to device the device disable/enable framework and an amd8111 implementation
  - Move the link specification to the chip specification instead of the path
  - Allow specifying devices with internal bridges.
  - Initial via epia support
 - Opteron errata fixes


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1200 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-10-11 06:20:25 +00:00
Stefan Reinauer 0502b7a64c fix buildrom statement if there's only one romimage specified.
roms always needs to be an array.


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1143 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-09-26 11:40:05 +00:00
Ronald G. Minnich 10941401e8 allow default settings in the mainboard file
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1137 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-09-25 23:03:18 +00:00
Stefan Reinauer e27b08d41c add filename to buildrom
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1117 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-09-17 12:17:58 +00:00
Stefan Reinauer 0a5f865a27 add cvsignore file
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1113 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-09-12 12:39:04 +00:00
Stefan Reinauer bcb9f858e5 add "clean" target
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1112 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-09-12 12:35:18 +00:00
Eric Biederman 9bdb460a97 - Updates to config.g so that it works more reliably and has initial support
for paths
- Renamed some configuration variables
  SMP -> CONFIG_SMP
  MAX_CPUS -> CONFIG_MAX_CPUS
  MAX_PHYSICAL_CPUS -> CONFIG_MAX_PHYSICAL_CPUS
- Removed some dead configuration variables
MAX_CPUS -> CONFIG_MAX_CPUS
MAX_PHYSICAL_CPUS -> CONFIG_MAX_PHYSICAL_CPUS
SMP -> CONFIG_SMP
FINAL_MAINBOARD_FIXUP
SIO_BASE
SIO_SYSTEM_CLK_INPUT
NO_KEYBOARD
USE_NORMAL_IMAGE
SERIAL_CONSOLE
USE_ELF_BOOT
ENABLE_FIXED_AND_VARIABLE_MTRRS
START_CPU_SEG
DISABLE_WATCHDOG
ENABLE_IOMMU
AMD8111_DEV

- Removed some assembly files that are no longer needed
killed src/southbridge/amd/amd8111/smbus.inc
killed src/southbrideg/amd/amd8111/cmos_boot_failover.inc
killed src/ram/ramtest.inc
- Updates to config.g so that it works more reliably and has initial support
  for paths
- Renamed some configuration variables
  SMP -> CONFIG_SMP
  MAX_CPUS -> CONFIG_MAX_CPUS
  MAX_PHYSICAL_CPUS -> CONFIG_MAX_PHYSICAL_CPUS
- Removed some dead configuration variables
MAX_CPUS -> CONFIG_MAX_CPUS
MAX_PHYSICAL_CPUS -> CONFIG_MAX_PHYSICAL_CPUS
SMP -> CONFIG_SMP
FINAL_MAINBOARD_FIXUP
SIO_BASE
SIO_SYSTEM_CLK_INPUT
NO_KEYBOARD
USE_NORMAL_IMAGE
SERIAL_CONSOLE
USE_ELF_BOOT
ENABLE_FIXED_AND_VARIABLE_MTRRS
START_CPU_SEG
DISABLE_WATCHDOG
ENABLE_IOMMU
AMD8111_DEV

- Removed some assembly files that are no longer needed
killed src/southbridge/amd/amd8111/smbus.inc
killed src/southbrideg/amd/amd8111/cmos_boot_failover.inc
killed src/ram/ramtest.inc
killed src/sdram/generic_dump_spd.inc
killed src/sdram/generic_dump_spd.inc

- Updated the arima/hdama to build with the new configuration system
- Updated config.g to list all of the variables with make echo


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1093 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-09-01 23:17:58 +00:00
Ronald G. Minnich f9ffa475ab I mean it this time. NO more unnecessary 'dir' commands for cpus.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1082 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-08-06 15:14:46 +00:00
Ronald G. Minnich 6d76ba1492 end silly multiple sources of /cpu/whatever.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1081 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-08-06 15:06:27 +00:00
Greg Watson 0c3fd559ec Fixed version skew problem.
Use warning() and fatal().


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1072 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-08-05 16:35:34 +00:00
Eric Biederman fb0db6ca6d - Update the Makefile to have a proper ALL: target
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1069 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-08-05 01:00:48 +00:00
Ronald G. Minnich a43048d371 Commits for the new config static device design, to allow more than one static
cpu of a certain type and to eliminate the
cpu p5
cpu p6
cpu k7

nonsense in the old config files.

Next step is to hook into Eric's pci device stuff.


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1067 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-08-04 21:05:19 +00:00
Greg Watson b265254e1c Added support for naming instances of parts. This is to allow arbitrary
device arrangement that can be statically configured during boot.


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1058 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-28 21:35:14 +00:00
Greg Watson f9e756c386 added a bit of error checking!
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1041 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-25 17:29:13 +00:00
Greg Watson 8c19a4ffb4 cpu should be vendor/device too...
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1033 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-24 21:19:19 +00:00
Greg Watson b794667b75 added uses checking at top level
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1029 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-24 15:14:39 +00:00
Greg Watson 3bb83b8a00 static device names start with static_
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1013 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-23 21:29:49 +00:00
Greg Watson 6ba9ff837b add clean to Makefile
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1012 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-23 18:52:17 +00:00
Greg Watson 252d3ff1f6 new register format
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1007 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-23 18:13:19 +00:00
Ronald G. Minnich 3874d40ad6 Fix the generation of .o from .S
The object rules now have four members, this is getting KLUDGY!

[object, source, type (i.e. suffix), base]


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1006 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-23 03:11:40 +00:00
Greg Watson 6d4512cdf9 added payload
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@997 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-21 17:28:35 +00:00
Greg Watson 634a99110c fix crt0 includes ordering
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@996 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-21 16:51:40 +00:00
Ronald G. Minnich 9a0989b941 typo fixed.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@995 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-21 16:22:17 +00:00
Greg Watson 8275bad6f6 more chip stuff
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@990 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-21 04:20:08 +00:00
Greg Watson d0580343b6 chip stuff
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@988 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-20 23:28:01 +00:00
Greg Watson fe4414587a tidy up
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@986 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-19 04:19:48 +00:00
Greg Watson c361a6b218 a few changes
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@985 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-19 04:07:07 +00:00
Greg Watson 6ae46145e6 Allow options in mainboard configuration file
Moved payload into romimage
More flexible romimage declaration


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@983 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-18 17:05:10 +00:00
Greg Watson ce72e7ee21 fix problems with options, more functionality
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@981 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-18 01:06:15 +00:00
Greg Watson 07d72dcfa2 added romimage support
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@978 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-17 22:25:53 +00:00
Greg Watson 109959d6b1 new config rules
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@960 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-14 18:00:10 +00:00
Ronald G. Minnich a3c708b5d2 static configuration. Needs new keyword per greg to enable inclusion of a
part-specific struct into the tree.


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@941 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-11 14:51:29 +00:00
Greg Watson 2fceb77c47 new print statement
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@939 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-10 20:55:09 +00:00
Ronald G. Minnich 0d7f46d29e first cut at generating code.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@938 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-10 14:46:59 +00:00
Ronald G. Minnich bcdce3cfc7 fixing trees.
Greg help me, I've screwed up the tree, things are in there more than once, dammit!

screwup in partobj.


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@937 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-07-10 12:38:39 +00:00
Ronald G. Minnich c22ea4f00d all: now depends on linuxbios.rom
payload.block is going away


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@929 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-06-30 17:29:31 +00:00
Ronald G. Minnich 776fce9449 now builds with *0* tweaks.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@927 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-06-30 17:07:13 +00:00
Ronald G. Minnich b5391cc4b9 TAGS are back!
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@926 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-06-30 17:04:35 +00:00
Ronald G. Minnich db59928fd9 OK, now builds fallback for arima/hdama!
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@917 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-06-26 04:05:37 +00:00
Greg Watson 4f22177aa5 Simple printing of options. Will make this better.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@916 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-06-25 15:27:41 +00:00
Ronald G. Minnich 0f28460efb more fixes but it appears that options are not picking up the right values.
I set USE_FALLBACK_IMAGE to 1 in the top-level Config, but when it is tested
in arima/hdama/Config.lb, it is acting as though it is zero.

Also added a print command so it is easier to trace 'if' behavior.

Usage:
print "string"


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@913 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-06-25 03:20:22 +00:00
Ronald G. Minnich ed27a5e547 needed rules for DRIVER
more fixes to various Config.lb

one last problem and we're there


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@911 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-06-24 22:51:16 +00:00
Ronald G. Minnich dabc15feec fixed paths for GENERATED
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@907 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-06-24 19:37:05 +00:00
Greg Watson cd5382651f ifs now have elses
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@905 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-06-24 17:37:02 +00:00
Greg Watson 2366020f23 if statement for options
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@904 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2003-06-24 17:26:45 +00:00