mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 13:52:22 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user