Skip to content

Commit

Permalink
drivers: clk: sam: extend the time for waiting PLL ready
Browse files Browse the repository at this point in the history
The start-up time (simulation data) of sama7g5 PLL is 50us in condition
reaching 95% of target frequency. The PLL lock status bit is not set a few
times with current timeout setting. Extend the time to make sure the check
is successful for any cases.

Signed-off-by: Tony Han <[email protected]>
  • Loading branch information
TonyHan11 committed Dec 9, 2024
1 parent 40848ef commit 95478b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/drivers/clk/sam/clk-sam9x60-pll.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct sam9x60_div {
uint32_t __timeout = 0; \
uint32_t _c = 0; \
\
while (__timeout++ < 500) { \
while (__timeout++ < 1000) { \
_c = io_read32((_base) + AT91_PMC_PLL_ISR0) & \
BIT(_id); \
if (_c) \
Expand Down

0 comments on commit 95478b3

Please sign in to comment.