summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2010-12-27 09:30:17 +0800
committerScott McNutt <smcnutt@psyent.com>2011-02-08 08:29:53 -0500
commitdf8f1252612b641bc2697163576902f9927d4af3 (patch)
tree39b142a69c15b62f6bd8b49dae2c09b4ee8d813a /drivers/spi
parente91d54535f8535c6de05044fa6f715a78f4320f8 (diff)
downloadu-boot-imx-df8f1252612b641bc2697163576902f9927d4af3.zip
u-boot-imx-df8f1252612b641bc2697163576902f9927d4af3.tar.gz
u-boot-imx-df8f1252612b641bc2697163576902f9927d4af3.tar.bz2
altera_spi: add spi_set_speed
Added this for mmc_spi driver. Though altera spi core does not support programmable speed. It is fixed when configured in sopc-builder. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/altera_spi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c
index 918b223..138d6f4 100644
--- a/drivers/spi/altera_spi.c
+++ b/drivers/spi/altera_spi.c
@@ -70,6 +70,11 @@ void spi_init(void)
{
}
+void spi_set_speed(struct spi_slave *slave, uint hz)
+{
+ /* altera spi core does not support programmable speed */
+}
+
struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
unsigned int max_hz, unsigned int mode)
{