diff options
author | 2024-12-04 10:43:11 +0100 | |
---|---|---|
committer | 2024-12-09 20:34:36 +0100 | |
commit | 1ec0fa90070c9468d22b3c3ea5f4bd6c27810907 (patch) | |
tree | 352e518a9ff96eb3862d1de1791b6d085b7cbf75 /scripts/lib/kdoc/kdoc_files.py | |
parent | Linux 6.13-rc1 (diff) | |
download | wireguard-linux-1ec0fa90070c9468d22b3c3ea5f4bd6c27810907.tar.xz wireguard-linux-1ec0fa90070c9468d22b3c3ea5f4bd6c27810907.zip |
memory: ti-aemif: Store timings parameter in number of cycles - 1
The CS configuration register expects timings to be expressed in
'number of cycles - 1' but they are stored in ns in the struct
aemif_cs_data. So at init, the timings currently set are converted to ns
by aemif_get_hw_params(), updated with values from the device-tree
properties, and then converted back to 'number of cycles - 1' before
being applied.
Store the timings directly in 'number of cycles - 1' instead of
nanoseconds.
Perform the conversion from nanosecond during the device-tree parsing.
Remove aemif_cycles_to_nsec() as it isn't used anymore.
Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20241204094319.1050826-2-bastien.curutchet@bootlin.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions