Vladimir Serbinenko (phcoder(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4617
-gerrit
commit b50ed256d13366513f1bc2faac7c0cc0a29d4b42
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Sun Jan 5 06:50:10 2014 +0100
acpi/ec: Add missing delay
Without this delay on fast systems like X230 the port is read before it's
updated.
Change-Id: I3e01fc348cc5170cec108a05095ba301055ed6b0
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
---
src/ec/acpi/ec.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/ec/acpi/ec.c b/src/ec/acpi/ec.c
index ab287d6..634d2bb 100644
--- a/src/ec/acpi/ec.c
+++ b/src/ec/acpi/ec.c
@@ -53,6 +53,8 @@ int send_ec_command(u8 command)
// return -1;
}
+ udelay(10);
+
outb(command, ec_cmd_reg);
return 0;
}
@@ -73,6 +75,8 @@ int send_ec_data(u8 data)
// return -1;
}
+ udelay(10);
+
outb(data, ec_data_reg);
return 0;
@@ -104,6 +108,8 @@ u8 recv_ec_data(void)
// return -1;
}
+ udelay(10);
+
data = inb(ec_data_reg);
printk(BIOS_SPEW, "recv_ec_data: 0x%02x\n", data);
Vladimir Serbinenko (phcoder(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4617
-gerrit
commit ace97fe05e5c2c55ed7db01b481766be8c216cb3
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Sun Jan 5 06:50:10 2014 +0100
acpi/ec: Add missing delay
Without this delay on fast systems like X230 the port is read before it's
updated.
Change-Id: I3e01fc348cc5170cec108a05095ba301055ed6b0
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
---
src/ec/acpi/ec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/ec/acpi/ec.c b/src/ec/acpi/ec.c
index ab287d6..c24ddbd 100644
--- a/src/ec/acpi/ec.c
+++ b/src/ec/acpi/ec.c
@@ -73,6 +73,8 @@ int send_ec_data(u8 data)
// return -1;
}
+ udelay(10);
+
outb(data, ec_data_reg);
return 0;
@@ -104,6 +106,8 @@ u8 recv_ec_data(void)
// return -1;
}
+ udelay(10);
+
data = inb(ec_data_reg);
printk(BIOS_SPEW, "recv_ec_data: 0x%02x\n", data);
the following patch was just integrated into master:
commit 834370777e7f37d1ced043097f5956bf598a410a
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Sat Jan 4 20:58:55 2014 +0100
MRC cache: determine flash size on runtime
It should be possible to put coreboot compiled for smaller chip by
putting it at the end of bigger chip. We already have chip size in
flash->size. Use it.
Tested on Lenovo X230.
Change-Id: If8ff03ed72671a9f2745ed4e759a04e83aa7cc37
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
See http://review.coreboot.org/4612 for details.
-gerrit
Vladimir Serbinenko (phcoder(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4603
-gerrit
commit b2c695fca59e0781f4b5513cb05dd04eda11fe46
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Thu Jan 2 10:10:14 2014 +0100
nehalem: Simplify acpi.c by using __SIMPLE_DEVICE__
Change-Id: I93351a2716cd58c2006400cecca1390b1704e94b
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
---
src/northbridge/intel/nehalem/acpi.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/northbridge/intel/nehalem/acpi.c b/src/northbridge/intel/nehalem/acpi.c
index df6cc1a..3ed6fd2 100644
--- a/src/northbridge/intel/nehalem/acpi.c
+++ b/src/northbridge/intel/nehalem/acpi.c
@@ -21,6 +21,8 @@
* MA 02110-1301 USA
*/
+#define __SIMPLE_DEVICE__
+
#include <types.h>
#include <string.h>
#include <console/console.h>
@@ -38,10 +40,8 @@ unsigned long acpi_fill_mcfg(unsigned long current)
u32 pciexbar_reg;
int max_buses;
- /* Quickpath bus is not in standard coreboot device tree,
- so read register directly. */
- pciexbar_reg = read32(DEFAULT_PCIEXBAR
- | (QUICKPATH_BUS << 20) | 0x1050);
+ pciexbar_reg =
+ pci_read_config32 (PCI_DEV (QUICKPATH_BUS, 0, 1), 0x50);
// MMCFG not supported or not enabled.
if (!(pciexbar_reg & (1 << 0)))
@@ -173,7 +173,7 @@ int init_igd_opregion(igd_opregion_t * opregion)
/* TODO This needs to happen in S3 resume, too.
* Maybe it should move to the finalize handler
*/
- igd = dev_find_slot(0, PCI_DEVFN(0x2, 0));
+ igd = PCI_DEV (0, 0x2, 0);
pci_write_config32(igd, ASLS, (u32) opregion);
reg16 = pci_read_config16(igd, SWSCI);
the following patch was just integrated into master:
commit 8fb6a5225287dc41b0e20c7e5ccc7c22aa034ebd
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Thu Jan 2 10:12:21 2014 +0100
nehalem: Simplify smi.c by using __SIMPLE_DEVICE__
Change-Id: Ib5bac45ee7aa5492c10fa97cd75b828b6192250d
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
See http://review.coreboot.org/4604 for details.
-gerrit
the following patch was just integrated into master:
commit 4420676503d52fd3a91017a93d6211f012961ac4
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Thu Jan 2 10:08:19 2014 +0100
cpu/cpu.h: Allow compiling with __SIMPLE_DEVICE__
Change-Id: I14a2ac47198be6359b4f10b38f1cf86c9917d67e
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
See http://review.coreboot.org/4602 for details.
-gerrit