Commit graph

418 commits

Author SHA1 Message Date
Stefan Reinauer
25ebd9110b * start using arch/foo.h again instead of archfoo.h (trivial)
* make constructor an initializer.
* fix memory leak/code flow error in current code
* add spinlocking
* drop malloc and use new_device for device allocation instead.
* add CONFIG_SMP as it is needed by spinlocks and soon other stuff.

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



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@418 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 16:57:23 +00:00
Uwe Hermann
f24a8d13c7 Use ARRAY_SIZE whereever possible (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@417 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 15:32:19 +00:00
Uwe Hermann
315c053116 Rename 'mainboard-part-number' to 'mainboard-name'.
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@416 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 15:23:52 +00:00
Ronald G. Minnich
12733f41c5 Trivial fix to return type.
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@415 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 15:22:56 +00:00
Ronald G. Minnich
a51ec3985f This completes the creation of a stage1 for each mainboard, and renames
all the early_* 
stuff to stage1. All targets build and qemu boots. 
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@414 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 15:21:38 +00:00
Uwe Hermann
c81aa82942 Add an ARRAY_SIZE() macro which returns the size of an array, regardless
of the data types of the individual array elements.

The macro is defined in lib.h, so code which uses it must include lib.h.

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



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@413 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 14:36:03 +00:00
Ronald G. Minnich
9b9e190491 mv cachemain.c to stage1.c, so that people can tell when it runs.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@412 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 14:20:02 +00:00
Uwe Hermann
99222b9498 Various Kconfig file 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@411 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 13:28:33 +00:00
Uwe Hermann
da49919ea7 Fix compiler warning (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@410 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 12:40:13 +00:00
Ronald G. Minnich
782329e647 two more unsigned!
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@409 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 00:23:18 +00:00
Ronald G. Minnich
db20555a2c minor cleanup; trivial fix so I'm just committing it.
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@408 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 00:22:19 +00:00
Ronald G. Minnich
e62540d291 1. move early_* names to stage1.c
2. rename *_early_init symbols to *_stage1
3. Rename early_init to hardware_stage1

now people can see when things are supposed to happen. 
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@407 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-29 00:09:24 +00:00
Ronald G. Minnich
c61a113dfb These are changes we are making so that serial startup can be done in
stage 1. This is part of a general change in startup due to the move
from V2 to V3. 

The LX is complex and in this case much work must be done, we don't
expect all platforms to be this way. 

We will probably be changined these names from eary_* to stage1.c
to make it easier for people to know what's going on.

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



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@406 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 23:59:40 +00:00
Stefan Reinauer
adc9554e5c Make dtsname a static part of the device structure.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@405 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 20:09:41 +00:00
Ronald G. Minnich
864dc5687b One last fix from the directory rename. Sorry.
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@404 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 18:30:55 +00:00
Ronald G. Minnich
a7c52dfe83 Remove this mistake.
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@403 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 18:30:06 +00:00
Ronald G. Minnich
af9cf8a138 Trivial cleanup to make things compile:
- Makefile corretion
- one last usage of msr_t (we hope)

Hmm, did we decide to add sdram directory? I will remove this -- it's a
mistake.

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@402 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 18:29:46 +00:00
Ronald G. Minnich
e98c6048ba Remove no longer needed file.
Add a needed file. 
remove misleading printk from i440bx.c
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@401 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 17:12:37 +00:00
Stefan Reinauer
93201f1d19 trivial fix for msm800sev Makefile
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@400 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 17:07:19 +00:00
Ronald G. Minnich
159cb72c4e Continuing updates of the port process.
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@399 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 17:07:13 +00:00
Ronald G. Minnich
ce90131d23 struct msr replacement
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@398 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 17:05:46 +00:00
Ronald G. Minnich
d03c60d51f Another cleanup of struct msr
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@397 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 17:04:09 +00:00
Ronald G. Minnich
7044158043 remmove mst_t from include and southbridge.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@396 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 17:00:36 +00:00
Ronald G. Minnich
aacb76d5f3 Remove all references to mainboard.o
Get dbe61 initram into buildable shape. This depends 
the msr_t patch which is in the pipeline.
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@395 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 16:48:40 +00:00
Ronald G. Minnich
79351866e4 Signed-off-by: Ronald G. Minnich <rminnich@gmail.com
Acked-by: Stefan Reinauer <stepan@coresystems.de

This patch adds artec dbe61 support, removes all mainboard.c, and
 adds
 the code to dtc so that it takes these properties from the top level
 dts:
 /{
 .
 .
 .

      mainboard-vendor = "AMD";
      mainboard-part-number = "Norwich";
 }

 statictree.h will have:
 extern const char *mainboard_vendor, *mainboard_part_number;

 and statictree.c will have:
 const char *mainboard_vendor = "AMD";
 const char *mainboard_part_number = "Norwich";

 It is an error to NOT have the vendor and part number in the top
 level dts.

 thanks

 ron

Get rid of mainboard.c in all mainboard directories.
Modify dtc so that it creates declarations (in statictree.h) and
generates the char *
for mainboard name and part # (in statictree.c).

Failure to set up a mainboard-vendor
OR mainboard-part-number property in the mainboard dts will get a
helpful and descriptive error message (tested).
This may be a first for the linuxbios config
tools.

Add Georgi's patch for the bug in flattree.c; assign *cp = 0.




git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@394 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 16:21:38 +00:00
Ronald G. Minnich
bb554c234a Change case and improve comments.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@393 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-06-28 15:19:30 +00:00
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