]> git.sur5r.net Git - u-boot/commitdiff
altera_spi: add spi_set_speed
authorThomas Chou <thomas@wytron.com.tw>
Mon, 27 Dec 2010 01:30:17 +0000 (09:30 +0800)
committerScott McNutt <smcnutt@psyent.com>
Tue, 8 Feb 2011 13:29:53 +0000 (08:29 -0500)
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>
drivers/spi/altera_spi.c

index 918b2235634d52e5320af1257428da8cf605be9b..138d6f4b45c523e239d57c62638110ae6fa08e11 100644 (file)
@@ -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)
 {