Skip to content
Commit c6ae713c authored by Breno Lima's avatar Breno Lima Committed by Stefano Babic
Browse files

mx7ulp: Update unlock and refresh sequences in sWDOG driver



According to i.MX7ULP Reference Manual the second word write for both
UNLOCK and REFRESH operations must occur in maximum 16 bus clock.

The current code is using writel() function which has a DMB barrier to
order the memory access. The DMB between two words write may introduce
some delay in certain circumstance, causing a WDOG timeout due to 16 bus
clock window requirement.

Replace writel() function by __raw_writel() to achieve a faster memory
access and avoid such issue.

Reviewed-by: default avatarYe Li <ye.li@nxp.com>
Signed-off-by: default avatarBreno Lima <breno.lima@nxp.com>
parent cb391e33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment