MPC5200b MMC over SPI into PSC6
From: Fabio Tosetto <hidden>
Date: 2008-05-05 18:17:42
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>;
};