diff options
| author | Jared McArthur <[email protected]> | 2025-10-10 14:55:56 -0500 |
|---|---|---|
| committer | Neil Armstrong <[email protected]> | 2025-10-28 17:12:10 +0100 |
| commit | c7327ac29590952089bf3d8994d0951e58cc2322 (patch) | |
| tree | 54b144ed25c9f8f6952ff5a6cd95c6baebf5447c /scripts | |
| parent | ae0872e9c38394be8fcdb38ef391e635d4cf7a22 (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
