diff options
author | Olivier Martin <olivier.martin@arm.com> | 2013-06-19 18:09:19 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-06-19 18:09:19 +0000 |
commit | 86d75840ab802dab7c341e14cc330f159faa4d97 (patch) | |
tree | eab6594fa25c5b1f68802a799c06f2e3a76665ca /ArmPkg | |
parent | e703b085f6a3a2e7a61be97d9154437520b3ae75 (diff) | |
download | edk2-86d75840ab802dab7c341e14cc330f159faa4d97.zip edk2-86d75840ab802dab7c341e14cc330f159faa4d97.tar.gz edk2-86d75840ab802dab7c341e14cc330f159faa4d97.tar.bz2 |
ArmPkg/BdsLib: Update FDT CPU node format
- Based on Doc here:
Repo: http://www.linux-arm.org/git?p=linux-2.6-lp.git
Branch: dt-cpus-bindings
File: Documentation/devicetree/bindings/arm/cpus.txt
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14434 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg')
-rw-r--r-- | ArmPkg/Library/BdsLib/BdsLinuxFdt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ArmPkg/Library/BdsLib/BdsLinuxFdt.c b/ArmPkg/Library/BdsLib/BdsLinuxFdt.c index 4ff0afe..8217740 100644 --- a/ArmPkg/Library/BdsLib/BdsLinuxFdt.c +++ b/ArmPkg/Library/BdsLib/BdsLinuxFdt.c @@ -535,7 +535,9 @@ PrepareFdt ( ArmCoreInfoTable = ArmProcessorTable->ArmCpus;
for (Index = 0; Index < ArmProcessorTable->NumberOfEntries; Index++) {
- AsciiSPrint (Name, 10, "cpu@%d", Index);
+ CoreMpId = (UINTN) GET_MPID (ArmCoreInfoTable[Index].ClusterId,
+ ArmCoreInfoTable[Index].CoreId);
+ AsciiSPrint (Name, 10, "cpu@%x", CoreMpId);
// If the 'cpus' node did not exist then create all the 'cpu' nodes.
// In case 'cpus' node is provided in the original FDT then we do not add
@@ -549,8 +551,7 @@ PrepareFdt ( }
fdt_setprop_string (fdt, cpu_node, "device_type", "cpu");
- CoreMpId = (UINTN) GET_MPID (ArmCoreInfoTable[Index].ClusterId,
- ArmCoreInfoTable[Index].CoreId);
+
CoreMpId = cpu_to_fdtn (CoreMpId);
fdt_setprop (fdt, cpu_node, "reg", &CoreMpId, sizeof (CoreMpId));
if (PsciSmcSupported) {
|