altera_spi: add spi_set_speed
PATCH 1/1 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 <[email protected]>
--- drivers/spi/altera_spi.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/spi/altera_spi.c +5 -0
@@ -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) {
Signature · 1 line
1.7.3.4
PATCH 1/1 altera_spi: add spi_set_speed
Added to: git://git.denx.de/u-boot-nios.git 'next'
Thank you,
--Scott
Quoted 25 lines · Thomas Chou
Added this for
mmc_spidriver. Though altera spi core does not support programmable speed. It is fixed when configured in sopc-builder.Signed-off-by Thomas Chou <[email protected]>--- drivers/spi/altera_spi.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)drivers/spi/altera_spi.c +5
-0@@ -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) {