Commit graph

392 commits

Author SHA1 Message Date
Uwe Hermann
2a605775a6 Various cosmetic license header fixes (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@392 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 14:06:39 +00:00
Ronald G. Minnich
dcedc08fe5 This is an intermediate state for thie file. I am doing this commit
since we have an ACK and since Marc Jones needs to work his magic.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@391 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 01:59:46 +00:00
Ronald G. Minnich
8549e36b74 Add a pci id.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@390 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 21:50:03 +00:00
Stefan Reinauer
3a3631306c Some build fixes.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@389 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 21:39:45 +00:00
Ronald G. Minnich
efbd8efbc3 Bring V2 LX support over to V3.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>

Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@388 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 21:12:57 +00:00
Stefan Reinauer
98a84ef995 make cpu code future proof
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@387 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 21:07:10 +00:00
Stefan Reinauer
b89d99ddfd Ron's arch code., slightly changed. Another one will follow
These are changes needed for geode lx. Also, we are moving CPU bug fixes
into initram. This simplifies the code and, also, guarantees that
cpu bugs won't cause trouble to initram.

All LX targets compile. Most of these changes have been run by
the list.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@386 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 21:01:01 +00:00
Ronald G. Minnich
90f3486465 Trivial fixes for some typos, and a major fix for an unitialized
variable. 

Add a license to dts.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@385 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 20:52:49 +00:00
Ronald G. Minnich
dd6343d244 Remove trivial garbage in comments.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@384 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 20:46:28 +00:00
Ronald G. Minnich
bf3105afb9 In reponse to comments.
We are leaving serial, we do not believe it is misleading. 
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@383 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 20:44:02 +00:00
Stefan Reinauer
a28d25a93d remove trivial file as suggested by Uwe.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@382 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 20:39:24 +00:00
Ronald G. Minnich
0ef38480ef changes for the mainboards.
NOTE: We're going to need to change the arch/x86 to have, e.g.,
arch/x86/geodelx. But we need to get lined up with the tree first. 


Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@381 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 20:38:27 +00:00
Ronald G. Minnich
84448165f9 Superio commits.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@380 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 20:09:47 +00:00
Ronald G. Minnich
0967027ac4 Add arch directory so we can do this:
#include <arch/xyz.h>
For later use
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@379 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 20:02:43 +00:00
Ronald G. Minnich
1e3cd03815 Add a few functions.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@378 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 20:01:10 +00:00
Ronald G. Minnich
8fbafe7ed4 AMD geode defines.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@377 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 19:57:48 +00:00
Ronald G. Minnich
464b6e615a Trivial: add a few ids.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@376 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 19:56:32 +00:00
Uwe Hermann
db44381c57 Fix build error (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@375 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 19:55:45 +00:00
Ronald G. Minnich
b175ce06ac Add pnp code and remove pnp inlines.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@374 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 19:47:27 +00:00
Ronald G. Minnich
19278313f5 Needed to get qemu to build.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@373 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 19:24:22 +00:00
Ronald G. Minnich
26920842e3 dts needed to build.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@372 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 19:19:41 +00:00
Ronald G. Minnich
5e91c7f4a3 New dts file for i440bx
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@371 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 19:17:48 +00:00
Ronald G. Minnich
607f05b68e the tree mods needed to make qemu compile.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@370 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 19:16:00 +00:00
Ronald G. Minnich
551790fe60 the tree mods needed to make it compile.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@369 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 19:14:26 +00:00
Ronald G. Minnich
b38118c224 This is the dtc update by itself.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@368 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-27 19:13:18 +00:00
Uwe Hermann
f1f8bc2cd4 Document the origins of include/arch/x86/cpu.h (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@367 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-26 13:46:57 +00:00
Uwe Hermann
d8ad5a5bc9 - Extend lar format to support compression (incompatible format change!)
- Adapt the compression utilities for integration into lar
- Add compression capabilities to lar and expose in user interface
- Provide a way to mark files as non-compressible

Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>

- Diese und die folgenden Zeilen werden ignoriert --

M    include/lar.h
M    util/lzma/minilzma.cc
M    util/nrv2b/nrv2b.c
M    util/lar/lar.c
M    util/lar/create.c
M    util/lar/lar.h
M    util/lar/lib.c
M    util/lar/extract.c
M    util/lar/list.c


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@366 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-26 11:55:06 +00:00
Ronald G. Minnich
33c16b873a This adds cpu info support for v3. Other arch-specific cpu support
should go here. This file taken from V2.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>

Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@365 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-25 21:15:44 +00:00
Uwe Hermann
28cff651fe Minor bugfixes:
- lib/console.c: BIOS_SPEW never kicked in.

 - util/xcompile/xcompile: the "function" prefix isn't supported by all shells.

Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@364 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-20 17:21:49 +00:00
Stefan Reinauer
6965c8d80b fix tar compatibility code in lar. If you just say
"lar -b foo" lar crashes without this. Thanks to Patrick Mauritz for
finding this. (trivial patch)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@363 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-20 07:44:52 +00:00
Stefan Reinauer
d4161bcf3e fix case sensitive issue, fixes newer flex versions by using a macro instead of
a hardcoded variable. Pretty much trivial.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@362 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-19 09:52:41 +00:00
Ronald G. Minnich
14cc48b773 Changes to allow us to use the dtc to create C structures for the static
tree. Now requires newer flex, 2.5.4 at least.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>

Acked-by: Stefan Reinauer <stepan@coresystems.de>

M    dtc/dtc-lexer.l
M    dtc/flattree.c
M    dtc/dtc.h
M    dtc/livetree.c
M    dtc/fstree.c
M    dtc/dtc-parser.y


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@361 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-19 07:03:35 +00:00
Ronald G. Minnich
eadbcb73c7 Please examine the following patch. I did not take in all the
recommendations. I don't want to change the code much more until I
verify operation.

So consider this an interemediate "get it working" state, to be
followed by polishing it up.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>

Yep, needs some polishing, but for now I guess we can commit:

Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@360 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-19 05:04:48 +00:00
Ronald G. Minnich
af53a47b70 add spd_read_byte function. It is a pass-through for smbus_read_byte.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@359 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-18 23:59:51 +00:00
Stefan Reinauer
5f3437c98a trivial: make Makefile output more consistent and fix a small typo introduced
by the previous patch.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@358 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-16 17:11:59 +00:00
Stefan Reinauer
baac49baf7 in order to integrate compression into lar, it needs some makefile splits to
keep the c++ compiler happy (lzma is c++ code and thus must be linked by a
c++ compiler).

The Makefiles are changed so lar is build with HOSTCC but linked with HOSTCXX
(so the c++ library is picked up)

Signed-off-by: PatrickGeorgi <patrick@georgi-clan.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@357 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-16 17:07:24 +00:00
Stefan Reinauer
8da7c69e28 This patch provides a simple API to nrv2b and lzma. Necessary for
integrating compression algorithms into lar.

lar -x (extract) will be done using the decompression routines in lib/ to
ease debugging (just in case - they _should_ be functionally equivalent to
the decompression routines in the compression utilities)

Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@356 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-16 14:37:02 +00:00
Stefan Reinauer
fe524d4646 This patch enables build of both compressors (instead of the
current stubs), both as utilities and object files to link with
lar (once lar is capable of that).

There are some details that could be discussed (eg. I could avoid the
duplication of LZMA_OBJ, but that would mean using ::-rules in
util/lzma/Makefile with whatever side effects those bring, or
by splitting them into a separate file), but I tried it here, and it works.

Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@355 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-16 14:34:17 +00:00
Ronald G. Minnich
e19d69c558 OK, this includes all the mods that should give you a compileable
initram. Gets errors as we don't have ram support yet, working that
now.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>




git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@354 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-15 15:33:50 +00:00
Ronald G. Minnich
7c6002b003 Add prototypes for things we call.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@353 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-14 20:00:58 +00:00
Ronald G. Minnich
0f347c98eb we need spd.h
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>

Acked-by: Stefan Reinauer <stepan@coresystems.de>




git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@352 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-14 17:50:58 +00:00
Ronald G. Minnich
98e2b3d3aa This patch adds a file for geodelx cpu-specific support. It combines
into one relatively small file (582 lines or so) all the tricky bits
of the LX. This code is "known good" from V2. Per new standards,
naming conventions have changed.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@351 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-14 17:45:35 +00:00
Stefan Reinauer
1e384b3bb9 Rework payload handling to only provide two options:
- Payload file
  - No payload

Document the current procedure in the README.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@350 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-09 17:43:26 +00:00
Ronald G. Minnich
e32e8c3144 prototypes for dram and smbus functions.
We are experimenting a bit here; we are going to put all protos for
lib/*.c into this file. Experience has shown this will not be a large
or messy set of protos. Plan 9 has used this technique and it works
well, as it avoids 100 files with one prototype per file.
If you can't trust Ken Thompson, who can you trust?

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>




git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@349 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-07 17:34:17 +00:00
Uwe Hermann
143c561a25 Fix various Doxygen warnings (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@348 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-07 00:07:39 +00:00
Uwe Hermann
05797ecc52 Various cosmetic fixes (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@347 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-06 23:43:11 +00:00
Ronald G. Minnich
faf5bc5f1b Add comments, correct warnings, add a note by Marc Jones,
and change a name per Marc Jone's suggestion.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>




git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@346 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-05 21:01:05 +00:00
Ronald G. Minnich
3311076a44 Early setup support for the initram phase.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@345 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-05 17:40:18 +00:00
Ronald G. Minnich
5b442e66fb SMBus support for the AMD Geode CS5536. This code can initialize
the SMBus and basically provides one public funtion which can be used
by other code (e.g. in the northbridge): smbus_read_byte().

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@344 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-05 17:04:59 +00:00
Uwe Hermann
c333fc9769 Add header file for the AMD Geode CS5536 Companion Device.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@343 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-05 10:13:24 +00:00