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)
commit440114fdb13cbc53ea734bcc05b86bcf5b1e430c
tree142bd5e2a53569a200011624d7bf2a8863eab3dd
parentba486a2a29b629413f89e0490edb02a8ccc3bb8f
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