summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJared McArthur <[email protected]>2025-10-10 14:55:56 -0500
committerNeil Armstrong <[email protected]>2025-10-28 17:12:10 +0100
commitc7327ac29590952089bf3d8994d0951e58cc2322 (patch)
tree54b144ed25c9f8f6952ff5a6cd95c6baebf5447c /scripts
parentae0872e9c38394be8fcdb38ef391e635d4cf7a22 (diff)
ufs: Add bRefClkFreq attribute setting
A UFS device needs its bRefClkFreq attribute set to the correct value before switching to high speed. If bRefClkFreq is set to the wrong value, all transactions after the power mode change will fail. The bRefClkFreq depends on the host controller and the device. Query the device's current bRefClkFreq and compare with the ref_clk specified in the device-tree. If the two differ, set the bRefClkFreq to the device-tree's ref_clk frequency. Taken from Linux kernel v6.17 (drivers/ufs/core/ufshcd.c and include/ufs/ufs.h) and ported to U-Boot. Signed-off-by: Jared McArthur <[email protected]> Reviewed-by: Bryan Brattlof <[email protected]> Reviewed-by: Udit Kumar <[email protected]> Reviewed-by: Neha Malcom Francis <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Neil Armstrong <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions