-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
16 deletions.
There are no files selected for viewing
18 changes: 10 additions & 8 deletions
18
Silicon/Qualcomm/SM7325Pkg/Library/PlatformPrePiLib/PlatformPrePiLib.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
#include <Library/IoLib.h> | ||
#include <Library/PlatformPrePiLib.h> | ||
#include <Library/PcdLib.h> | ||
#include <Library/ConfigurationMapHelperLib.h> | ||
|
||
#include "PlatformRegisters.h" | ||
|
||
VOID | ||
PlatformInitialize () | ||
{ | ||
// Initialize GIC | ||
// Wake up redistributor for CPU 0 | ||
MmioWrite32( | ||
GICR_WAKER_CURRENT_CPU, | ||
(MmioRead32(GICR_WAKER_CURRENT_CPU) & ~GIC_WAKER_PROCESSORSLEEP)); | ||
UINT32 EarlyInitCoreCnt = 2; | ||
LocateConfigurationMapUINT32ByName("EarlyInitCoreCnt", &EarlyInitCoreCnt); | ||
|
||
// Wake up redistributor for CPU 1 | ||
MmioWrite32( | ||
GICR_WAKER_CPU(1), | ||
(MmioRead32(GICR_WAKER_CPU(1)) & ~GIC_WAKER_PROCESSORSLEEP)); | ||
for (int i = 0; i < EarlyInitCoreCnt; i++) | ||
{ | ||
// Wake up redistributor for CPU i | ||
MmioWrite32( | ||
GICR_WAKER_CPU(i), | ||
(MmioRead32(GICR_WAKER_CPU(i)) & ~GIC_WAKER_PROCESSORSLEEP)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 10 additions & 8 deletions
18
Silicon/Qualcomm/SM8350Pkg/Library/PlatformPrePiLib/PlatformPrePiLib.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
#include <Library/IoLib.h> | ||
#include <Library/PlatformPrePiLib.h> | ||
#include <Library/PcdLib.h> | ||
#include <Library/ConfigurationMapHelperLib.h> | ||
|
||
#include "PlatformRegisters.h" | ||
|
||
VOID | ||
PlatformInitialize () | ||
{ | ||
// Initialize GIC | ||
// Wake up redistributor for CPU 0 | ||
MmioWrite32( | ||
GICR_WAKER_CURRENT_CPU, | ||
(MmioRead32(GICR_WAKER_CURRENT_CPU) & ~GIC_WAKER_PROCESSORSLEEP)); | ||
UINT32 EarlyInitCoreCnt = 2; | ||
LocateConfigurationMapUINT32ByName("EarlyInitCoreCnt", &EarlyInitCoreCnt); | ||
|
||
// Wake up redistributor for CPU 1 | ||
MmioWrite32( | ||
GICR_WAKER_CPU(1), | ||
(MmioRead32(GICR_WAKER_CPU(1)) & ~GIC_WAKER_PROCESSORSLEEP)); | ||
for (int i = 0; i < EarlyInitCoreCnt; i++) | ||
{ | ||
// Wake up redistributor for CPU i | ||
MmioWrite32( | ||
GICR_WAKER_CPU(i), | ||
(MmioRead32(GICR_WAKER_CPU(i)) & ~GIC_WAKER_PROCESSORSLEEP)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters