From: Fabio Tosetto <tosettofabio83@libero.it>
To: linuxppc-dev@ozlabs.org
Subject: MPC5200b MMC over SPI into PSC6
Date: Mon, 05 May 2008 20:12:13 +0200 [thread overview]
Message-ID: <481F4DFD.1000702@libero.it> (raw)
Hello, I have an embedded system with an on-board processor powerpc
MPC5200B
and Linux kernel 2.6.22,
I must turn over to MMC SPI on the PSC6.
First, I
have enabled PSC6:
in ../arch/ppc/platforms/lite5200.c added PSC6 in SPI mode
struct mpc52xx_psc_func mpc52xx_psc_functions[] = {
{ .id = 3,
.func = "uart",
},
{ .id = 4,
.func = "uart",
},
{ .id = 5,
.func = "spi",
},
};
in ..
/arch/powerpc/boot/dts/lite5200b.dts enabled PSC6 in SPI mode
// PSC6 in spi mode example
spi@2c00 { // PSC6
device_type = "spi";
compatible = "mpc5200b-psc-spi\0mpc5200-psc-spi";
cell-index = <5>;
reg =
<2c00 100>;
interrupts = <2 4 0>;
interrupt-parent = <&mpc5200_pic>;
};
Now on the menuconfig enabling these options:
$ make ARCH=powerpc
CROSS_COMPILE=powerpc-linux-gnu- menuconfig
Platform support --->
[*]
MPC5200 (L25R) bugfix support
[*] Freescale Lite5200 Eval Board
Device
Drivers ---> SPI Support --->
[*] SPI support
<*> Freescale MPC52xx
PSC SPI controller
this options settings the CONFIG_SPI_MPC52xx_PSC=y variable
into .config
When linux booting, if I debug ../driver/spi/mpc52xx_psc_spi.c,
see that:
bus platform: add driver mpc52xx-psc-
spi
bus platform: remove driver mpc52xx-psc-spi
drivers/spi/mpc52xx_psc_spi.c:
of_register_platform_driver failed (-19)
why??
any idea??
Someone knows how
to enable mmc over spi on PSC6?
thanks Fabio
next reply other threads:[~2008-05-05 18:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 18:12 Fabio Tosetto [this message]
2008-05-06 15:36 ` MPC5200b MMC over SPI into PSC6 Grant Likely
2008-05-07 12:49 ` Fabio Tosetto
2008-05-07 16:34 ` Grant Likely
2008-05-08 15:10 ` Fabio Tosetto
2008-05-08 15:32 ` Grant Likely
2008-05-09 13:40 ` Fabri
2008-05-09 13:51 ` Fabri
2008-05-09 14:06 ` Grant Likely
2008-05-09 15:02 ` Fabri
2008-05-09 15:20 ` Grant Likely
2008-05-09 20:01 ` Fabri
2008-05-12 8:51 ` Fabio Tosetto
2008-05-22 14:28 ` Fabri
-- strict thread matches above, loose matches on Subject: below --
2008-04-16 11:26 MPC5200B " tosettofabio83
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=481F4DFD.1000702@libero.it \
--to=tosettofabio83@libero.it \
--cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).