mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-02-28 02:01:50 +00:00
platform: generic: mips p8700: use SBI bitfield manipulator macros
Switch to GENMASK, EXTRACT_BITFIELD, INSERT_BITFIELD Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260223-for-upstream-eyeq7h-v3-16-621d004d1a21@mobileye.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
committed by
Anup Patel
parent
bdec423074
commit
76ecd8f37a
@@ -240,7 +240,7 @@ static void eyeq7h_init_clusters(void)
|
||||
sbi_dprintf("Use %d clusters\n", num_clusters);
|
||||
/* Power up other clusters in the platform. */
|
||||
for (int i = 1; i < num_clusters; i++) {
|
||||
eyeq7h_power_up_other_cluster(i << NEW_CLUSTER_SHIFT);
|
||||
eyeq7h_power_up_other_cluster(INSERT_FIELD(0, P8700_HARTID_CLUSTER, i));
|
||||
}
|
||||
eyeq7h_active_clusters = num_clusters;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user