Skip to content

Commit

Permalink
Platform/ROCK5B: Enable WIFI Bluetooth regulator
Browse files Browse the repository at this point in the history
  • Loading branch information
silime committed Apr 5, 2024
1 parent 956bbdc commit 2c69e7b
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,33 @@ PlatformSetStatusLed (
GpioPinWrite (0, GPIO_PIN_PB7, Enable);
}

VOID
EFIAPI
PlatformPcieWiFiEnable (
IN BOOLEAN Enable
)
{
// WiFi - enable
GpioPinWrite (0, GPIO_PIN_PC4, Enable);
GpioPinSetDirection (0, GPIO_PIN_PC4, GPIO_PIN_OUTPUT);
GpioPinWrite (4, GPIO_PIN_PA2, Enable);
GpioPinSetDirection (4, GPIO_PIN_PA2, GPIO_PIN_OUTPUT);

// bluetooth - enable
GpioPinWrite (3, GPIO_PIN_PD5, Enable);
GpioPinSetDirection (3, GPIO_PIN_PD5, GPIO_PIN_OUTPUT);
GpioPinWrite (3, GPIO_PIN_PA6, Enable);
GpioPinSetDirection (3, GPIO_PIN_PA6, GPIO_PIN_OUTPUT);

}

VOID
EFIAPI
PlatformEarlyInit (
VOID
)
{
// Configure various things specific to this platform
PlatformPcieWiFiEnable(TRUE);
GpioPinSetFunction(1, GPIO_PIN_PD5, 0); //jdet
}

0 comments on commit 2c69e7b

Please sign in to comment.