* [U-Boot] [PATCH] altera_spi: add spi_set_speed
@ 2010-12-27 1:30 Thomas Chou
2011-01-18 17:18 ` Scott McNutt
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Chou @ 2010-12-27 1:30 UTC (permalink / raw)
To: u-boot
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)
{
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] altera_spi: add spi_set_speed
2010-12-27 1:30 [U-Boot] [PATCH] altera_spi: add spi_set_speed Thomas Chou
@ 2011-01-18 17:18 ` Scott McNutt
0 siblings, 0 replies; 2+ messages in thread
From: Scott McNutt @ 2011-01-18 17:18 UTC (permalink / raw)
To: u-boot
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)
> {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-18 17:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-27 1:30 [U-Boot] [PATCH] altera_spi: add spi_set_speed Thomas Chou
2011-01-18 17:18 ` Scott McNutt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox