From: Thomas Chou Date: Mon, 27 Dec 2010 01:30:17 +0000 (+0800) Subject: altera_spi: add spi_set_speed X-Git-Tag: v2011.03-rc2~96^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df8f1252612b641bc2697163576902f9927d4af3;p=u-boot 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 Signed-off-by: Scott McNutt --- diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c index 918b223563..138d6f4b45 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) {