From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: michael.a.kubacki@intel.com) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by groups.io with SMTP; Tue, 24 Sep 2019 11:13:30 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Sep 2019 11:13:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,545,1559545200"; d="scan'208";a="340160788" Received: from makuback-desk1.amr.corp.intel.com ([10.7.159.162]) by orsmga004.jf.intel.com with ESMTP; 24 Sep 2019 11:13:29 -0700 From: "Kubacki, Michael A" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Ankit Sinha , Jeremy Soller Subject: [edk2-platforms][PATCH V2 13/15] KabylakeOpenBoardPkg/BoardAcpiDxe: Add Synaptics PS/2 mouse Date: Tue, 24 Sep 2019 11:12:46 -0700 Message-Id: <20190924181248.12816-14-michael.a.kubacki@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20190924181248.12816-1-michael.a.kubacki@intel.com> References: <20190924181248.12816-1-michael.a.kubacki@intel.com> REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2207 Moves the Synaptics PS/2 mouse support required for the Galago Pro 3 trackpad to function from the previous location in ClevoOpenBoardPkg/N1xxWU to the common ASL file in KabylakeOpenBoardPkg. The board ID is used to determine which PS/2 mouse device to expose. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Ankit Sinha Cc: Jeremy Soller Signed-off-by: Michael Kubacki --- Platform/Intel/KabylakeOpenBoardPkg/Acpi/BoardAcpiDxe/Dsdt/LpcB.asl | 41 +++++++++++++++++++- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/Platform/Intel/KabylakeOpenBoardPkg/Acpi/BoardAcpiDxe/Dsdt/LpcB.asl b/Platform/Intel/KabylakeOpenBoardPkg/Acpi/BoardAcpiDxe/Dsdt/LpcB.asl index 9f9d39c92c..d934c20beb 100644 --- a/Platform/Intel/KabylakeOpenBoardPkg/Acpi/BoardAcpiDxe/Dsdt/LpcB.asl +++ b/Platform/Intel/KabylakeOpenBoardPkg/Acpi/BoardAcpiDxe/Dsdt/LpcB.asl @@ -1,11 +1,12 @@ /** @file ACPI DSDT table -Copyright (c) 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ +#include "PlatformBoardId.h" // LPC Bridge - Device 31, Function 0 scope (\_SB.PCI0.LPCB) { @@ -66,7 +67,43 @@ scope (\_SB.PCI0.LPCB) { { If (P2MK) //Ps2 Keyboard and Mouse Enable { - Return(0x000F) + If (LNotEqual(BDID,BoardIdGalagoPro3)) + { + Return(0x000F) + } + } + } + Return(0x0000) + } + + Name(_CRS,ResourceTemplate() + { + IRQ(Edge,ActiveHigh,Exclusive){0x0C} + }) + + Name(_PRS, ResourceTemplate(){ + StartDependentFn(0, 0) { + IRQNoFlags(){12} + } + EndDependentFn() + }) + } + + Device(SYNM) // Synaptics Mouse + { + Name(_HID,"SYN1221") + Name(_CID,EISAID("PNP0F13")) + + Method(_STA) + { + If (P2ME) //Ps2 Mouse Enable + { + If (P2MK) //Ps2 Keyboard and Mouse Enable + { + If (LEqual(BDID,BoardIdGalagoPro3)) + { + Return(0x000F) + } } } Return(0x0000) -- 2.16.2.windows.1