summaryrefslogtreecommitdiff
path: root/util/autoport/ec_fixme.go
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2015-05-29 23:53:37 +0200
committerVladimir Serbinenko <phcoder@gmail.com>2015-05-30 13:55:38 +0200
commit91195c64371a1dd40a98d6998bc2c2e899ef55c9 (patch)
tree892b7ac9c0fecc84d7a80bfe891ed9d0df0e9f4b /util/autoport/ec_fixme.go
parent239d53e9dc04767a550580210a102610ffafda2b (diff)
downloadcoreboot-91195c64371a1dd40a98d6998bc2c2e899ef55c9.tar.xz
autoport: Improve keyboard detection.
Previously I tried to see if Linux think that port 0x60 is in use by keyboard. Unfortunately it always thinks that it is. Instead just base off real input busses used. Change-Id: I4bb744938f623d29f38396165a1694fee78c3d32 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/10376 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <edward.ocallaghan@koparo.com>
Diffstat (limited to 'util/autoport/ec_fixme.go')
-rw-r--r--util/autoport/ec_fixme.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/autoport/ec_fixme.go b/util/autoport/ec_fixme.go
index d7dff52770..850998d5ce 100644
--- a/util/autoport/ec_fixme.go
+++ b/util/autoport/ec_fixme.go
@@ -6,7 +6,7 @@ func FIXMEEC(ctx Context) {
ap := Create(ctx, "acpi/platform.asl")
defer ap.Close()
- hasKeyboard := IsIOPortUsedBy(ctx, 0x60, "keyboard")
+ hasKeyboard := ctx.InfoSource.HasPS2()
sbGPE := GuessECGPE(ctx)
var GPEUnsure bool