summaryrefslogtreecommitdiff
path: root/tools/patman/patchstream.py
diff options
context:
space:
mode:
authorMichael Walle <mwalle@kernel.org>2024-07-18 22:42:53 +0200
committerAndre Przywara <andre.przywara@arm.com>2024-08-06 11:20:10 +0100
commit541a1649e74787682902d820d0b79e16bad69a4f (patch)
tree0348d9eb365add5def50c29884e962f775298f5c /tools/patman/patchstream.py
parent6aadcb814d1e2203b0b953dda8d5fbdc7b3a9bf0 (diff)
spi: sunxi: fix clock divider calculation for max frequency setting
If the maximum frequency is requested, we still fall into the CDR2 handling. But there the minimal divider is 2. For the sun6i and sun8i we can do better with the CDR1 setting where the minimal divider is 1: SPI_CLK = MOD_CLK / 2 ^ cdr with cdr = 0 Thus, handle the div = 1 case specially. While at it, correct the comment above the calculation. Signed-off-by: Michael Walle <mwalle@kernel.org> Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'tools/patman/patchstream.py')
0 files changed, 0 insertions, 0 deletions