Skip to content

Commit

Permalink
SOQUARTZ: drive nEXTRST high on boot (#63)
Browse files Browse the repository at this point in the history
This is used by carriers boards to get some devices
(e.g. USB hub) out of reset.
  • Loading branch information
claplace authored Sep 3, 2023
1 parent b6eb13d commit 022a264
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

/*
* PMIC registers
*/
*/
#define PMIC_I2C_ADDR 0x20

#define PMIC_CHIP_NAME 0xed
Expand Down Expand Up @@ -309,5 +309,13 @@ BoardInitDriverEntryPoint (
/* WiFi setup */
BoardInitWiFi ();

/*
* Set GPIO0 PA5 (nEXTRST) output high,
* "Driven high (CM4_3.3V) once CM4 CPU has started to boot".
* Used to get external devices out of reset state.
*/
GpioPinSetDirection (0, GPIO_PIN_PA5, GPIO_PIN_OUTPUT);
GpioPinWrite (0, GPIO_PIN_PA5, TRUE);

return EFI_SUCCESS;
}

0 comments on commit 022a264

Please sign in to comment.