TS gives a sample code:
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7800-linux/samples/spi.c
However, looking more closely, you'll realize that the code streams
data in and out of the GPIO port. The Marvell controller does not
have a dedicated SPI bus. What that means is that you don't know the
transfer speed and the code uses the CPU pretty heavily.
In short, the provided code is probably OK if you use SPI very little
and your slave device has a high throughput (the ts temperature chip
that TS uses can take 4Mbps).
I am actually considering another board for these and other reasons.
The ts-72xx actually have a dedicated spi bus. I am experimenting now
with a Glomotion that provides a 1Mbps rs-485 port, SPI bus and a
stock 2.6.25 kernel.
Diego
--- In "wildpossumboy" <> wrote:
>
> Hi All.
>
> I am a newbie here. We have 2 x TS-7800 which we are using in
> developing a embedded system for auditing and controlling client
> systems. The units we just received a couple of days ago, but
> fortunately we have been Linux users/developers since Kernel 1.2.8.
> Now that makes me feel old :)
>
> Question. Is SPI fully operational on TS7800/2.6.21-ts?
> As we have never used SPI before, which pins use SPI? and are there any
> gotcha! that others may have found with such an implementation?
> Any sample programs around to build upon?
>
> Thanks.
> Grahame
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|