Skip to content

Commit

Permalink
Platform/OPi5Plus: Enable Wi-Fi regulator
Browse files Browse the repository at this point in the history
  • Loading branch information
S199pWa1k9r authored and mariobalanica committed Jan 4, 2024
1 parent cf56262 commit 5974d88
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,23 @@ PlatformSetStatusLed (
GpioPinWrite (3, GPIO_PIN_PA6, Enable);
}

VOID
EFIAPI
PlatformWiFiEnable (
IN BOOLEAN Enable
)
{
// WiFi - enable
GpioPinWrite (0, GPIO_PIN_PC4, Enable);
GpioPinSetDirection (0, GPIO_PIN_PC4, GPIO_PIN_OUTPUT);
}

VOID
EFIAPI
PlatformEarlyInit (
VOID
)
{
// Configure various things specific to this platform
PlatformWiFiEnable (TRUE);
}

0 comments on commit 5974d88

Please sign in to comment.