From: "Reeve Yang" <yang.reeve@gmail.com>
To: "Ben Warren" <bwarren@qstreams.com>
Cc: David Brownell <david-b@pacbell.net>,
spi-devel-general@lists.sourceforge.net,
linuxppc-dev Development <linuxppc-dev@ozlabs.org>
Subject: Re: [spi-devel-general] [PATCH] Adapt spi_mpc83xx SPI driver for 832x
Date: Thu, 14 Dec 2006 20:39:56 +0000 [thread overview]
Message-ID: <198592450612141239s539e6702m810b4b78ab43ff59@mail.gmail.com> (raw)
In-Reply-To: <859707.81440.qm@web314.biz.mail.mud.yahoo.com>
Hi ben, what you have done is exactly I'm trying to do. (I'm using
2.6.14 too, it's a typo in previous email). Could you elighten me what
board specific things need to be done? Following are the things I have
done.
********************************
<<< file 1: /vobs/kernel/linux-2.6.14/arch/ppc/syslib/mpc83xx_devices.c@@/main/linux-2.6.14_int/ryang_ATS89_1.0.0_dev_2/0
>>> file 2: mpc83xx_devices.c
********************************
-----[after 66 inserted 67-69]-----
> /* init this in board specific code */
> static struct fsl_spi_platform_data mpc83xx_spi_pdata = { 0 };
>
====> [reeve] pstruct platform_device ppc_sys_platform_devices[] = {
-----[after 217 inserted 221-238]-----
> .flags = IORESOURCE_IRQ,
> },
> },
> },
> [MPC83xx_SPI] = {
> .name = "fsl-spi",
> .id = 1,
> .dev.platform_data = &mpc83xx_spi_pdata,
> .num_resources = 2,
> .resource = (struct resource[]) {
> {
> .start = 0x7000,
> .end = 0x7fff,
> .flags = IORESOURCE_MEM,
> },
> {
> .start = MPC83xx_IRQ_SPI,
> .end = MPC83xx_IRQ_SPI,
In function mpc834x_sys_setup_arch, I add setup for spi platform data:
-----[after 175 inserted 203-212]-----
> /* setup board specific spi information */
> spi_pdata = (struct fsl_spi_platform_data *)ppc_sys_get_pdata(MPC83xx_SPI);
> if (spi_pdata) {
> spi_pdata->initial_spmode = 0;
> spi_pdata->bus_num = 1;
> spi_pdata->max_chipselect = 1;
> spi_pdata->activate_cs = at10408_spi_activate_cs;
> spi_pdata->deactivate_cs = at10408_spi_deactivate_cs;
We're doing chip select through CPLD gpio pins.
That's all I could image for board specific for fsl spi controller.
Did I miss anything?
- Reeve
On 12/14/06, Ben Warren <bwarren@qstreams.com> wrote:
> Reeve,
>
> --- Reeve Yang <yang.reeve@gmail.com> wrote:
>
> > Hello, I'm working on the same thing but our board
> > is using MPC8343E
> > processor. Should the same patch be applied? If so
> > could someone post
> > a complete and clean patch? Though our kernel is
> > 2.6.13, I back ported
> > spi_mpc83xx but it's not working (the fsl controller
> > cannot be
> > detected). I'm hoping this patch could help on that
> > ...
> >
>
> I had the mpc83xx driver working on an MPC8349
> processor under 2.6.14 a while ago. The driver's very
> small but requires a fair amount of board specific
> initialization code. Are you sure you added the
> proper platform resources, etc?
>
> regards,
> Ben
>
next prev parent reply other threads:[~2006-12-14 20:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-13 9:22 [PATCH] Adapt spi_mpc83xx SPI driver for 832x Joakim Tjernlund
2006-12-13 9:44 ` Vitaly Wool
2006-12-13 9:53 ` Li Yang-r58472
2006-12-13 14:46 ` Kumar Gala
2006-12-13 15:36 ` Joakim Tjernlund
2006-12-13 20:31 ` [spi-devel-general] " David Brownell
2006-12-14 0:13 ` Joakim Tjernlund
2006-12-14 5:54 ` Kumar Gala
2006-12-14 10:02 ` Joakim Tjernlund
2006-12-14 19:59 ` Reeve Yang
2006-12-14 20:12 ` Ben Warren
2006-12-14 20:39 ` Reeve Yang [this message]
2006-12-14 21:30 ` Ben Warren
2006-12-23 1:09 ` David Brownell
2006-12-26 16:31 ` Kumar Gala
2007-02-17 2:17 ` David Brownell
2007-02-17 9:14 ` Joakim Tjernlund
2006-12-23 0:57 ` David Brownell
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=198592450612141239s539e6702m810b4b78ab43ff59@mail.gmail.com \
--to=yang.reeve@gmail.com \
--cc=bwarren@qstreams.com \
--cc=david-b@pacbell.net \
--cc=linuxppc-dev@ozlabs.org \
--cc=spi-devel-general@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).