]> git.baikalelectronics.ru Git - kernel.git/commit
spi/ath79: add delay between SCK changes
authorGabor Juhos <juhosg@openwrt.org>
Thu, 27 Dec 2012 09:42:24 +0000 (10:42 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 5 Feb 2013 12:57:02 +0000 (12:57 +0000)
commit326d54f29c55e67cc53fc4f8bdb3bbd79dda1b71
tree142bd5e2a53569a200011624d7bf2a8863eab3dd
parentc28f7f863db30cf7eefd103a02e32a295e65a5c2
spi/ath79: add delay between SCK changes

The driver uses the "as fast as it can" approach
to drive the SCK signal. However this does not
work with certain low speed SPI chips (e.g. the
PCF2123 RTC chip).

The patch adds per-bit slowdowns in order to be
able to use the driver with such chips as well.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-ath79.c