diff options
author | Liu Yibin <yibin_liu@c-sky.com> | 2020-03-27 11:31:48 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-28 13:41:03 +0530 |
commit | e5a7f556ce22984128bed0a336551a968c818450 (patch) | |
tree | 36abb2e127ce4d9680f934bf9169f5bdb23bddcb /platform/thead/c910/platform.h | |
parent | 648507a86791d4558e96c9876e757cee2c30b203 (diff) |
platform: thead/c910: Use HSM extension to boot secondary cores
Remove custom vendor extension and use HSM extension
to boot secondary cores
Signed-off-by: Liu Yibin <yibin_liu@c-sky.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'platform/thead/c910/platform.h')
-rw-r--r-- | platform/thead/c910/platform.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/thead/c910/platform.h b/platform/thead/c910/platform.h index 5e74128..0faf2af 100644 --- a/platform/thead/c910/platform.h +++ b/platform/thead/c910/platform.h @@ -10,7 +10,8 @@ #define SBI_THEAD_FEATURES \ (SBI_PLATFORM_HAS_SCOUNTEREN | \ SBI_PLATFORM_HAS_MCOUNTEREN | \ - SBI_PLATFORM_HAS_MFAULTS_DELEGATION) + SBI_PLATFORM_HAS_MFAULTS_DELEGATION | \ + SBI_PLATFORM_HAS_HART_SECONDARY_BOOT) #define CSR_MCOR 0x7c2 #define CSR_MHCR 0x7c1 @@ -21,8 +22,6 @@ #define CSR_MRMR 0x7c6 #define CSR_MRVBR 0x7c7 -#define SBI_EXT_VENDOR_C910_BOOT_OTHER_CORE 0x09000003 - #define C910_PLIC_CLINT_OFFSET 0x04000000 /* 64M */ #define C910_PLIC_DELEG_OFFSET 0x001ffffc #define C910_PLIC_DELEG_ENABLE 0x1 |