linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC5200b MMC over SPI into PSC6
@ 2008-05-05 18:12 Fabio Tosetto
  2008-05-06 15:36 ` Grant Likely
  0 siblings, 1 reply; 15+ messages in thread
From: Fabio Tosetto @ 2008-05-05 18:12 UTC (permalink / raw)
  To: linuxppc-dev

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

^ permalink raw reply	[flat|nested] 15+ messages in thread
* MPC5200B MMC over SPI into PSC6
@ 2008-04-16 11:26 tosettofabio83
  0 siblings, 0 replies; 15+ messages in thread
From: tosettofabio83 @ 2008-04-16 11:26 UTC (permalink / raw)
  To: linuxppc-embedded

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 Tosetto

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-05-22 14:28 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-05 18:12 MPC5200b MMC over SPI into PSC6 Fabio Tosetto
2008-05-06 15:36 ` 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

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).