mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 20:01:55 +00:00
df59fa7f4b
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. This change introduces (and documents) a new device tree compatible device name "armada-370-spi" to support this. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Reviewed-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Mark Brown <broonie@kernel.org> |
||
---|---|---|
.. | ||
brcm,bcm2835-spi.txt | ||
efm32-spi.txt | ||
fsl-imx-cspi.txt | ||
fsl-spi.txt | ||
mxs-spi.txt | ||
nvidia,tegra20-sflash.txt | ||
nvidia,tegra20-slink.txt | ||
nvidia,tegra114-spi.txt | ||
omap-spi.txt | ||
qcom,spi-qup.txt | ||
sh-hspi.txt | ||
sh-msiof.txt | ||
snps,dw-apb-ssi.txt | ||
spi_altera.txt | ||
spi_atmel.txt | ||
spi_oc_tiny.txt | ||
spi_pl022.txt | ||
spi-bus.txt | ||
spi-cadence.txt | ||
spi-davinci.txt | ||
spi-dw.txt | ||
spi-fsl-dspi.txt | ||
spi-gpio.txt | ||
spi-octeon.txt | ||
spi-orion.txt | ||
spi-rockchip.txt | ||
spi-rspi.txt | ||
spi-samsung.txt | ||
spi-sc18is602.txt | ||
spi-sun4i.txt | ||
spi-sun6i.txt | ||
spi-xtensa-xtfpga.txt | ||
ti_qspi.txt |