From: "Andrea Galbusera" <gizero@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: SPI driver development questions
Date: Tue, 18 Jul 2006 16:17:53 +0200 [thread overview]
Message-ID: <f8e53fb0607180717je763dd7v5cd58d5d5c08a2f0@mail.gmail.com> (raw)
I have to develop an SPI device driver to make a PowerPC (mcp5200)
custom board "talk" to an FPGA in order to program it at power on.
I'm using 2.6.16 kernel with support for the spi subsystem enabled. I
also had a look at some new spi-related files coming from 2.6.17
What I'd like to do is to be able to program my FPGA from user space
(namely init scripts), possibly using a standard char device
interface. The binary stream to program the FPGA is stored on the
linux filesystem, so this sounds as the most confortable way to go.
Let me say I have to use the dedicated SPI controller on the 5200, not
the generic PSC module.
I read docs in Documentation/spi and Documentation/driver-model, but
still many questions fly around...
How should I proceed?
Do I have to write a SPI Master Controller Driver for the 5200 first
and than a specific device driver for my FPGA? If so should the master
driver be similar to linux/drivers/spi/spi_mpc83xx.c, taking into
account low level differences in managing the interface?
What exactly will this master driver "export" to the specific device
driver for my FPGA?
I cannot figure out, after registering the master driver how to "bind"
the device driver to the master.
TIA
Regards,
Andrea G.
reply other threads:[~2006-07-18 14:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=f8e53fb0607180717je763dd7v5cd58d5d5c08a2f0@mail.gmail.com \
--to=gizero@gmail.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®