coreboot.git
15 years agoThis patch fixes the dbm690t keyboard not working issue. It should also
Marc Jones [Fri, 26 Sep 2008 19:15:38 +0000 (19:15 +0000)]
This patch fixes the dbm690t keyboard not working issue. It should also
fix the a8n_e and any other it8712f SIO keyboard issues. The it8712f
requires an archaic PS/2 mode setting to the keyboard controller before
accessing the keyboard. Beyond that, I made the keyboard controller and
keyboard init more robust and added more informative debug output.

Signed-off-by: Marc Jones <marc.jones@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3610 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoadd svn:ignore for temporary files and directories. (trivial)
Stefan Reinauer [Fri, 26 Sep 2008 18:56:11 +0000 (18:56 +0000)]
add svn:ignore for temporary files and directories. (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@3609 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago* Add strsep (since strtok is considered obsolete)
Stefan Reinauer [Fri, 26 Sep 2008 18:42:40 +0000 (18:42 +0000)]
* Add strsep (since strtok is considered obsolete)
* add a bunch of string function doxygen comments.

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

15 years agoUse a block cursor on VGA console :-)
Stefan Reinauer [Fri, 26 Sep 2008 18:40:06 +0000 (18:40 +0000)]
Use a block cursor on VGA console :-)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3607 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix option handling in libpayload
Stefan Reinauer [Fri, 26 Sep 2008 18:39:06 +0000 (18:39 +0000)]
fix option handling in libpayload

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3606 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago* add keyboard layout support to libpayload
Stefan Reinauer [Fri, 26 Sep 2008 18:37:26 +0000 (18:37 +0000)]
* add keyboard layout support to libpayload
* add a reset handler mechanism (CTRL-ALT-DEL)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3605 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago* factor out serial hardware init
Stefan Reinauer [Fri, 26 Sep 2008 18:36:26 +0000 (18:36 +0000)]
* factor out serial hardware init
* add reverse color support for serial
* add cursor enable/disable support for serial
* fix tinycurses compilation if serial is disabled
* add functions to query whether serial or vga console is enabled in tinycurses
* initialize uninitialized COLOR_PAIRS variable
* implement has_colors(), wredrawln() functions in curses

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3604 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd IRQ12 to the dbm690t mptable for mouse interrupt support.
Marc Jones [Fri, 26 Sep 2008 17:41:34 +0000 (17:41 +0000)]
Add IRQ12 to the dbm690t mptable for mouse interrupt support.

Signed-off-by: Marc Jones <marc.jones@amd.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3603 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoActivate proper support for EN29F002(A)(N)[BT].
Mats Erik Andersson [Fri, 26 Sep 2008 13:19:02 +0000 (13:19 +0000)]
Activate proper support for EN29F002(A)(N)[BT].

Fully tested for Probe/Read/Erase/Write on EN29F002NT.
Jedec subroutines 'probe_jedec()' and 'erase_chip_jedec()'
are still in use, but a tailored 'write_en29f002a()' is
needed due to a byte wise writing mechanism for this chip.

Signed-off-by: Mats Erik Andersson <mats.andersson@gisladisker.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3602 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd default config file to libpayload so that one can do make defconfig
Stefan Reinauer [Fri, 26 Sep 2008 11:21:21 +0000 (11:21 +0000)]
Add default config file to libpayload so that one can do make defconfig
without errors.

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

15 years agoSupport for the memory controller and PCIe interface of the Intel
Ed Swierk [Wed, 24 Sep 2008 15:06:34 +0000 (15:06 +0000)]
Support for the memory controller and PCIe interface of the Intel
EP80579 Integrated Processor (codename "Tolapai"). The memory
controller code supports only 64-bit-wide DIMMs with x8 devices and
ECC. It has been tested on a development board using a single Micron
MT9HTF6472PY-667D2 DIMM. Your mileage will definitely vary with other
DIMMs.

Signed-off-by: Ed Swierk <eswierk@arastra.com>
Acked-by: Joseph Smith <joe@settoplinux.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3600 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix overflow in modwin erase. Do not refresh modwin yet, since it is
Ulf Jordan [Wed, 24 Sep 2008 14:21:02 +0000 (14:21 +0000)]
Fix overflow in modwin erase. Do not refresh modwin yet, since it is
immediately overwritten by stdscr.

Signed-off-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3599 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdjust width of stdscr to exactly SCREEN_X. This fixes alignment issues due
Ulf Jordan [Wed, 24 Sep 2008 14:17:02 +0000 (14:17 +0000)]
Adjust width of stdscr to exactly SCREEN_X. This fixes alignment issues due
to an extra space sent at end of each line, as well as a data corruption
issue, which could result in undefined color pairs being referenced.

Signed-off-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3598 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix up remaining AMD DBM690T autobuild issue.
Carl-Daniel Hailfinger [Wed, 24 Sep 2008 10:09:03 +0000 (10:09 +0000)]
Fix up remaining AMD DBM690T autobuild issue.

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

15 years agoAdd abuild support for the dbm690t. (trivial)
Marc Jones [Wed, 24 Sep 2008 03:21:55 +0000 (03:21 +0000)]
Add abuild support for the dbm690t. (trivial)

Signed-off-by: Marc Jones <marc.jones@amd.com>
Acked-by: Marc Jones <marc.jones@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3596 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch adds support for watchdog kill and adds it to Asus M2V-MX SE.
Rudolf Marek [Tue, 23 Sep 2008 22:26:27 +0000 (22:26 +0000)]
This patch adds support for watchdog kill and adds it to Asus M2V-MX SE.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Marc Jones <marc.jones@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3595 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThe AMD dbm690t mainboard uses the it8712f SIO with the
Marc Jones [Tue, 23 Sep 2008 22:19:27 +0000 (22:19 +0000)]
The AMD dbm690t mainboard uses the it8712f SIO with the
default 48MHz clock input. The Asus a8n_e uses the it8712f
with a 24MHz clock input. The it8712f early init code was
setting a 24MHz input clock(to support the a8n_e).
Since 48Mhz is the default I added a function to set 24MHz
input clock to the a8n_e.

Signed-off-by: Marc Jones <marc.jones@amd.com>
Acked-by: Rudolf Marek <r.marek@assembler.cz>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3594 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAttached patch removes HPET info from ACPI tables. HPET does not work fine on
Rudolf Marek [Tue, 23 Sep 2008 21:57:33 +0000 (21:57 +0000)]
Attached patch removes HPET info from ACPI tables. HPET does not work fine on
VT8237R (random keyboard/mouse lockups).

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3593 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago1.
Patrick Georgi [Tue, 23 Sep 2008 21:29:53 +0000 (21:29 +0000)]
1.
Preset CC to gcc in Makefile. There are some $(shell $(CC) ...)
invocations with GCC specific options, so that shouldn't hurt.

2.
Replace stdbool.h include in util/kconfig/expr.h by a custom
implementation of booleans. This is okay as these booleans are purely
internal. It's necessary because there's some disagreement between the
Solaris headers and GCC on Solaris, about when stdbool.h is appropriate.

3.
Remove stdbool.h include from util/kconfig/zconf.tab.c_shipped. This
file includes expr.h already, so it picks up the right set of
primitives, without duplicating the special case for Solaris.

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

15 years agoFollowing patch adds support for Asus M2V-E SE. Works pretty well, the only
Rudolf Marek [Tue, 23 Sep 2008 20:36:03 +0000 (20:36 +0000)]
Following patch adds support for Asus M2V-E SE. Works pretty well, the only
problem left is with CPU scaling setup. No VGA - may work with the Xorg drivers
recently released, maybe with OpenChrome too.

It wont work with the little patch which will hop in soon

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Ward Vandewege <ward@gnu.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3591 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoPatch for AMD DBM690T board.
Michael Xie [Mon, 22 Sep 2008 13:16:18 +0000 (13:16 +0000)]
Patch for AMD DBM690T board.

Signed-off-by: Michael Xie <Michael.Xie@amd.com>
Reviewed-by: Marc Jones <marc.jones@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3590 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoPatch for AMD SB600 chipset.
Michael Xie [Mon, 22 Sep 2008 13:11:39 +0000 (13:11 +0000)]
Patch for AMD SB600 chipset.

Most of the functions in SB600 are enabled except power management.

Signed-off-by: Michael Xie <Michael.Xie@amd.com>
Reviewed-by: Marc Jones <marc.jones@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3589 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoPatch for AMD RS690 chipset.
Michael Xie [Mon, 22 Sep 2008 13:07:20 +0000 (13:07 +0000)]
Patch for AMD RS690 chipset.

All the PCIe slots are enabled in this patch except power management.

Signed-off-by: Michael Xie <Michael.Xie@amd.com>
Reviewed-by: Marc Jones <marc.jones@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3588 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAttached patch fixes at least one issue ;) During the PCI BAR sizing must be the
Rudolf Marek [Fri, 19 Sep 2008 22:58:59 +0000 (22:58 +0000)]
Attached patch fixes at least one issue  ;)  During the PCI BAR sizing must be the
 D1F0 bridge without activated I/O and MEM resources, otherwise it will hang
 whole PCI bus.

 U-boot is also disabling the IO/MEM decode when sizing the BARs, dont know why
 does we not.

 Second small change just changes a bit which controls the PSTATECTL logic.

 Third change deals with the integrated VGA, which needs to be enabled early,
 so the VGA_EN is set along the bridges, and PCI K8 resource maps are set
 correctly. Finally the CPU accessible framebuffer is now disabled as it is not
 needed.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3587 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoWhitespace and style cleanup. (trivial)
Marc Jones [Fri, 19 Sep 2008 21:19:46 +0000 (21:19 +0000)]
Whitespace and style cleanup. (trivial)

Signed-off-by: Marc Jones <marc.jones@amd.com>
Acked-by: Marc Jones <marc.jones@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3586 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd AMD K8 S1G1 socket support.
Michael Xie Michael.Xie [Fri, 19 Sep 2008 20:16:25 +0000 (20:16 +0000)]
Add AMD K8 S1G1 socket support.

Signed-off-by: Michael Xie Michael.Xie@amd.com
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3585 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agock804 whitespace fixes
Myles Watson [Thu, 18 Sep 2008 16:27:00 +0000 (16:27 +0000)]
ck804 whitespace fixes

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

15 years agoFix whitespace in tyan s289{1,2,5} files. Also removes some #if 0 and #if 1
Myles Watson [Thu, 18 Sep 2008 15:30:42 +0000 (15:30 +0000)]
Fix whitespace in tyan s289{1,2,5} files.  Also removes some #if 0 and #if 1
that don't seem to clarify anything.  Abuild tested.

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

15 years agofix two minor bugs in nvramtool. (trivial)
Stefan Reinauer [Thu, 18 Sep 2008 14:49:33 +0000 (14:49 +0000)]
fix two minor bugs in nvramtool. (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@3582 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix regression in libpayload introduced by merge of the keyboard drivers.
Stefan Reinauer [Thu, 18 Sep 2008 07:48:59 +0000 (07:48 +0000)]
fix regression in libpayload introduced by merge of the keyboard drivers.
(add back function keys; 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@3581 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago- unify keycodes for non-ASCII keys by using curses' codes and labels
Patrick Georgi [Wed, 17 Sep 2008 18:12:46 +0000 (18:12 +0000)]
- unify keycodes for non-ASCII keys by using curses' codes and labels
- fix ctrl-[a-z]
- get rid of curses' ps/2 driver. uses generic one instead
- #ifdef's around ps/2 keyboard handling and serial handling
- add alt-key handling (necessary for german keymap)
- flush keyboard controller buffer on init

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

15 years agoThis patch adds damage detection to libpayload's tinycurses. This
Stefan Reinauer [Wed, 17 Sep 2008 16:32:17 +0000 (16:32 +0000)]
This patch adds damage detection to libpayload's tinycurses. This
significantly speeds up serial output with large windows.

It also adds the function curs_set to enable/disable the cursor (video console
only for now)

Also, use werase in one place to reduce code duplication.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3579 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago* Implement scrolling in tinycurses
Stefan Reinauer [Fri, 12 Sep 2008 21:50:57 +0000 (21:50 +0000)]
* Implement scrolling in tinycurses
* Fix an off by one bug

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3578 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFor the jetway jf2/4 series of mainboards:
Alex Mauer [Fri, 12 Sep 2008 20:39:04 +0000 (20:39 +0000)]
For the jetway jf2/4 series of mainboards:
* change the comment for device f.0 from "IDE" to "SATA"
* turn on firewire device a.0
* turn on pata device f.1
* don't turn on the unusable device 10.5 (built-in vt8237 ethernet?)

Signed-off-by: Alex Mauer <hawke@hawkesnest.net>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3577 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agomakes cursorx and cursory signed, as there
Patrick Georgi [Thu, 11 Sep 2008 17:44:45 +0000 (17:44 +0000)]
makes cursorx and cursory signed, as there
are several "if (cursorx < 0)" tests.

I also added another one, to make backspace
wrap backwards into the previous line, if necessary.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3576 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix the USB code to find the headers after they were moved.
Jordan Crouse [Thu, 11 Sep 2008 17:29:00 +0000 (17:29 +0000)]
Fix the USB code to find the headers after they were moved.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3575 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoMove the USB header files to a common location for install
Jordan Crouse [Thu, 11 Sep 2008 17:26:53 +0000 (17:26 +0000)]
Move the USB header files to a common location for install
purposes.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3574 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd the target for the previously-added jetway mainboard.
Alex Mauer [Thu, 11 Sep 2008 17:19:19 +0000 (17:19 +0000)]
Add the target for the previously-added jetway mainboard.

This target is a copy of the epia-cn target, with only
COREBOOT_EXTRA_VERSION modified.

Signed-off-by: Alex Mauer <hawke@hawkesnest.net>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3573 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFrom Vincent Legoll:
Stefan Reinauer [Thu, 11 Sep 2008 06:52:22 +0000 (06:52 +0000)]
From Vincent Legoll:
Use dev_path() to have nice debug output
patch is run-time tested

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

15 years agoAdd the "jetway j7f[24]*" mainboard. As compared to the Via Epia CN, this
Alex Mauer [Wed, 10 Sep 2008 20:40:46 +0000 (20:40 +0000)]
Add the "jetway j7f[24]*" mainboard.  As compared to the Via Epia CN, this
changes the superio to a Fintek F71805F as described at
http://www.coreboot.org/Jetway_J7F2_Build_Tutorial

It also creates the mainboard tree for this series of motherboards
(Jetway J7F2 and J7F4).  I've tested it with one motherboard
(J7F2WE1G3), and I believe it works with the others, as the differences
among them are mostly trivial (processor speed, chipset and quantity of
LAN cards, audio chipset, etc.).  A list of the relevant motherboards
with specs can be found at
http://www.jetway.com.tw/jw/ipcboard_socket.asp?platid=16

The irq_tables.c is copied directly from the epia-cn, because the one
generated by getpir with the factory BIOS did not work properly while
the EPIA-CN one did.

Minor changes on checkin to cope with moved romcc in latest revision.

NOTE: This board is broken until the issue introduced in r3567 is resolved.

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

15 years agoflashrom: Winbond W49V002A TEST_OK_ PROBE READ ERASE WRITE
Peter Stuge [Wed, 10 Sep 2008 09:55:10 +0000 (09:55 +0000)]
flashrom: Winbond W49V002A TEST_OK_ PROBE READ ERASE WRITE

Per report from Kevin O'Connor. Thanks Kevin!

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

15 years agoflashrom: Debug print actual time base calculated by myusec_calibrate_delay()
Peter Stuge [Sun, 7 Sep 2008 03:14:27 +0000 (03:14 +0000)]
flashrom: Debug print actual time base calculated by myusec_calibrate_delay()

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

15 years agoAdd editing keypad keys and the missing F11 key to the curses serial
Ulf Jordan [Fri, 5 Sep 2008 21:23:02 +0000 (21:23 +0000)]
Add editing keypad keys and the missing F11 key to the curses serial
input cooking table.

Signed-off-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3568 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch adds support for the VIA VT8237S south bridge. The VT8237R programming...
Rudolf Marek [Fri, 5 Sep 2008 18:20:57 +0000 (18:20 +0000)]
This patch adds support for the VIA VT8237S south bridge. The VT8237R programming remains unchanged (tested
on mine desktop) except of reverting the small change introduced by Bari
(gpio/inta setup reg 0x5b). This should go for some board specific file. The
change would broke at least mine board. But seems to be needed for jakllsch.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Bari Ari <bari@onelabs.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3567 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agodefine array size in a single place (trivial)
Stefan Reinauer [Fri, 5 Sep 2008 15:18:15 +0000 (15:18 +0000)]
define array size in a single place (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@3566 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoMake the serial output driver 8 bit clean. Remove translate_special_chars(),
Ulf Jordan [Thu, 4 Sep 2008 21:05:59 +0000 (21:05 +0000)]
Make the serial output driver 8 bit clean. Remove translate_special_chars(),
since it has been superseeded by the ACS code in tinycurses.

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

15 years agoThis changes the python generated makefiles
Carl-Daniel Hailfinger [Thu, 4 Sep 2008 13:44:00 +0000 (13:44 +0000)]
This changes the python generated makefiles

        targets/*/*/Makefile
        targets/*/*/normal/Makefile
        targets/*/*/fallback/Makefile

to use a common copy of romcc, and to leave this compiler untouched by
'make clean' in targets/*/*/fallback/ and targets/*/*/normal/ .
'make clean' in targets/*/*/ will clean romcc.

Thanks to Mats for the initial idea and implementation of a tool to do
this. This patch has almost the same behaviour as the original tool
without having to run the tool each time.
Tested for abuild-friendliness.

The patch saves ~10-12 seconds for every target using romcc. For a full
abuild run, this is ~20% time saved.
For the first 38 abuild targets, total build time is down to 13m24s
instead of 16m22s on my machine.

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

15 years agoTidy up identifiers, per Uwe's suggestion. Trivial.
Ed Swierk [Wed, 3 Sep 2008 23:32:30 +0000 (23:32 +0000)]
Tidy up identifiers, per Uwe's suggestion.  Trivial.

Signed-off-by: Ed Swierk <eswierk@arastra.com>
Acked-by: Ed Swierk <eswierk@arastra.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3563 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: Only find "unknown .. SPI chip" if no other chip was found
Peter Stuge [Wed, 3 Sep 2008 23:10:05 +0000 (23:10 +0000)]
flashrom: Only find "unknown .. SPI chip" if no other chip was found

This removes the false positive matches we've been seeing, and also removes
the true positive match in case there is more than one flash chip and the 2nd
or 3rd are unknown - but I think that case is uncommon enough to warrant the
improvement in the common case. Use flashrom -frc forced read if you have the
uncommon case, and/or please add the flash chip to the flashchips array.

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

15 years agoAdd support for curses color output over serial.
Ulf Jordan [Wed, 3 Sep 2008 19:59:44 +0000 (19:59 +0000)]
Add support for curses color output over serial.

Note that the sequence \e[m for turning off bold resets all attributes,
including color.

Signed-off-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3561 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch adds USB capabilities to libpayload. It requires some
Patrick Georgi [Tue, 2 Sep 2008 16:06:22 +0000 (16:06 +0000)]
This patch adds USB capabilities to libpayload. It requires some
memalign implementation (eg. the one I sent yesterday).
Features:
 - UHCI controller driver
 - UHCI root hub driver
 - USB MSC (Mass Storage Class) driver
 - skeleton of a USB HID driver
   (requires better interrupt transfer handling, which is TODO)
 - skeleton of a USB hub driver
   (needs several blank spots filled in, eg. power management.
    Again: TODO)

OHCI and EHCI are not supported, though OHCI support should be rather
easy as the stack provides reasonable abstractions (or so I hope). EHCI
will probably be more complicated.

Isochronous transfers (eg. webcams, audio stuff, ...) are not supported.
They can be, but I doubt we'll have a reason for that in the boot
environment.

The MSC driver was tested against a couple of USB flash drives, and
should be reasonably tolerant by now. But I probably underestimate
the amount of bugs present in USB flash drives, so feedback is welcome.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3560 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd memalign(align, size).
Patrick Georgi [Tue, 2 Sep 2008 15:49:32 +0000 (15:49 +0000)]
Add memalign(align, size).

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3559 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThe keyboard driver mixed up the key press/release events for the
Stefan Reinauer [Tue, 2 Sep 2008 09:35:43 +0000 (09:35 +0000)]
The keyboard driver mixed up the key press/release events for the
special keys.

Patrick Georgi explained:
The |0x80 codes are "break codes", that means, codes that are emitted
when the key transitions from pressed to non-pressed, so the modifier
was always in the wrong state, as soon as you pressed shift for the
first time.

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

15 years agoflashrom: SST49LF016C TEST_OK_ PROBE READ ERASE WRITE
Peter Stuge [Tue, 2 Sep 2008 00:26:11 +0000 (00:26 +0000)]
flashrom: SST49LF016C TEST_OK_ PROBE READ ERASE WRITE

Per test report from Bari Ari. Thanks!

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

15 years agoThis patch gets the Epia-CN working without ACPI or APIC.
Bari Ari [Mon, 1 Sep 2008 01:48:07 +0000 (01:48 +0000)]
This patch gets the Epia-CN working without ACPI or APIC.

All devices work, no irq storms. Enjoy.

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

15 years agoVarious Doxygen-related fixes in libpayload (trivial).
Uwe Hermann [Sun, 31 Aug 2008 22:10:35 +0000 (22:10 +0000)]
Various Doxygen-related fixes in libpayload (trivial).

 - Drop all '@brief's, they're not needed as we use JAVADOC_AUTOBRIEF.
   The first sentence of every description will be treated as the '@brief'
   automatically.

 - Also, put all documentation/descriptions on top of the Doxygen-comments,
   and put the '@foo' keywords at the bottom of the comments for consistency.

 - Change comments for SEEK_SET/SEEK_CUR/SEEK_END from '/**@def' to '/**<'
   in order to make them appear in the output.

 - Drop all explicit '@struct' lines (which are optional; Doxygen will figure
   out that it's a struct if the comment is right before the struct).

 - Fix various typos, whitespace issues, etc.

 - Fix incorrect @param variable names, e.g. change '@param n foobar' to
   '@param s foobar' if the variable is named 's'.

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

15 years agofix typo
Paul Menzel [Fri, 29 Aug 2008 09:06:16 +0000 (09:06 +0000)]
fix typo
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3554 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago[PATCH]: libpayload: Document time functions
Jordan Crouse [Thu, 28 Aug 2008 23:12:34 +0000 (23:12 +0000)]
[PATCH]: libpayload:  Document time functions

No code changes.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3553 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago[PATCH]: libpayload: Document the architecture specific routines
Jordan Crouse [Thu, 28 Aug 2008 23:12:22 +0000 (23:12 +0000)]
[PATCH]: libpayload:  Document the architecture specific routines

No code changes.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3552 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago[PATCH]: libpayload: change the type of the cpu_khz variable
Jordan Crouse [Thu, 28 Aug 2008 23:12:02 +0000 (23:12 +0000)]
[PATCH]: libpayload:  change the type of the cpu_khz variable

This makes it match the extern declaration in libc/time.c -
and doxygen can find make the connection. Trivial.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3551 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago[PATCH]: libpayload: Document readline
Jordan Crouse [Thu, 28 Aug 2008 23:11:29 +0000 (23:11 +0000)]
[PATCH]: libpayload:  Document readline

No code changes.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3550 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago[PATCH]: libpayload: Document include/libpayload.h
Jordan Crouse [Thu, 28 Aug 2008 23:10:55 +0000 (23:10 +0000)]
[PATCH]: libpayload:  Document include/libpayload.h

No code changes.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3549 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago[PATCH]: Libpayload: Remove static variables from the doxygen output
Jordan Crouse [Thu, 28 Aug 2008 23:10:25 +0000 (23:10 +0000)]
[PATCH]: Libpayload:  Remove static variables from the doxygen output

No code changes.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3548 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd definitions for DDR2 SPD registers.
Ed Swierk [Thu, 28 Aug 2008 18:23:58 +0000 (18:23 +0000)]
Add definitions for DDR2 SPD registers.

Signed-off-by: Ed Swierk <eswierk@arastra.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3547 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoEric Biederman believes that he and Tom Zimmerman of the defunct
Ed Swierk [Thu, 28 Aug 2008 18:22:40 +0000 (18:22 +0000)]
Eric Biederman believes that he and Tom Zimmerman of the defunct
LinuxNetworx own the copyright for the Intel e7520, e7525 and 3100
raminit code.

Signed-off-by: Ed Swierk <eswierk@arastra.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3546 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agolibpayload: Expand doxygen definitions
Jordan Crouse [Thu, 28 Aug 2008 16:53:24 +0000 (16:53 +0000)]
libpayload:  Expand doxygen definitions

Expand libpayload.h to include a main page and add individual
groups for the API functions - this adds the Modules tab to
the doxygen output.

Specify the INPUT list rather then the EXCLUDE list of directories
to omit random .c files that we don't want.  Add clean targets to
the makefile to clean doxygen files only.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3545 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix libpayload build dependencies (trivial)
Stefan Reinauer [Thu, 28 Aug 2008 15:20:42 +0000 (15:20 +0000)]
fix libpayload build dependencies (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@3544 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoCapture output from 'ld --help', in order that the test
Mats Erik Andersson [Wed, 27 Aug 2008 22:25:55 +0000 (22:25 +0000)]
Capture output from  'ld --help', in order that the test
becomes meaningful. The linker puts help texts on stderr.

Signed-off-by: Mats Erik Andersson <mats.andersson@gisladisker.se>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3543 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoIf you have
Ward Vandewege [Wed, 27 Aug 2008 21:53:11 +0000 (21:53 +0000)]
If you have

  option CONFIG_COMPRESSED_PAYLOAD_LZMA=1
  option CONFIG_PRECOMPRESSED_PAYLOAD=1

set in Config.lb but accidentally use an uncompressed payload, coreboot (v2)
bombs out like this:

  elfboot: Attempting to load payload.
  rom_stream: 0xfffc0000 - 0xfffdefff
  Uncompressing to RAM 0x01000000 Decoder scratchpad too small!
  Decoding error = 1
  Unexpected Exception: 6 @ 10:04000408 - Halting
  Code: 0 eflags: 00010057
  eax: 00000101 ebx: 04000400 ecx: 000003d4 edx: fffc0000
  edi: 04000400 esi: 04000401 ebp: 04000400 esp: 0013dfb4

The attached patch modifies v2's lzma code so that it assumes an uncompressed
payload if it fails to find a properly compressed payload.

Compare with the fatal error above:

  elfboot: Attempting to load payload.
  rom_stream: 0xfffc0000 - 0xfffdefff
  Uncompressing to RAM 0x01000000 Decoder scratchpad too small!
   olen = 0x00000000 done.
  Decompression failed. Assuming payload is uncompressed...
  Found ELF candidate at offset 0
  header_offset is 0
  Try to load at offset 0x0

If you don't have CONFIG_COMPRESSED_PAYLOAD_LZMA and
CONFIG_PRECOMPRESSED_PAYLOAD set and use an uncompressed payload, things are as
before:

  elfboot: Attempting to load payload.
  rom_stream: 0xfffc0000 - 0xfffdefff
  Found ELF candidate at offset 0
  header_offset is 0
  Try to load at offset 0x0

One can argue that this is a case of 'builder beware', but my counter argument
is that anything that causes unexpected runtime breakage is really, really,
really bad, and should be avoided where possible.

This patch also fixes one erroneous comment.

Signed-off-by: Ward Vandewege <ward@gnu.org>
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@3542 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: SST25VF016B TEST_OK_ PROBE READ ERASE WRITE
Peter Stuge [Wed, 27 Aug 2008 21:28:41 +0000 (21:28 +0000)]
flashrom: SST25VF016B TEST_OK_ PROBE READ ERASE WRITE

Per test report from Ward.

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

15 years agoAdd a Doxygen config file and a Makefile target 'doxy' or 'doxygen' which
Uwe Hermann [Wed, 27 Aug 2008 12:53:47 +0000 (12:53 +0000)]
Add a Doxygen config file and a Makefile target 'doxy' or 'doxygen' which
generate API documentation (HTML) for libpayload in a 'doxygen' subdirectory.

A 'make clean' will remove this directory again.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3540 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix string function prototypes in libpayload according to sysv/4.3bsd.
Stefan Reinauer [Tue, 26 Aug 2008 21:51:04 +0000 (21:51 +0000)]
fix string function prototypes in libpayload according to sysv/4.3bsd.
Discussed on IRC, 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@3539 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix some Doxygen warnings and/or typos (trivial).
Uwe Hermann [Tue, 26 Aug 2008 19:37:37 +0000 (19:37 +0000)]
Fix some Doxygen warnings and/or 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@3538 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoHow could -ffreestanding slip through here. Required because libpayload is not
Stefan Reinauer [Tue, 26 Aug 2008 11:18:38 +0000 (11:18 +0000)]
How could -ffreestanding slip through here. Required because libpayload is not
going to run under an OS. (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@3537 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch adds PCI device IDs for the Intel EP80579 Integrated Processor,
Ed Swierk [Mon, 25 Aug 2008 17:02:09 +0000 (17:02 +0000)]
This patch adds PCI device IDs for the Intel EP80579 Integrated Processor,
and renames some existing macros for clarity.

Signed-off-by: Ed Swierk <eswierk@arastra.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3536 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch modifies the Intel 3100 southbridge code to recognize the
Ed Swierk [Mon, 25 Aug 2008 14:45:00 +0000 (14:45 +0000)]
This patch modifies the Intel 3100 southbridge code to recognize the
integrated LPC, SMBus, USB and SATA devices of the Intel EP80579
Integrated Processor.

Signed-off-by: Ed Swierk <eswierk@arastra.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3535 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch implements support for the CPU core of the Intel EP80579
Ed Swierk [Mon, 25 Aug 2008 14:41:11 +0000 (14:41 +0000)]
This patch implements support for the CPU core of the Intel EP80579
Integrated Processor.

Signed-off-by: Ed Swierk <eswierk@arastra.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3534 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoA missing semicolon prevents libpayload to compile, this patch fixes that.
Jakob Bornecrantz [Sat, 23 Aug 2008 12:17:46 +0000 (12:17 +0000)]
A missing semicolon prevents libpayload to compile, this patch fixes that.

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

15 years agoflashrom: Recognize the Intel EP80579 LPC flash interface.
Ed Swierk [Wed, 20 Aug 2008 20:31:41 +0000 (20:31 +0000)]
flashrom: Recognize the Intel EP80579 LPC flash interface.

Signed-off-by: Ed Swierk <eswierk@arastra.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3532 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agosplit the one file, as the several printing functions will continue to grow
Stefan Reinauer [Wed, 20 Aug 2008 13:41:24 +0000 (13:41 +0000)]
split the one file, as the several printing functions will continue to grow
immensly when they know more systems / cpus / chipsets

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

15 years agouse seperate array for core 2 cpus (trivial)
Stefan Reinauer [Wed, 20 Aug 2008 12:42:39 +0000 (12:42 +0000)]
use seperate array for core 2 cpus (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@3530 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agothis port seems somehow broken.. Now, is it using FAILOVER, or is it not?!
Stefan Reinauer [Wed, 20 Aug 2008 09:17:30 +0000 (09:17 +0000)]
this port seems somehow broken.. Now, is it using FAILOVER, or is it not?!

./s2912_fam10/Options.lb:default FALLBACK_SIZE=ROM_SIZE-0x01000

Please, someone with the board test this and fix it accordingly.

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

15 years agoAdd support for MSI KT4V to flashrom. The KT4V is autodetected and supports
Sean Nelson [Tue, 19 Aug 2008 21:51:39 +0000 (21:51 +0000)]
Add support for MSI KT4V to flashrom. The KT4V is autodetected and supports
the KT3 Ultra 2 with "-m msi:kt4v" (but is not autodetected, yet).

Signed-off-by: Sean Nelson <snelson@nmt.edu>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3528 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agotrivial fix for memcpy return code in case someone uses it.
Stefan Reinauer [Tue, 19 Aug 2008 19:18:58 +0000 (19:18 +0000)]
trivial fix for memcpy return code in case someone uses it.

Thanks to Ulf Jordan for figuring this out!

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

15 years agoAdd Tyan S2912 platform with AMD Family 10 support.
Arne Georg Gleditsch [Tue, 19 Aug 2008 17:59:34 +0000 (17:59 +0000)]
Add Tyan S2912 platform with AMD Family 10 support.
Thanks Arne. Good job.

Signed-off-by: Arne Georg Gleditsch <arne.gleditsch@numascale.com>
Acked-by: Marc Jones <marc.jones@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3526 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agomisc fixes:
Stefan Reinauer [Tue, 19 Aug 2008 17:51:30 +0000 (17:51 +0000)]
misc fixes:
 * give struct memrange a name
 * add explicit cast.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3525 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agomake all drivers relocatable. Per default, an 1:1 mapping is assumed.
Stefan Reinauer [Tue, 19 Aug 2008 17:49:53 +0000 (17:49 +0000)]
make all drivers relocatable. Per default, an 1:1 mapping is assumed.
Patch to add relocation to libpayload will follow.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3524 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago* add readline()
Stefan Reinauer [Tue, 19 Aug 2008 17:48:02 +0000 (17:48 +0000)]
* add readline()
* add fatal()

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3523 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago* add readline()
Stefan Reinauer [Tue, 19 Aug 2008 17:47:18 +0000 (17:47 +0000)]
* add readline()
* add fatal()

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3522 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoreplace static functions by macros, because otherwise every unused function
Patrick Georgi [Tue, 19 Aug 2008 17:46:02 +0000 (17:46 +0000)]
replace static functions by macros, because otherwise every unused function
would warn. Bad thing for all -Werror folks out there.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3521 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoadd functions to query cursor position to video layer
Stefan Reinauer [Tue, 19 Aug 2008 17:44:49 +0000 (17:44 +0000)]
add functions to query cursor position to video layer

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3520 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agolibpayload: Fix the memcpy functions
Jordan Crouse [Tue, 19 Aug 2008 16:55:05 +0000 (16:55 +0000)]
libpayload:  Fix the memcpy functions

There was a bit of confusion in the memcpy functions - we could simplify
things slightly without having to revert to 8 bit copies on a 32 bit
system.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3519 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix typo in ctype.c
Stefan Reinauer [Tue, 19 Aug 2008 16:53:47 +0000 (16:53 +0000)]
fix typo in ctype.c

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

15 years agoAdd a kconfig option to choose between outputing ACS characters or
Ulf Jordan [Mon, 18 Aug 2008 19:29:41 +0000 (19:29 +0000)]
Add a kconfig option to choose between outputing ACS characters or
their plain ASCII fallbacks over serial console.

Signed-off-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3517 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix tinycurses color output on the VGA console.
Ulf Jordan [Mon, 18 Aug 2008 19:28:42 +0000 (19:28 +0000)]
Fix tinycurses color output on the VGA console.

The CGA compatible 16 color VGA text mode expects Intensity RGB color
specifications, in the order IRGB from most to least significant bit.
Curses COLOR_ macros follows ANSI X3.64/ISO 6429/ECMA-48, specifying
RGB color in the order BGR from most to least significant bit.
Consequently, it is necessary to swap the red and blue bits.

Signed-off-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3516 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd more information to the libpayload README (trivial).
Uwe Hermann [Mon, 18 Aug 2008 18:55:33 +0000 (18:55 +0000)]
Add more information to the libpayload README (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@3515 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agointeltool: match cpuid before attempting to print MSRs (trivial)
Stefan Reinauer [Mon, 18 Aug 2008 10:58:09 +0000 (10:58 +0000)]
inteltool: match cpuid before attempting to print MSRs (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@3514 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoadd block io functions
Stefan Reinauer [Sat, 16 Aug 2008 15:17:36 +0000 (15:17 +0000)]
add block io functions

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

15 years agotrivial fix: ipchksum takes an unspecified input blob, not explicitly a number of...
Stefan Reinauer [Sat, 16 Aug 2008 15:16:36 +0000 (15:16 +0000)]
trivial fix: ipchksum takes an unspecified input blob, not explicitly a number of shorts.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3512 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix typo in superiotool (trivial)
Stefan Reinauer [Fri, 15 Aug 2008 09:46:55 +0000 (09:46 +0000)]
fix typo in superiotool (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@3511 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1