This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
module/sc_pll: Fix the lock timeout and error handling of the functions
FWK_E_TIMEOUT is returned if the PLL lock is not achieved till the timeout period. This error is not propagated up to the functions iterating on the POSTDIV min-max values. With timeout returned, the set_rate function should be stopped for any further calculations. Instead, it continues with the next iterations on POSTDIV1 and POSTDIV2 with the existing implementation. Adding the check for FWK_E_TIMEOUT alongside FWK_SUCCESS. The PLL lock timeout value has been erroneously changed to 0x100 while making SC_PLL a generic SCP module. Reverting it back to the original value 0x100000 used previously in the product-based implementation. Also, add unit-tests for pll_write() function and test for its success and timeout. Signed-off-by: Himanshu Sharma <Himanshu.Sharma@arm.com> Change-Id: I8db833d4ee3edf6ade7e297178b1292cbdc1db75
- Loading branch information
Showing
4 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters