From patchwork Tue Aug 2 03:53:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 654488 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3s3MfW5wFfz9t1t for ; Tue, 2 Aug 2016 13:50:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=RZwcJU3Q; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BA7ABA751B; Tue, 2 Aug 2016 05:50:09 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jaakkWp-Ug_u; Tue, 2 Aug 2016 05:50:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 40C94A74FB; Tue, 2 Aug 2016 05:50:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E6466A74FB for ; Tue, 2 Aug 2016 05:50:06 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0iF5ET8_66R6 for ; Tue, 2 Aug 2016 05:50:06 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f68.google.com (mail-pa0-f68.google.com [209.85.220.68]) by theia.denx.de (Postfix) with ESMTPS id 40D5FA74F1 for ; Tue, 2 Aug 2016 05:50:02 +0200 (CEST) Received: by mail-pa0-f68.google.com with SMTP id cf3so11029961pad.2 for ; Mon, 01 Aug 2016 20:50:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=6YUb2P8RX6z2kPrb436mRouMcusNFMo1pa9JwavkvM0=; b=RZwcJU3QqooRqnYBnxWosQJ/JFTqkTH03QI/fbIsdCQuN/eHGoxQ1JLuNL0kEm39FA 8/0RJ0YZnKV8aM/Sje3Hn2RyabbVAUN4bgK865ZdmpJS2YmaGrZqVr65i/PdLGZX7s/t UNfDvQOOSopfxtl5nMW6OVepo9bnX4P+oJ9S0PfROYa3YhLAlLziZmEcSx5oUovqLkNP 4DCtSxQeNmmbcxfNNLN2Mz7j9FuUdfltx6K/RoF4GW9z1gDvWMMn9G38SFXS9ZkKlFqP 1yEchUOL1fLekXJxUvGHirMo+XAOILJQoneakthhRyZH2cjgalhtyb8CmXX/u7wVjjst jYXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=6YUb2P8RX6z2kPrb436mRouMcusNFMo1pa9JwavkvM0=; b=WVIGEW2r2Y00LX8B3GfuvY2ObidISVNOQK7vZqWlBSxv0igyy2p0YHXq0FM5ojHkYX OjCT8/F+clT5lIzciSqmcuU7ZYo64wFdI+9kTxhqtz3F2xvps5NfGA9RpkEIeuxv6FMz WZyWGkoxA2jWkTgCHtdTC5XtJCY+2Umzop47bkJ92Um1QZkCwvm3Xgoe5LcTo6ml78LD V5c4mPRbypZrWo/xpLlWmxx1o1ZsP8Vv7Y6GArD6oxZ8k+8XwUQwGEf5HZADvJgP9o/w niCQFD5Ydr0K6vF1kyVvSQ1ZgSKbO6DFhRNSqXS4M00bEUrq7sAw/rVlijuNkIErl/fI 2ndQ== X-Gm-Message-State: AEkoouvF5TU7gOUZtxatQwa/ZoZUpUN2kJelRAX0AkZ593aZzEtLrSjMvRio91bWCq1Hfw== X-Received: by 10.66.183.80 with SMTP id ek16mr101570327pac.21.1470109800819; Mon, 01 Aug 2016 20:50:00 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-157-139.windriver.com. [147.11.157.139]) by smtp.gmail.com with ESMTPSA id p75sm493633pfa.71.2016.08.01.20.49.59 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Aug 2016 20:49:59 -0700 (PDT) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Mon, 1 Aug 2016 20:53:53 -0700 Message-Id: <1470110033-23758-1-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 Subject: [U-Boot] [PATCH] x86: bayleybay: Add PS/2 keyboard and mouse to ASL file X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Without PS/2 keyboard and mouse in the ASL file, Windows does not see them. No problem for Linux as it probes keyboard and mouse via the legacy 8042 I/O port. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- board/intel/bayleybay/acpi/mainboard.asl | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/board/intel/bayleybay/acpi/mainboard.asl b/board/intel/bayleybay/acpi/mainboard.asl index 21785ea..8b7ee3f 100644 --- a/board/intel/bayleybay/acpi/mainboard.asl +++ b/board/intel/bayleybay/acpi/mainboard.asl @@ -9,3 +9,41 @@ Device (PWRB) { Name(_HID, EISAID("PNP0C0C")) } + +/* PS/2 keyboard and mouse */ +Scope (\_SB.PCI0.LPCB) +{ + /* 8042 Keyboard */ + Device (PS2K) + { + Name(_HID, EISAID("PNP0303")) + Name(_CRS, ResourceTemplate() + { + IO(Decode16, 0x60, 0x60, 0x00, 0x01) + IO(Decode16, 0x64, 0x64, 0x00, 0x01) + IRQNoFlags() { 1 } + }) + + Method(_STA, 0, Serialized) + { + Return (STA_VISIBLE) + } + } + + /* 8042 Mouse */ + Device (PS2M) + { + Name(_HID, EISAID("PNP0F03")) + Name(_CRS, ResourceTemplate() + { + IO(Decode16, 0x60, 0x60, 0x00, 0x01) + IO(Decode16, 0x64, 0x64, 0x00, 0x01) + IRQNoFlags() { 12 } + }) + + Method(_STA, 0, Serialized) + { + Return (STA_VISIBLE) + } + } +}