diff options
author | Peng Fan <[email protected]> | 2024-10-27 20:00:07 +0800 |
---|---|---|
committer | Abel Vesa <[email protected]> | 2024-11-05 12:02:20 +0200 |
commit | 5ee063fac85656bea9cfe3570af147ba1701ba18 (patch) | |
tree | fae9239efe38deb0447229bbe7f5a0adb55d17ed /drivers/fpga/fpga-bridge.c | |
parent | a27bfff88dd2e1279c858311bc57ce4deb44f684 (diff) |
clk: imx: lpcg-scu: SW workaround for errata (e10858)
Back-to-back LPCG writes can be ignored by the LPCG register due to
a HW bug. The writes need to be separated by at least 4 cycles of
the gated clock. See https://www.nxp.com.cn/docs/en/errata/IMX8_1N94W.pdf
The workaround is implemented as follows:
1. For clocks running greater than or equal to 24MHz, a read
followed by the write will provide sufficient delay.
2. For clocks running below 24MHz, add a delay of 4 clock cylces
after the write to the LPCG register.
Fixes: 2f77296d3df9 ("clk: imx: add lpcg clock support")
Signed-off-by: Peng Fan <[email protected]>
Reviewed-by: Abel Vesa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Abel Vesa <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions