soc: arm: Don't touch interrupts in kinetis watchdog init
The early boot watchdog init for kinetis was incorrectly disabling and reenabling interrupts to preserve timing during the unlock sequence. However, interrupts are already disabled before this routine executes and the kernel is not yet ready to enable them when this routine exits. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
2346e318d3
commit
ac562d537b
2 changed files with 0 additions and 8 deletions
|
@ -50,8 +50,6 @@ SECTION_FUNC(TEXT,_WdogInit)
|
|||
* interrupts to keep the code atomic and ensure the timing.
|
||||
*/
|
||||
|
||||
cpsid i
|
||||
|
||||
ldr r0, =PERIPH_ADDR_BASE_WDOG
|
||||
|
||||
movw r1, #WDOG_UNLOCK_1_CMD
|
||||
|
@ -72,7 +70,5 @@ SECTION_FUNC(TEXT,_WdogInit)
|
|||
bics r1, r2
|
||||
strh r1, [r0, #WDOG_SCTRL_HI_OFFSET]
|
||||
|
||||
cpsie i
|
||||
|
||||
bx lr
|
||||
|
||||
|
|
|
@ -50,8 +50,6 @@ SECTION_FUNC(TEXT,_WdogInit)
|
|||
* interrupts to keep the code atomic and ensure the timing.
|
||||
*/
|
||||
|
||||
cpsid i
|
||||
|
||||
ldr r0, =PERIPH_ADDR_BASE_WDOG
|
||||
|
||||
movw r1, #WDOG_UNLOCK_1_CMD
|
||||
|
@ -72,7 +70,5 @@ SECTION_FUNC(TEXT,_WdogInit)
|
|||
bics r1, r2
|
||||
strh r1, [r0, #WDOG_SCTRL_HI_OFFSET]
|
||||
|
||||
cpsie i
|
||||
|
||||
bx lr
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue