risc-v/mpfs: configure harts according to CONFIG_MPFS_HART*_SBI
The following options need to be taken in account while determining the proper hart_index2id -table: CONFIG_MPFS_HART1_SBI CONFIG_MPFS_HART1_SBI CONFIG_MPFS_HART3_SBI CONFIG_MPFS_HART4_SBI Unused harts should be marked with -1. Hart0 is never used so it stays at -1. Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
This commit is contained in:
parent
e5a9ba5602
commit
eb462a2eb3
@ -164,10 +164,26 @@ static struct aclint_mswi_data mpfs_mswi =
|
||||
static const u32 mpfs_hart_index2id[MPFS_HART_COUNT] =
|
||||
{
|
||||
[0] = -1,
|
||||
#ifdef CONFIG_MPFS_HART1_SBI
|
||||
[1] = 1,
|
||||
#else
|
||||
[1] = -1,
|
||||
#endif
|
||||
#ifdef CONFIG_MPFS_HART2_SBI
|
||||
[2] = 2,
|
||||
#else
|
||||
[2] = -1,
|
||||
#endif
|
||||
#ifdef CONFIG_MPFS_HART3_SBI
|
||||
[3] = 3,
|
||||
#else
|
||||
[3] = -1,
|
||||
#endif
|
||||
#ifdef CONFIG_MPFS_HART4_SBI
|
||||
[4] = 4,
|
||||
#else
|
||||
[4] = -1,
|
||||
#endif
|
||||
};
|
||||
|
||||
static const struct sbi_platform platform =
|
||||
|
Loading…
Reference in New Issue
Block a user