From: Ned Forrester <nforrester-/d+BM93fTQY@public.gmane.org>
To: sivakumar borela <borelaskumar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: DSPI slave linux driver
Date: Mon, 02 Mar 2009 13:41:03 -0500 [thread overview]
Message-ID: <49AC283F.2000708@whoi.edu> (raw)
In-Reply-To: <5a775e870903020620k56f84f7cwfa6c11cbb4a9277a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
sivakumar borela wrote:
> Hi,
>
> My selef, SivaKumar working as Embedded software engineer. One of our
> products is based on MCF5485 coldfire processor. We are using Embedded linux
> from Freescale on our board. The BSP does have DSPI(DMA enabled SPI) master
> driver. But our requirement is to configure MCF5485 as DSPI slave to
> communicate with the external master which is 68332 processor board. The
> protocol demands request/response model to communicate with the master. We
> could not able to succeed in making the DSPI slave to work.
>
> "Changed the chip control register from master to salve by modifying the bit
> in mode control register"
>
> We are not getting any interrupts from the processor to call read and write
> functions.
>
> Freescale has done customization of coldfire_spi driver for MCF5485.
>
> First of all my query is
> 1) is there any piece of linux spi slave driver till now?
> 2) If you have any slave driver implementation , could you please provide
> the code for me to implement the SPI slave?
There is no support for a Linux host slave. This has been discussed
several times before. I suggest you search the archives of this mailing
list, and read the previous discussion. The official archive of
spi-devel-general is at:
http://sourceforge.net/mailarchive/forum.php?forum_name=spi-devel-general
but I don't find that very searchable. Try this thread:
http://www.mail-archive.com/spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org/msg00306.html
which I found by googling these four key words:
spi-devel-general spi slave support
And another thread is here...
http://www.mail-archive.com/spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org/msg01123.html
--
The most serious problem for generalized slave support is the response
time of the kernel to external requests; this is discussed in the
threads above. Some limited slave support can be created, where
applications are transmit-only or receive-only, but not both, or any
other situation in which the communication sequence is completely
predictable and thus the response data can be queued in advance. All of
these possibilities are probably limited to configurations where there
is only one device attached to the SPI bus.
--
Ned Forrester nforrester-/d+BM93fTQY@public.gmane.org
Oceanographic Systems Lab 508-289-2226
Applied Ocean Physics and Engineering Dept.
Woods Hole Oceanographic Institution Woods Hole, MA 02543, USA
http://www.whoi.edu/sbl/liteSite.do?litesiteid=7212
http://www.whoi.edu/hpb/Site.do?id=1532
http://www.whoi.edu/page.do?pid=10079
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
prev parent reply other threads:[~2009-03-02 18:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 14:20 DSPI slave linux driver sivakumar borela
[not found] ` <5a775e870903020620k56f84f7cwfa6c11cbb4a9277a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-02 18:41 ` Ned Forrester [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=49AC283F.2000708@whoi.edu \
--to=nforrester-/d+bm93ftqy@public.gmane.org \
--cc=borelaskumar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.