config SPI_TOPCLIFF_PCH
tristate "Intel EG20T PCH/LAPIS Semicon IOH(ML7213/ML7223/ML7831) SPI"
-- - depends on PCI && (X86_32 || COMPILE_TEST)
++ + depends on PCI && (X86_32 || MIPS || COMPILE_TEST)
help
SPI driver for the Topcliff PCH (Platform Controller Hub) SPI bus
used in some x86 embedded processors.
Note that this application programming interface is EXPERIMENTAL
and hence SUBJECT TO CHANGE WITHOUT NOTICE while it stabilizes.
+++config SPI_LOOPBACK_TEST
+++ tristate "spi loopback test framework support"
+++ depends on m
+++ help
+++ This enables the SPI loopback testing framework driver
+++
+++ primarily used for development of spi_master drivers
+++ and to detect regressions
+++
config SPI_TLE62X0
tristate "Infineon TLE62X0 (for power switching)"
depends on SYSFS
reg &= ~SUN4I_CTL_CS_MASK;
reg |= SUN4I_CTL_CS(spi->chip_select);
+++ /* We want to control the chip select manually */
+++ reg |= SUN4I_CTL_CS_MANUAL;
+++
if (enable)
reg |= SUN4I_CTL_CS_LEVEL;
else
else
reg |= SUN4I_CTL_DHB;
--- /* We want to control the chip select manually */
--- reg |= SUN4I_CTL_CS_MANUAL;
---
sun4i_spi_write(sspi, SUN4I_CTL_REG, reg);
/* Ensure that we have a parent clock fast enough */
mclk_rate = clk_get_rate(sspi->mclk);
- -- if (mclk_rate < (2 * spi->max_speed_hz)) {
- -- clk_set_rate(sspi->mclk, 2 * spi->max_speed_hz);
+ ++ if (mclk_rate < (2 * tfr->speed_hz)) {
+ ++ clk_set_rate(sspi->mclk, 2 * tfr->speed_hz);
mclk_rate = clk_get_rate(sspi->mclk);
}
* First try CDR2, and if we can't reach the expected
* frequency, fall back to CDR1.
*/
- -- div = mclk_rate / (2 * spi->max_speed_hz);
+ ++ div = mclk_rate / (2 * tfr->speed_hz);
if (div <= (SUN4I_CLK_CTL_CDR2_MASK + 1)) {
if (div > 0)
div--;
reg = SUN4I_CLK_CTL_CDR2(div) | SUN4I_CLK_CTL_DRS;
} else {
- -- div = ilog2(mclk_rate) - ilog2(spi->max_speed_hz);
+ ++ div = ilog2(mclk_rate) - ilog2(tfr->speed_hz);
reg = SUN4I_CLK_CTL_CDR1(div);
}