MPC885 spi: fsl-spi and SCC2 : Allow dynamic allocation of CPM1 pRAM
From: Sebastien BLAVIER <hidden>
Date: 2015-05-06 23:24:07
Dear,
I would like to know if a patch of file spi_mpc8xxx.c exists to use SPI and SCC2 on MPC885 for linux 2.6.35?
The start of driver fails => the function mpc8xxx_spi_cpm_get_pram is KO due to : spi_base_ofs = cpm_muram_alloc_fixed(iprop[2], 2); => spi_base_ofs invalid .
if i do this change spi_base_ofs = iprop[2], 2; in function mpc8xxx_spi_cpm_get_pram, the driver is loaded but the SCC2 does not work any more and SPI does not work too.
Arch setup :
{CPM_PORTB, 28, CPM_PIN_OUTPUT},
{CPM_PORTB, 29, CPM_PIN_OUTPUT},
{CPM_PORTB, 30, CPM_PIN_OUTPUT},
My DTS below :
cpm@9c0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "fsl,mpc885-cpm", "fsl,cpm1";
....
spi: spi@aa0 {
#address-cells = <1>;
#size-cells = <0>;
cell-index = <0>;
compatible = "fsl,spi", "fsl,cpm1-spi";
reg = <0xaa0 0x12 0x3d80 0x30>;
interrupts = <5>;
Sébastien Blavier.