diff options
author | Ken Ma <make@marvell.com> | 2021-04-30 15:26:29 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-05-16 06:48:45 +0200 |
commit | 037818c544c44b31dd532409e3abc3747e24a60d (patch) | |
tree | b09273e05b6a8918be77507c4af4d3d5b03cbc73 /drivers/ddr/microchip/ddr2.c | |
parent | 76a516452b38c4f1542db382ebaf05054797100c (diff) | |
download | u-boot-037818c544c44b31dd532409e3abc3747e24a60d.tar.gz u-boot-037818c544c44b31dd532409e3abc3747e24a60d.tar.xz u-boot-037818c544c44b31dd532409e3abc3747e24a60d.zip |
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: Ken Ma <make@marvell.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/ddr/microchip/ddr2.c')
0 files changed, 0 insertions, 0 deletions