Skip to content
Commit 037818c5 authored by Ken Ma's avatar Ken Ma Committed by Stefan Roese
Browse files

spi: kirkwood: support extended baud rates



The Armada SoC family implementation of this SPI hardware module has
extended the configuration register to allow for a wider range of SPI
clock rates. Specifically the Serial Baud Rate Pre-selection bits in the
SPI Interface Configuration Register now also use bits 6 and 7 as well.

Modify the baud rate calculation to handle these differences for the
Armada case. Potentially a baud rate can be setup using a number of
different pre-scalar and scalar combinations. This code tries all
possible pre-scalar divisors (8 in total) to try and find the most
accurate set.

Signed-off-by: default avatarKen Ma <make@marvell.com>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 76a51645
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