From: Ulf Samuelsson <ulf@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH v2] spi: Kill spi_chipsel table and introduce spi_setup()
Date: Wed, 6 Feb 2008 17:58:21 +0100 [thread overview]
Message-ID: <053701c8691b$b912ce30$110514ac@atmel.com> (raw)
In-Reply-To: 47A9DEB7.8030300@gmail.com
>> but is there any real spi controllers that can transmit less than a byte at a
>> time ? i guess if you consider gpio-based soft spi ...
>> -mike
>>
> Sure, the Freescale SPI controller that I wrote a driver for (MPC8xxx)
> can send an arbitrary number of bits. Not sure exactly where that's
> useful, but my worldview is limited to high-powered telecom/datacom
> equipment.
>
Yes, the Atmel SPI in the AT91 can send 8..16 bits.
I think that typical use would be for ADCs and different kind of RF chips,
but I can't think of any specific examples right now.
Other things supported by the Atmel SPI are
* Introducing delays during various parts of the transfers.
* Selection whether to terminate the access at the end of the transfer
or let the chip select remain active
* You can either set the chip select manually, or let the data contain the chip select number.
Since in many AT91 boards, both Linux and the RAM disk is loaded from a dataflash,
you want to set the SPI speed as high as possible for flash access - or you will affect boot time.
33 Mbps will mean that you load a 4 MB RAM disk in about 1 second while 5 Mbps
means you load it in about 6 seconds.
In this user case, the SPI is probably already initialized by the AT91 bootstrap
which loads U-Boot to SDRAM from the dataflash, so any initialization should maybe be optional.
Best Regards
Ulf Samuelsson
prev parent reply other threads:[~2008-02-06 16:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-05 12:28 [U-Boot-Users] [PATCH v2] spi: Kill spi_chipsel table and introduce spi_setup() Haavard Skinnemoen
2008-02-05 12:53 ` Joakim Tjernlund
2008-02-05 16:51 ` Ben Warren
2008-02-06 4:34 ` Mike Frysinger
2008-02-06 9:50 ` Haavard Skinnemoen
2008-02-06 13:45 ` Mike Frysinger
2008-02-06 15:18 ` Ben Warren
2008-02-06 15:39 ` Haavard Skinnemoen
2008-02-06 15:57 ` Mike Frysinger
2008-02-06 16:22 ` Ben Warren
2008-02-06 16:58 ` Ulf Samuelsson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='053701c8691b$b912ce30$110514ac@atmel.com' \
--to=ulf@atmel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox