Commit graph

362 commits

Author SHA1 Message Date
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
Ronald G. Minnich
517e03ebfb no more linker hacks in v3, except for the .S parts.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@342 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-04 15:15:05 +00:00
Uwe Hermann
8c8b512726 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@341 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-02 12:28:58 +00:00
Ronald G. Minnich
84b5b70730 More information, we are on the next step, which is smbus support for
dram. Per the discussion on v3 list, I am self-acking this one.

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@340 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-01 23:13:15 +00:00
Ronald G. Minnich
1bd6471e3e This fixes ram.c correctly for cases where we link instead of
including .c files.

The mem controller is an opaque type. This code is called with a
pointer and a count of mem controllers.

I have serious doubts about the value of this code. It is so generic,
and does so little, that it
may be useless. It may be useful for documentation, however, as it
shows people the sequence of operations for spd.

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



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@339 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-01 04:41:42 +00:00
Uwe Hermann
3fcf95e1a2 Initial version of a generic RAM initialization framework.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@338 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-28 14:34:05 +00:00
Uwe Hermann
bf325319d3 Correct minor spelling and formatting mistakes.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@337 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-28 14:30:53 +00:00
Ronald G. Minnich
6015ba232a Documenting the LX port.
I am documenting, step by step, the LX port on v3.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@336 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-24 23:44:56 +00:00
Ronald G. Minnich
db83d17b19 add msr.h 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@335 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-24 20:33:46 +00:00
Stefan Reinauer
05822903f7 doxygen is a phony target (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@334 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-21 22:49:12 +00:00
Uwe Hermann
a8ebe8a096 Payload selection dialog improvements (not fully usable, yet).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Peter Stuge <peter@stuge.se>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@333 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-21 14:51:57 +00:00
Uwe Hermann
464ef4613d Use the same naming convention and placement for "include guards" in
all header files.

This closes #40, as I think we don't need to invest time to fix this in
LinuxBIOSv2, but only in LinuxBIOSv3.

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@332 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-21 06:48:47 +00:00
Uwe Hermann
a4d3de4621 Drop romcc references as it's no longer used in LinuxBIOSv3.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@331 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-21 06:23:28 +00:00
Uwe Hermann
53099f8d1c Fix various license headers.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@330 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-20 20:35:59 +00:00
Uwe Hermann
56b3bee0de Some more PCIexp -> PCIe fixes and renames (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@329 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-20 20:28:04 +00:00
Stefan Reinauer
41e7a51afd fix output in pcie and pcix device code. rename pciexp as the official abbr. is
PCIe (not used anywhere yet anyways)

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



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@328 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-20 17:53:19 +00:00
Stefan Reinauer
6c4d4e2c95 device code cleanup. this is the uncritical part of my device cleanup
patch. Most of it are printk_ cleanup fixes required for the v2->v3 
transition, thus trivial.

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



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@327 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-19 23:55:25 +00:00
Uwe Hermann
bd53a46fbd Lots of cosmetic and coding style 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@326 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-19 21:31:23 +00:00
Stefan Reinauer
6a69df4065 Add missing license headers to several files.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@325 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-19 08:57:59 +00:00
Stefan Reinauer
d1bedd47fe small fix (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@324 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-19 08:47:42 +00:00
Stefan Reinauer
5dfd441cdf This patch adds CAR support for LX, as well as the include file. It
builds but is not tested.

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



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@323 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-19 08:44:14 +00:00
Stefan Reinauer
42b209a0be small fixup for amd norwich skeleton (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@322 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-18 18:01:18 +00:00
Stefan Reinauer
31e851fb4e (trivial) add northbridge skeleton for AMD Geode LX(tm) north bridge
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@321 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-18 17:48:21 +00:00
Stefan Reinauer
6c156e2c5e (trivial) add skeleton for cs5536 southbridge
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@320 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-18 17:42:13 +00:00
Stefan Reinauer
a332bb7e96 add amd norwich skeleton for Ron (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@319 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-18 16:33:52 +00:00
Stefan Reinauer
a2964a605c (trivial) add example of how to add stage0 for other cpu types to LBv3
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@318 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-18 15:20:11 +00:00
Uwe Hermann
cb4dae318c Short installation instructions for LinuxBIOSv3 (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@317 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-09 10:26:19 +00:00
Stefan Reinauer
5a0d57de59 The patch is really trivial and fixes silencing dd on systems
where &> isn't supported by /bin/sh (eg. solaris) and "fixes" 
the dtc Makefile in the same manner.

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



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@316 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-06 18:52:16 +00:00
Stefan Reinauer
9caaf62dd5 Move console/*.c into lib/ in order to simplify the directory structure.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@315 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-06 09:35:25 +00:00
Uwe Hermann
71ccb36afc Massive file rename and moving orgy:
- Everything in include/cpu/generic/x86/arch/* goes into
   include/arch/x86 now.

 - include/cpu/generic/x86/div64.h moves into include/arch/x86, too.

 - The former include/cpu/generic/x86/arch/elf.h moved to
   include/arch/x86/archelf.h, as elf.h already exists in include/
   and we must prevent a name clash.

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



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@314 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-05 21:36:52 +00:00
Uwe Hermann
7e752a0631 Move include/console/console.h to include/console.h in order to
get rid of a directory which only contains a single file, and
at the same time simplify the #includes and their hierarchies.

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



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@313 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-05-05 20:18:28 +00:00