Determine total number of HARTs from DTB instead of
using PCD. Also specify the desired boot HART ID.

Signed-off-by: Abner Chang <abner.ch...@hpe.com>
Cc: Daniel Schaefer <daniel.schae...@hpe.com>
Cc: Sunil V L <suni...@ventanamicro.com>
---
 .../SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf.inc    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf.inc 
b/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf.inc
index abfb013a92..3b40f5486c 100644
--- a/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf.inc
+++ b/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf.inc
@@ -83,10 +83,13 @@ SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdTemporaryRamSize 
= 0x10000
 
 SET gUefiRiscVPkgTokenSpaceGuid.PcdRiscVMachineTimerFrequencyInHerz    = 
1000000
 SET gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdU5PlatformSystemClock = 
100000000 # 100Mhz system clock
-SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdHartCount                   = 4     
    # Total cores on U500 platform
 SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootableHartNumber          = 4     
    # The bootable hart core number.
                                                                                
    # Which is incorporate with OpenSBI
                                                                                
    # platform hart_index2id value.
+#
+# Use hart ID 0, 1, 2, 3
+#
+SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootableHartIndexToId       = 
{0x0,0x1,0x2,0x3}
 
 SET gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdNumberofU5Cores       = 4     
    # Total U5 cores enabled on U500 platform
 SET gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdE5MCSupported         = False 
    # Enable optional E51 MC core?
-- 
2.31.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#83746): https://edk2.groups.io/g/devel/message/83746
Mute This Topic: https://groups.io/mt/87062626/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to