From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [edk2-devel] [PATCH v2 2/2] Platform/RaspberryPi: Enable Bluetooth and UART in Windows OS To: Jeremy Linton ,devel@edk2.groups.io From: =?UTF-8?B?TWFyaW8gQsSDbMSDbmljxIM=?= X-Originating-Location: Galati, RO (5.13.204.103) X-Originating-Platform: Windows Chrome 89 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Fri, 26 Mar 2021 07:33:12 -0700 References: In-Reply-To: Message-ID: <19815.1616769192750324928@groups.io> Content-Type: multipart/alternative; boundary="OrgYdQopz9zcgUAqbqTh" --OrgYdQopz9zcgUAqbqTh Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable >=20 > - GpioIO (Shared, PullUp, 0, 0, IoRestrictionNone, "\\_SB.GDV0.RPIQ", 0, > ResourceConsumer, , ) { 128 } > + //GpioIO (Shared, PullUp, 0, 0, IoRestrictionNone, "\\_SB.GDV0.RPIQ", = 0, > ResourceConsumer, , ) { 128 } >=20 This line should be completely removed. BT_ON is configured by the firmware, and the Windows driver doesn't touch = it. >=20 > + > + PinFunction (Exclusive, PullDown, BCM_ALT3, "\\_SB.GDV0.GPI0", 0, > ResourceConsumer, , ) { 32, 33 } > + > + // fake the CTS signal as we don't support HW flow control yet > + // BCM_ALT2 is set as output (low) by default > + PinFunction (Exclusive, PullNone, BCM_ALT2, "\\_SB.GDV0.GPI0", 0, > ResourceConsumer, , ) { 31 } >=20 This always assumes that PL011 is used for Bluetooth. The pin muxing could= be done in ConfigDxe depending on which UART is unused. Also, pin 31 should be set as a LOW output pin rather than relying on the = default configuration of BCM_ALT2. --OrgYdQopz9zcgUAqbqTh Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
- GpioIO (Shared, PullUp= , 0, 0, IoRestrictionNone, "\\_SB.GDV0.RPIQ", 0, ResourceConsumer, , ) { 12= 8 }
+ //GpioIO (Shared, PullUp, 0, 0, IoRestrictionNone, "\\_SB.GD= V0.RPIQ", 0, ResourceConsumer, , ) { 128 }
This line should be completely removed. 
BT_ON is configured by = the firmware, and the Windows driver doesn't touch it.

+
+ PinFunctio= n (Exclusive, PullDown, BCM_ALT3, "\\_SB.GDV0.GPI0", 0, ResourceConsumer, ,= ) { 32, 33 }
+
+ // fake the CTS signal as we don't supp= ort HW flow control yet
+ // BCM_ALT2 is set as output (low) by de= fault
+ PinFunction (Exclusive, PullNone, BCM_ALT2, "\\_SB.GDV0.GP= I0", 0, ResourceConsumer, , ) { 31 }
This always assumes that PL011 is used for Bluetooth. The pin muxing could= be done in ConfigDxe depending on which UART is unused.
Also, pin 31 = should be set as a LOW output pin rather than relying on the default config= uration of BCM_ALT2. --OrgYdQopz9zcgUAqbqTh--