the following patch was just integrated into master:
commit dc8b8b6cde6c1826bd55f56ebdde46b05b5097e9
Author: Oskar Enoksson <enok(a)lysator.liu.se>
Date: Fri Oct 14 02:16:48 2011 +0200
Added smbus block read/write for amd8111
Signed-off-by: Oskar Enoksson <enok(a)lysator.liu.se>
Change-Id: I86c80a27fd13c9a2be4034fdfb63be4ab2fadbfc
Build-Tested: build bot (Jenkins) at Thu Oct 27 12:59:01 2011, giving +1
Reviewed-By: Stefan Reinauer <stefan.reinauer(a)coreboot.org> at Thu Oct 27 18:28:49 2011, giving +2
See http://review.coreboot.org/281 for details.
-gerrit
the following patch was just integrated into master:
commit faa83fd3074371696f40629a174dad2e883a7553
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Fri Oct 14 23:02:57 2011 +0200
Move linux 2.6.11 workaround to generic code
Linux 2.6.11 seems to require a certain order in CPUs listed in mptable,
so enforce it. This was only done on arima/hdama, but now is generic.
Unfortunately this is somewhat slow.
Change-Id: I85715ebae8a009cb816bc9ffd6372708f246bf66
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
Build-Tested: build bot (Jenkins) at Sat Oct 15 03:15:08 2011, giving +1
Reviewed-By: Stefan Reinauer <stefan.reinauer(a)coreboot.org> at Thu Oct 27 19:09:28 2011, giving +2
See http://review.coreboot.org/280 for details.
-gerrit
Stefan Reinauer (stefan.reinauer(a)coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/342
-gerrit
commit 269d1090d86f65b4fe674ee28142b4cdaa1b088f
Author: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Date: Thu Oct 27 18:42:53 2011 +0200
Fix checksum calculation both in romstage and ramstage.
The earlier fix for CMOS checksums only fixed the function rtc_set_checksum,
which would fix the checksum, but then coreboot would no longer honor the
settings because it assumed the checksum is wrong after this.
This change fixes the remaining functions.
Change-Id: I3f52d074df29fc29ae1d940b3dcec3aa2cfc96a5
Signed-off-by: Stefan Reinauer <reinauer(a)google.com>
---
src/pc80/mc146818rtc.c | 6 +++---
src/pc80/mc146818rtc_early.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/pc80/mc146818rtc.c b/src/pc80/mc146818rtc.c
index 034957a..99d670d 100644
--- a/src/pc80/mc146818rtc.c
+++ b/src/pc80/mc146818rtc.c
@@ -1,3 +1,4 @@
+#include <stdint.h>
#include <console/console.h>
#include <pc80/mc146818rtc.h>
#include <boot/coreboot_tables.h>
@@ -80,12 +81,11 @@
static int rtc_checksum_valid(int range_start, int range_end, int cks_loc)
{
int i;
- unsigned sum, old_sum;
+ u16 sum, old_sum;
sum = 0;
for(i = range_start; i <= range_end; i++) {
sum += cmos_read(i);
}
- sum = (~sum)&0x0ffff;
old_sum = ((cmos_read(cks_loc)<<8) | cmos_read(cks_loc+1))&0x0ffff;
return sum == old_sum;
}
@@ -93,7 +93,7 @@ static int rtc_checksum_valid(int range_start, int range_end, int cks_loc)
static void rtc_set_checksum(int range_start, int range_end, int cks_loc)
{
int i;
- unsigned sum;
+ u16 sum;
sum = 0;
for(i = range_start; i <= range_end; i++) {
sum += cmos_read(i);
diff --git a/src/pc80/mc146818rtc_early.c b/src/pc80/mc146818rtc_early.c
index abddf87..0652f27 100644
--- a/src/pc80/mc146818rtc_early.c
+++ b/src/pc80/mc146818rtc_early.c
@@ -1,3 +1,4 @@
+#include <stdint.h>
#include <pc80/mc146818rtc.h>
#include <fallback.h>
#if CONFIG_USE_OPTION_TABLE
@@ -23,13 +24,12 @@ static int cmos_chksum_valid(void)
{
#if CONFIG_USE_OPTION_TABLE
unsigned char addr;
- unsigned long sum, old_sum;
+ u16 sum, old_sum;
sum = 0;
- /* Comput the cmos checksum */
+ /* Compute the cmos checksum */
for(addr = LB_CKS_RANGE_START; addr <= LB_CKS_RANGE_END; addr++) {
sum += cmos_read(addr);
}
- sum = (sum & 0xffff) ^ 0xffff;
/* Read the stored checksum */
old_sum = cmos_read(LB_CKS_LOC) << 8;
the following patch was just integrated into master:
commit 64ee1fcb2f421819882b5cc2cd5d1f19ef284c33
Author: Sven Schnelle <svens(a)stackframe.org>
Date: Thu Oct 27 13:10:14 2011 +0200
X60/T60: enable AHCI mode
Signed-off-by: Sven Schnelle <svens(a)stackframe.org>
Change-Id: I2166ae9ee9e7e0e431583249f015d130d15fac61
Build-Tested: build bot (Jenkins) at Thu Oct 27 13:29:16 2011, giving +1
Reviewed-By: Stefan Reinauer <stefan.reinauer(a)coreboot.org> at Thu Oct 27 18:27:23 2011, giving +2
See http://review.coreboot.org/341 for details.
-gerrit
the following patch was just integrated into master:
commit 1cdccab188602150e7deec78bea8339f733ae68d
Author: Sven Schnelle <svens(a)stackframe.org>
Date: Thu Oct 27 13:05:40 2011 +0200
i82801gx: Fix port status in AHCI mode
The code used PCI register 0x92 to enable sata ports,
which is wrong. The ICH7 documentation states:
"This register is only used in systems that do not
support AHCI. In AHCI enabled systems, bits[3:0] must
always be set (ICH7R only) / bits[2,0] must always be set
(Mobile only), and the status of the port is controlled
through AHCI memory space."
Writing 0x0f to ICH7-M doesn't seem to hurt, so lets write
0x0f for both variants. This patch makes sata_ahci work on
my Thinkpad T60 and X60s.
Change-Id: If3b3daec2e5fbaa446de00272ebde01cd8d52475
Signed-off-by: Sven Schnelle <svens(a)stackframe.org>
Build-Tested: build bot (Jenkins) at Thu Oct 27 13:19:40 2011, giving +1
Reviewed-By: Stefan Reinauer <stefan.reinauer(a)coreboot.org> at Thu Oct 27 18:27:07 2011, giving +2
See http://review.coreboot.org/340 for details.
-gerrit
Sven Schnelle (svens(a)stackframe.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/340
-gerrit
commit 1cdccab188602150e7deec78bea8339f733ae68d
Author: Sven Schnelle <svens(a)stackframe.org>
Date: Thu Oct 27 13:05:40 2011 +0200
i82801gx: Fix port status in AHCI mode
The code used PCI register 0x92 to enable sata ports,
which is wrong. The ICH7 documentation states:
"This register is only used in systems that do not
support AHCI. In AHCI enabled systems, bits[3:0] must
always be set (ICH7R only) / bits[2,0] must always be set
(Mobile only), and the status of the port is controlled
through AHCI memory space."
Writing 0x0f to ICH7-M doesn't seem to hurt, so lets write
0x0f for both variants. This patch makes sata_ahci work on
my Thinkpad T60 and X60s.
Change-Id: If3b3daec2e5fbaa446de00272ebde01cd8d52475
Signed-off-by: Sven Schnelle <svens(a)stackframe.org>
---
src/southbridge/intel/i82801gx/chip.h | 1 +
src/southbridge/intel/i82801gx/sata.c | 9 ++++++++-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/southbridge/intel/i82801gx/chip.h b/src/southbridge/intel/i82801gx/chip.h
index b775d39..cc17539 100644
--- a/src/southbridge/intel/i82801gx/chip.h
+++ b/src/southbridge/intel/i82801gx/chip.h
@@ -68,6 +68,7 @@ struct southbridge_intel_i82801gx_config {
uint32_t ide_enable_primary;
uint32_t ide_enable_secondary;
uint32_t sata_ahci;
+ uint32_t sata_ports_implemented;
int c4onc3_enable:1;
};
diff --git a/src/southbridge/intel/i82801gx/sata.c b/src/southbridge/intel/i82801gx/sata.c
index c390848..0e7a1a7 100644
--- a/src/southbridge/intel/i82801gx/sata.c
+++ b/src/southbridge/intel/i82801gx/sata.c
@@ -30,6 +30,8 @@ static void sata_init(struct device *dev)
{
u32 reg32;
u16 reg16;
+ u32 *ahci_bar;
+
/* Get the chip configuration */
config_t *config = dev->chip_info;
@@ -106,9 +108,14 @@ static void sata_init(struct device *dev)
/* Set Sata Controller Mode. */
pci_write_config8(dev, 0x90, 0x40); // 40=AHCI
- /* Port 0 & 1 enable */
+ /* In ACHI mode, bit[3:0] must always be set
+ * (Port status is controlled through AHCI BAR)
+ */
pci_write_config8(dev, 0x92, 0x0f);
+ ahci_bar = (u32 *)(pci_read_config32(dev, 0x27) & ~0x3ff);
+ ahci_bar[3] = config->sata_ports_implemented;
+
/* SATA Initialization register */
pci_write_config32(dev, 0x94, 0x1a000180);
} else {
the following patch was just integrated into master:
commit 236cdde502d46c08e1867ef4a235f4f38ee9f747
Author: Stefan Reinauer <reinauer(a)chromium.org>
Date: Tue Oct 25 12:28:40 2011 -0700
Add -Werror to xcompile's testcc
If -Werror is not specified, tests for certain compiler flags
will emit a warning, which makes the build break since we compile
with -Werror.
Change-Id: I7be56530ff9f94e5500bad226c83e47145a808d7
Signed-off-by: Stefan Reinauer <reinauer(a)google.com>
Reviewed-By: Patrick Georgi <patrick(a)georgi-clan.de> at Thu Oct 27 10:50:38 2011, giving +2
See http://review.coreboot.org/336 for details.
-gerrit