diff mbox

[U-Boot] altera_spi: add spi_set_speed

Message ID 1293413417-12698-1-git-send-email-thomas@wytron.com.tw
State Accepted
Commit df8f1252612b641bc2697163576902f9927d4af3
Delegated to: Scott McNutt
Headers show

Commit Message

Thomas Chou Dec. 27, 2010, 1:30 a.m. UTC
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>
---
 drivers/spi/altera_spi.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Comments

Scott McNutt Jan. 18, 2011, 5:18 p.m. UTC | #1
Added to: git://git.denx.de/u-boot-nios.git 'next'

Thank you,
--Scott



Thomas Chou wrote:
> 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>
> ---
>  drivers/spi/altera_spi.c |    5 +++++
>  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)
>  {
diff mbox

Patch

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)
 {