arch/tricore: modify gpsr init process

for some chips like tc4xx there also corecs, so need init it too.

Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com>
This commit is contained in:
zhangyu117
2025-04-22 11:32:42 +08:00
committed by Xiang Xiao
parent 4775d6dceb
commit 9685403038
+11
View File
@@ -87,6 +87,8 @@ static void tricore_gpsrinitialize(void)
volatile Ifx_SRC_SRCR *src = &SRC_GPSR00 + up_cpu_index();
int i;
/* Cpux gpsr init */
for (i = 0; i < 6; i++)
{
#ifdef CONFIG_ARCH_TC3XX
@@ -100,6 +102,15 @@ static void tricore_gpsrinitialize(void)
src += TRICORE_SRCNUM_PER_GPSR;
}
/* Cpucs gpsr init */
#ifndef CONFIG_ARCH_TC3XX
src = &SRC_GPSR6_SR0 + up_cpu_index();
IfxSrc_init(src, IfxSrc_Tos_cpu0 + up_cpu_index(),
IRQ_TO_NDX(TRICORE_SRC2IRQ(src)),
IfxSrc_VmId_none);
#endif
}
#endif