[PDK-6649] OSAL: nonos: Fix issues in TimerP_delte reset mask
authorDon Dominic <a0486429@ti.com>
Mon, 22 Mar 2021 16:24:26 +0000 (21:54 +0530)
committerDon Dominic <a0486429@ti.com>
Mon, 22 Mar 2021 16:24:26 +0000 (21:54 +0530)
commit26c47387a4ece5fa97efc5e95e2cd68abff3d4f2
treebf1d885a41218c94cb5bff204fdcb94cd222600c
parent2103ee939c182e4145fce74a9e9847f7cd344c9f
[PDK-6649] OSAL: nonos: Fix issues in TimerP_delte reset mask

- Convert/Reverse map the Timer ID to corresponding timer bit id.
- 'TimerP_mapId' was called during TimerP_create to map the id to respective ID for that core for timer
- the reverse operation is required to clear/reset the appropriate bit in the gTimerAnyMask
- Hence added 'TimerP_reverseMapId' to do the reverse translation
- The above fxn is called before clearing the mask's bit filed to find the correct bit

- Issues was observed in J721E MAIN Domain mcu cores in which the 'TimerP_mapId' translation was active

- Verified OSAL UT

Signed-off-by: Don Dominic <a0486429@ti.com>
packages/ti/osal/soc/am64x/TimerP_default.c
packages/ti/osal/soc/am65xx/TimerP_default.c
packages/ti/osal/soc/j7200/TimerP_default_r5f.c
packages/ti/osal/soc/j721e/TimerP_default.c
packages/ti/osal/src/nonos/Nonos_config.h
packages/ti/osal/src/nonos/timer/v1/TimerP_nonos.c