diff options
author | zwei4 <david.wei@intel.com> | 2018-01-10 17:19:46 +0800 |
---|---|---|
committer | zwei4 <david.wei@intel.com> | 2018-01-10 17:25:43 +0800 |
commit | aa7f1e63265f7b029f5aa433773e3486726cd16c (patch) | |
tree | d98e2121bfdf9915efd9726b3e02ab90040c01ca | |
parent | 88d98451d5ffb3bb20d6c639afc4bb5e927e2559 (diff) | |
download | edk2-platforms-aa7f1e63265f7b029f5aa433773e3486726cd16c.tar.xz |
FAB ID.
Add code to detect FAB ID of Aurora Glacier.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: zwei4 <david.wei@intel.com>
-rw-r--r-- | Platform/BroxtonPlatformPkg/Board/AuroraGlacier/BoardInitPreMem/BoardInit.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Platform/BroxtonPlatformPkg/Board/AuroraGlacier/BoardInitPreMem/BoardInit.c b/Platform/BroxtonPlatformPkg/Board/AuroraGlacier/BoardInitPreMem/BoardInit.c index bda774cb2a..41d1c5af30 100644 --- a/Platform/BroxtonPlatformPkg/Board/AuroraGlacier/BoardInitPreMem/BoardInit.c +++ b/Platform/BroxtonPlatformPkg/Board/AuroraGlacier/BoardInitPreMem/BoardInit.c @@ -73,15 +73,13 @@ AuroraGlacierPreMemInit ( DEBUG ((EFI_D_INFO, "This is Aurora Glacier board.\n"));
- //
- //Status = AuroraGetFabId (PeiServices, &FabId);
- //if (FabId == 1) {
- // DEBUG ((EFI_D_INFO, "This is Aurora Glacier FAB B.\n"));
- //} else if (FabId == 0) {
- // DEBUG ((EFI_D_INFO, "This is Aurora Glacier FAB A.\n"));
- //}
- //
- FabId = 0;
+
+ Status = AuroraGetFabId (PeiServices, &FabId);
+ if (FabId == 1) {
+ DEBUG ((EFI_D_INFO, "This is Aurora Glacier FAB B.\n"));
+ } else if (FabId == 0) {
+ DEBUG ((EFI_D_INFO, "This is Aurora Glacier FAB A.\n"));
+ }
PcdSet8 (PcdBoardId, BoardId);
PcdSet8 (PcdFabId, FabId);
|