Thread (9 messages) 9 messages, 2 authors, 2014-11-26
STALE4231d

[PATCH] spi: s3c64xx: add support for exynos7 SPI controller

From: Padma Venkat <hidden>
Date: 2014-11-07 08:31:57
Also in: linux-samsung-soc, linux-spi

Hi Mark,

CCing Kukjin Kim.

On 11/6/14, Mark Brown [off-list ref] wrote:
On Thu, Nov 06, 2014 at 03:21:49PM +0530, Padmavathi Venna wrote:
quoted
Exynos7 SPI controller supports only the auto Selection of
CS toggle mode and Exynos7 SoC includes six SPI controllers.
Add support for these changes in Exynos7 SPI controller driver.
Could you give a bit more detail on what the "auto selection of CS
toggle mode" is - in the diff it looks like it's not an existing mode.
I'm a bit worried that it's not going to function well with devices that
send more than one transfer per message.
There is a bit AUTO_N_MANUAL(as per manual) in the spi CS_CFG
register(as per manual, in the driver it is S3C64XX_SPI_SLAVE_SEL) to
control the CS toggle mode either manually or automatically. If CS has
to be controlled manually the AUTO_N_MANUAL should be set to 0 which
the driver is doing in the s3c64xx_spi_transfer_one function by
writing 0 in the S3C64XX_SPI_SLAVE_SEL. When it is handled manually
NSSOUT as per the manual(in the driver it is
S3C64XX_SPI_SLAVE_SIG_INACT) controls the level of CS which when set
deactivates the signal and reset activates.

CS can also be controlled automatically by setting AUTO_N_MANUAL to 1
in CS_CFG. When it is auto CS automatically toggles between packet to
packet. NCS_TIME_COUNT in CS_CFG controls the inactive period. The
driver by default uses manual mode. But on exynos7 the manual mode is
removed.

I tested the driver with wm5110 codec.
quoted
Signed-off-by: Padmavathi Venna <redacted>
It's better if your signoff is using the same e-maill address as
ok.  I will take care of this.
Thanks
Padma
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help