Skip to content
Commit fbea098d authored by Phil Elwell's avatar Phil Elwell Committed by Dom Cobley
Browse files

spi: dw: Clamp the minimum clock speed



The DW SPI interface has a 16-bit clock divider, where the bottom bit
of the divisor must be 0. Limit how low the clock speed can go to
prevent the clock divider from being truncated, as that could lead to
a much higher clock rate than requested.

Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.com>
parent d3f447a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment