coreboot.git
15 years agoSB600 has four write once LPC ROM protect areas. It is not possible to write
Marc Jones [Wed, 15 Oct 2008 17:50:29 +0000 (17:50 +0000)]
SB600 has four write once LPC ROM protect areas. It is not possible to write
enable that area once the register is set so print a warning.

Signed-off-by: Marc Jones <marcj.jones@amd.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3659 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoDrop global register 0x07 for all Super I/Os (trivial).
Uwe Hermann [Tue, 14 Oct 2008 16:34:38 +0000 (16:34 +0000)]
Drop global register 0x07 for all Super I/Os (trivial).

This is useless, as it changes with each access; it doesn't convey any
useful information at all.

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

15 years agoAdd dump support to ITE IT8726F, and add comments and a missing GPIO
Josh Profitt [Tue, 14 Oct 2008 16:28:50 +0000 (16:28 +0000)]
Add dump support to ITE IT8726F, and add comments and a missing GPIO
register to ITE IT8718F.

Signed-off-by: Josh Profitt <zorn169@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3657 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd support for the Intel EP80579 (Tolapai) Development Kit mainboard
Ed Swierk [Mon, 13 Oct 2008 23:18:56 +0000 (23:18 +0000)]
Add support for the Intel EP80579 (Tolapai) Development Kit mainboard
(Truxton).

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

15 years agoMove AMD RS690 and SB600 PCI IDs to pci_ids.h where they should be.
Uwe Hermann [Mon, 13 Oct 2008 21:41:24 +0000 (21:41 +0000)]
Move AMD RS690 and SB600 PCI IDs to pci_ids.h where they should be.

Build-tested with the AMD dbm690t board.

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

15 years agoDrop unused (or commented / #if 0) reset.c files.
Uwe Hermann [Mon, 13 Oct 2008 13:08:38 +0000 (13:08 +0000)]
Drop unused (or commented / #if 0) reset.c files.

This is abuild-tested by me.

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

15 years agoDrop tons of duplicated debug.c files, move common file to
Uwe Hermann [Sun, 12 Oct 2008 22:34:08 +0000 (22:34 +0000)]
Drop tons of duplicated debug.c files, move common file to
lib/debug.c and use that one.

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

15 years agoRemove an extra bracket left by the vt8237r cleanup patch (trivial)
Corey Osgood [Sun, 12 Oct 2008 20:35:58 +0000 (20:35 +0000)]
Remove an extra bracket left by the vt8237r cleanup patch (trivial)

Signed-off-by: Corey Osgood <corey.osgood@gmail.com>
Acked-by: Corey Osgood <corey.osgood@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3652 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoVIA VT8237R cleanups (trivial).
Uwe Hermann [Sun, 12 Oct 2008 14:40:23 +0000 (14:40 +0000)]
VIA VT8237R cleanups (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@3651 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd support for the VIA pc2500e mainboard (CN700 + VT8237R).
Uwe Hermann [Sun, 12 Oct 2008 11:58:26 +0000 (11:58 +0000)]
Add support for the VIA pc2500e mainboard (CN700 + VT8237R).

Works good enough to boot to a Linux console.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Corey Osgood <corey.osgood@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3650 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoDrop a number of duplicated failover.c files (they have the same content
Uwe Hermann [Sat, 11 Oct 2008 16:10:54 +0000 (16:10 +0000)]
Drop a number of duplicated failover.c files (they have the same content
as the global src/arch/i386/lib/failover.c file).

Also, drop a number of dummy failover.c files which are not even used at all.

This is abuild-tested by me.

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://svn.coreboot.org/coreboot/trunk@3649 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd ICH10 support to flashrom.
Carl-Daniel Hailfinger [Fri, 10 Oct 2008 20:54:41 +0000 (20:54 +0000)]
Add ICH10 support to flashrom.

The ICH9 and ICH10 data sheets are identical regarding FWH/SPI flash
interfaces, so this just adds the required PCI IDs.

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

15 years agoflashrom: Check that a filename was specified also when using force read
Peter Stuge [Fri, 10 Oct 2008 20:43:17 +0000 (20:43 +0000)]
flashrom: Check that a filename was specified also when using force read

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

15 years agoEnable vga bios by default on Tyan s2881. The board has an onboard ati rage XL.
Ward Vandewege [Fri, 10 Oct 2008 18:06:56 +0000 (18:06 +0000)]
Enable vga bios by default on Tyan s2881. The board has an onboard ati rage XL.

This is a trivial patch.

Signed-off-by: Ward Vandewege <ward@gnu.org>
Acked-by: Ward Vandewege <ward@gnu.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3646 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd Fintek F71882FG support (trivial).
Uwe Hermann [Thu, 9 Oct 2008 23:56:11 +0000 (23:56 +0000)]
Add Fintek F71882FG support (trivial).

Tested on actual hardware, the MSI K9AG Neo2-Digital (MS-7368).

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

15 years agoIndent-based + manual cleanups for CN700 (trivial). As this will be ported
Uwe Hermann [Thu, 9 Oct 2008 17:08:32 +0000 (17:08 +0000)]
Indent-based + manual cleanups for CN700 (trivial). As this will be ported
to v3 sooner or later we cleanup _now_, so we don't have to do it twice.

 - Whitespace, coding style improvements.

 - Fix a few typos.

 - Add a missing #endif in raminit.h.

 - Drop an unused variable.

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

15 years agoAdded comment about sb600 wideio setting for clarity and a minor witespace cleanup...
Marc Jones [Thu, 9 Oct 2008 16:05:16 +0000 (16:05 +0000)]
Added comment about sb600 wideio setting for clarity and a minor witespace  cleanup. (trivial)

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

15 years agolibpayload: Rename Geode video driver to Geode LX video driver.
Peter Stuge [Wed, 8 Oct 2008 14:47:41 +0000 (14:47 +0000)]
libpayload: Rename Geode video driver to Geode LX video driver.

This is simply wrong, the "Geode" video driver is only good for LX and one of
our users got bit by this just now.

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

15 years agomove variable declaration to where it is used, to prevent gcc failure.
Patrick Georgi [Wed, 8 Oct 2008 11:17:25 +0000 (11:17 +0000)]
move variable declaration to where it is used, to prevent gcc failure.
Reported by Roman Yeryomin (and also seen reported earlier). (trivial)

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

15 years ago[PATCH] coreboot: Don't loop forever waiting for HDA codecs
Jordan Crouse [Tue, 7 Oct 2008 16:25:10 +0000 (16:25 +0000)]
[PATCH] coreboot:  Don't loop forever waiting for HDA codecs

We shouldn't assume the presence of a working HDA codec, so put in
a reasonable timeout of 50usecs (timeout value borrowed from the kernel).
This makes SimNow work, since apparently though the codec is
present in Simnow, it is non functional.

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

15 years agoSupport for AM29F002(N)B[BT]. Fully tested on AM29F002NBT.
Mats Erik Andersson [Tue, 7 Oct 2008 12:21:12 +0000 (12:21 +0000)]
Support for AM29F002(N)B[BT]. Fully tested on AM29F002NBT.

Probing, reading, and erasing use the Jedec-routines,
whereas writing resort to the recent write_en29f002a(),
since also these chips use a byte wise algorithm.

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

15 years agoWhitespace fixes.
Myles Watson [Mon, 6 Oct 2008 21:00:46 +0000 (21:00 +0000)]
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@3638 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix obviously (syntactically) broken cmos.layout (trivial).
Uwe Hermann [Sat, 4 Oct 2008 23:13:18 +0000 (23:13 +0000)]
Fix obviously (syntactically) broken cmos.layout (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@3637 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoRon has been doing really good work over in v3. The problem is that the work got...
Marc Jones [Fri, 3 Oct 2008 23:23:20 +0000 (23:23 +0000)]
Ron has been doing really good work over in v3. The problem is that the work got checked into v2. This should get us back to where we were. (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@3636 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix/amend the incorrect pnp_dev_info[] items for the ITE IT8712F Super I/O.
Uwe Hermann [Fri, 3 Oct 2008 18:16:23 +0000 (18:16 +0000)]
Fix/amend the incorrect pnp_dev_info[] items for the ITE IT8712F Super I/O.

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

15 years agoThanks to Jason Zhao we got a skeleton CAR code for VIA C7. I have tried
Carl-Daniel Hailfinger [Fri, 3 Oct 2008 15:17:47 +0000 (15:17 +0000)]
Thanks to Jason Zhao we got a skeleton CAR code for VIA C7. I have tried
to clean it up a bit and find justifications for every difference from
x86 and AMD CAR code. I believe this is mostly merge-ready. Although I'd
have preferred to do this for v3 first, we can fix v2 boards with this
change and then move them to v3.
Thanks to Bari Ari for getting the code to me for rewrite/review.

CONFIG_CARTEST shall not be enabled (breaks the build).

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Signed-off-by: Jason Zhao <jasonzhao@viatech.com.cn>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3634 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoWhitespace cleanup (trivial).
Myles Watson [Thu, 2 Oct 2008 19:21:30 +0000 (19:21 +0000)]
Whitespace cleanup (trivial).

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

15 years agoWhitespace cleanup (trivial).
Myles Watson [Thu, 2 Oct 2008 19:20:22 +0000 (19:20 +0000)]
Whitespace cleanup (trivial).

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

15 years agoCK804 coding-style fixed based on an 'indent' run (trivial).
Uwe Hermann [Thu, 2 Oct 2008 18:19:17 +0000 (18:19 +0000)]
CK804 coding-style fixed based on an 'indent' run (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@3631 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis is so that people can see it. This is the sb600 for v3. It almost
Ronald G. Minnich [Thu, 2 Oct 2008 15:42:14 +0000 (15:42 +0000)]
This is so that people can see it. This is the sb600 for v3. It almost
certainly won't build -- that comes later. I am hoping to get some
eyeballs on it for simple errors.

rs690 is next.

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

15 years agoFix a typo.
Carl-Daniel Hailfinger [Thu, 2 Oct 2008 01:35:03 +0000 (01:35 +0000)]
Fix a typo.

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

15 years agoUse easily readable macros to setup interrupt routing.
Carl-Daniel Hailfinger [Thu, 2 Oct 2008 00:52:53 +0000 (00:52 +0000)]
Use easily readable macros to setup interrupt routing.
Change a few PCI bus/dev/fn to use hexadecimal numbers.
Kill unused variables.

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

15 years agoMissed a CONFIG_USE_PRINTK_IN_CAR define for the Asus m2v-mx_se.
Marc Jones [Wed, 1 Oct 2008 22:15:20 +0000 (22:15 +0000)]
Missed a CONFIG_USE_PRINTK_IN_CAR define for the Asus m2v-mx_se.
This fixes that build error. (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@3627 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd some more Super I/O IDs/names (trivial).
Uwe Hermann [Wed, 1 Oct 2008 20:16:58 +0000 (20:16 +0000)]
Add some more Super I/O IDs/names (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@3626 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoEnable all available devices on the ASUS A8N-E (trivial).
Uwe Hermann [Wed, 1 Oct 2008 13:10:39 +0000 (13:10 +0000)]
Enable all available devices on the ASUS A8N-E (trivial).

This is in preparation for actually making the devices work (which needs
some extra code). Also, fix the incorrect mainboard subsystem IDs.

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

15 years agoThe ARRAY_SIZE macro is convenient, yet mostly unused. Switch lots of
Carl-Daniel Hailfinger [Wed, 1 Oct 2008 12:52:52 +0000 (12:52 +0000)]
The ARRAY_SIZE macro is convenient, yet mostly unused. Switch lots of
code to use it. That makes the code more readable and also less
error-prone.

Abuild tested.

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

15 years agoAdd an abuild command line option for -fno-stack-protect for toolchains that might...
Marc Jones [Tue, 30 Sep 2008 17:09:44 +0000 (17:09 +0000)]
Add an abuild command line option for -fno-stack-protect for toolchains that might require it.

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

15 years agoCoding-style fixes and simplifications for the ASUS A8N-E (trivial).
Uwe Hermann [Tue, 30 Sep 2008 15:02:40 +0000 (15:02 +0000)]
Coding-style fixes and simplifications for the ASUS A8N-E (trivial).
The only non-cosmetic change is s/A8NE/A8N-E/ for the board name.
This is build-tested by me.

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

15 years agoDo not try to display non-printable characters on the bootlog and
Ulf Jordan [Tue, 30 Sep 2008 06:13:54 +0000 (06:13 +0000)]
Do not try to display non-printable characters on the bootlog and
ramdump screens. This fixes unaligned display on serial console.

The current isprint() implementation assumes a C locale, so also
characters with the eigth bit set are supressed (they produced
inconsistant results on VGA and serial anyway).

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

15 years agoA duplicate register address is incremented in table register_values.
Mats Erik Andersson [Tue, 30 Sep 2008 04:52:29 +0000 (04:52 +0000)]
A duplicate register address is incremented in table register_values.
A trivial fix to correct the address of the high byte in SDRAMC.
Thus the leadoff timing IPDLT will be correctly referenced.

Signed-off-by: Mats Erik Andersson <mats.andersson@gisladisker.se>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3620 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch fixes support for the AT49F002N(T) chip in the flashrom tool.
Tim ter Laak [Tue, 30 Sep 2008 04:13:32 +0000 (04:13 +0000)]
This patch fixes support for the AT49F002N(T) chip in the flashrom tool.

It replaces the write function to one based on write_byte_program_jedec()
instead of write_page_write_jedec(), as this part does not support page
programming.
I have verified the NT variant to fully work now, and adjusted the test
status accordingly. The N variant *should* also work with this patch, but
remains untested.

Signed-off-by: Tim ter Laak <timl@scintilla.utwente.nl>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3619 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: ST M29F040B status TEST_OK_ PROBE READ ERASE WRITE
Peter Stuge [Tue, 30 Sep 2008 04:00:23 +0000 (04:00 +0000)]
flashrom: ST M29F040B status TEST_OK_ PROBE READ ERASE WRITE

Per report from Daniel Lindenaar. 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@3618 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAMD K8 platforms must use CAR so it makes sense to use the PRINK_IN_CAR
Marc Jones [Mon, 29 Sep 2008 22:59:23 +0000 (22:59 +0000)]
AMD K8 platforms must use CAR so it makes sense to use the PRINK_IN_CAR
option.
This patch converts the following patches to use PRTINK_IN_CAR
amd/serngeti_cheetah
msi/ms9185
msi/ms9828
supermicro/h8dmr

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

15 years agoflashrom: Fix typo in r3615 (TEST_PREW -> TEST_OK_PREW)
Peter Stuge [Mon, 29 Sep 2008 21:21:36 +0000 (21:21 +0000)]
flashrom: Fix typo in r3615 (TEST_PREW -> TEST_OK_PREW)

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

15 years agoMark the SyncMOS S29C51002T as working (trivial).
Uwe Hermann [Mon, 29 Sep 2008 18:48:23 +0000 (18:48 +0000)]
Mark the SyncMOS S29C51002T as working (trivial).

All operations tested by me on hardware.

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

15 years agoThis patch for the AMD K8 allows a single DIMM to be populated in the
Marc Jones [Mon, 29 Sep 2008 18:09:51 +0000 (18:09 +0000)]
This patch for the AMD K8 allows a single DIMM to be populated in the
ChannelB slot. Previously a DIMM could only be populated in ChannelB
if there was a DIMM already in ChannelA. This patch doesn't allow unmatched
DIMMs to be populate in ChannelA and ChannelB. In an A & B configuration
the DIMM must still be matched.

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

15 years agoAdd string support to nvramtool.
Stefan Reinauer [Sat, 27 Sep 2008 10:08:28 +0000 (10:08 +0000)]
Add string support to nvramtool.

To add a string to your cmos.layout, you need to specify type 's':

#start     len       type    unused   name
416        512       s       0        boot_devices

With this patch you can do

$ nvramtool -w boot_devices="(hd0,0);(hd2,1);(hd3)"

And FILO will attempt to load a menu.lst from any of these devices in that
order.

The patch is not exactly pretty, but a cleaner solution might have resulted in
a complete rewrite of the tool, which I did not want.

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

15 years agofix ppc mainboards (trivial)
Stefan Reinauer [Sat, 27 Sep 2008 08:51:11 +0000 (08:51 +0000)]
fix ppc mainboards (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@3612 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoaccidently backed out r3598. Sorry Ulf, will pay more attention next time.
Stefan Reinauer [Fri, 26 Sep 2008 19:37:16 +0000 (19:37 +0000)]
accidently backed out r3598. Sorry Ulf, will pay more attention next time.

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

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