From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.3450.1616579178320536911 for ; Wed, 24 Mar 2021 02:46:18 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: sunny.wang@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id ECBBED6E; Wed, 24 Mar 2021 02:46:17 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 089993F718; Wed, 24 Mar 2021 02:46:15 -0700 (PDT) From: "Sunny Wang" To: devel@edk2.groups.io Cc: Sunny Wang , Samer El-Haj-Mahmoud , Sami Mujawar , Jeremy Linton , Pete Batard , Ard Biesheuvel , Sunny Wang Subject: [PATCH v2 2/2] Platform/RaspberryPi: Enable Bluetooth and UART in Windows OS Date: Wed, 24 Mar 2021 17:45:24 +0800 Message-Id: <20210324094524.184-2-Sunny.Wang@arm.com> X-Mailer: git-send-email 2.31.0.windows.1 In-Reply-To: <20210324094524.184-1-Sunny.Wang@arm.com> References: <20210324094524.184-1-Sunny.Wang@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Merge changes in edk2-platforms-raspberrypi-pl011-bth-noflow.diff in https://github.com/worproject/RPi-Bluetooth-Testing/ for enabling Bluetooth and serial port (Mini UART) in Windows OS. Testing Done: - Successfully booted Windows 10 (20279.1) on SD (made by WOR) with the RPi-Windows-Drivers release ver 0.5 downloaded from https://github.com/worproject/RPi-Windows-Drivers/releases and checked that both Bluetooth and serial port (Mini UART) can work fine. Cc: Samer El-Haj-Mahmoud Cc: Sami Mujawar Cc: Jeremy Linton Cc: Pete Batard Cc: Ard Biesheuvel Signed-off-by: Sunny Wang --- Platform/RaspberryPi/AcpiTables/Uart.asl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Platform/RaspberryPi/AcpiTables/Uart.asl b/Platform/RaspberryP= i/AcpiTables/Uart.asl index 8ce297078d..e3165911a6 100644 --- a/Platform/RaspberryPi/AcpiTables/Uart.asl +++ b/Platform/RaspberryPi/AcpiTables/Uart.asl @@ -30,6 +30,12 @@ Device (URT0) {=0D MEMORY32FIXED (ReadWrite, 0, BCM2836_PL011_UART_LENGTH, RMEM)=0D Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { BCM2836_P= L011_UART_INTERRUPT }=0D +=0D + PinFunction (Exclusive, PullDown, BCM_ALT3, "\\_SB.GDV0.GPI0", 0, Reso= urceConsumer, , ) { 32, 33 }=0D +=0D + // fake the CTS signal as we don't support HW flow control yet=0D + // BCM_ALT2 is set as output (low) by default=0D + PinFunction (Exclusive, PullNone, BCM_ALT2, "\\_SB.GDV0.GPI0", 0, Reso= urceConsumer, , ) { 31 }=0D })=0D Method (_CRS, 0x0, Serialized)=0D {=0D @@ -142,7 +148,7 @@ Device(BTH0) //=0D // RPIQ connection for BT_ON/OFF=0D //=0D - GpioIO (Shared, PullUp, 0, 0, IoRestrictionNone, "\\_SB.GDV0.RPIQ", = 0, ResourceConsumer, , ) { 128 }=0D + //GpioIO (Shared, PullUp, 0, 0, IoRestrictionNone, "\\_SB.GDV0.RPIQ"= , 0, ResourceConsumer, , ) { 128 }=0D })=0D Return (RBUF)=0D }=0D --=20 2.31.0.windows.1