Skip to content
Commit 984313dc 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 fbf08157
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