forked from Project-Silicium/Mu-Silicium
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
4fb1aed
commit ffe8fe1
Showing
22 changed files
with
6,233 additions
and
4 deletions.
There are no files selected for viewing
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
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
30 changes: 29 additions & 1 deletion
30
Platforms/Samsung/x1sPkg/Library/DevicePrePiLib/DevicePrePiLib.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,4 +1,32 @@ | ||
#include <Library/DevicePrePiLib.h> | ||
#include <Library/DebugLib.h> | ||
#include <Library/IoLib.h> | ||
|
||
#include "libfdt.h" | ||
|
||
VOID | ||
DeviceInitialize () {} | ||
DeviceInitialize () | ||
{ | ||
UINT32 fdtBase = MmioRead32(0x92200000); | ||
|
||
DEBUG((EFI_D_WARN, "\n\n\n\nFDT Base: 0x%x\n", fdtBase)); | ||
DEBUG((EFI_D_ERROR, "\n\n\n\nFDT Base: 0x%x\n", fdtBase)); | ||
|
||
UINT32 fdt = MmioRead32(0x8A080000); | ||
DEBUG((EFI_D_WARN, "FDT MAGIC: 0x%x\n", fdt)); | ||
|
||
CONST VOID *fdtP = (CONST VOID *)(0x8A080000); | ||
|
||
if (fdt_check_header(fdtP) == 0) DEBUG((EFI_D_WARN, "ITS AN FDT JIM\n")); | ||
|
||
INT32 offset = 0; | ||
|
||
while ((offset = fdt_next_node(fdtP, offset, NULL)) >= 0) { | ||
const char *node_name = fdt_get_name(fdtP, offset, NULL); | ||
DEBUG((EFI_D_WARN, "Node: %s\n", node_name)); | ||
} | ||
|
||
// if(FdtCheckHeader (fdt) == 0) DEBUG((EFI_D_WARN, "ITS AN FDT JIM\n")); | ||
|
||
while(TRUE){} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Tree traversal functions | ||
- Graft function | ||
- Complete libfdt.h documenting comments |
Oops, something went wrong.