diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2014-01-05 06:50:10 +0100 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2014-01-12 18:06:06 +0100 |
commit | ea9181c76aaf4b07cb3de304ef8d8cdf9879b33e (patch) | |
tree | 1c37a95212b6e8241c3b1e077f359ccc3a2094f7 /src/ec/acpi | |
parent | c2ee6801e89b3d4f346e075a034e04716b91d0b7 (diff) | |
download | coreboot-ea9181c76aaf4b07cb3de304ef8d8cdf9879b33e.tar.xz |
acpi/ec: Add missing delays
Without these delays on fast systems like X230 the port is read before it's
updated.
Change-Id: I3e01fc348cc5170cec108a05095ba301055ed6b0
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/4617
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/ec/acpi')
-rw-r--r-- | src/ec/acpi/ec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ec/acpi/ec.c b/src/ec/acpi/ec.c index ab287d6afd..634d2bb941 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); |