Go to previous topic
Go to next topic
Last Post 19 May 2008 01:29 PM by  physicseng
Using CSPI1 on imx31 lite
 1 Replies
Author Messages
LauraM
New Member
New Member
Posts:


--
08 Feb 2008 07:13 PM
    I'm attempting to access the CSPI1 port on the imx31 lite. I am setting the regs as shown below and the program appears to run but I'm not seeing any activity on the spi_clk pin on the expansion board.

    spi_ctl = 0x51fa3 (master mode, 32 bit)
    spi_status before write = 3
    spi_status after write = 0x103
    gpr = 0
    sw_mux_ctl_cspi1_ss2_cspi1_sclk_cspi1_spi_rdy_cspi2_mosi = 0x12121212
    sw_mux_ctl_cspi1_mosi_cspi1_miso_cspi1_ss0_cspi1_ss1 = 0x12121212

    not using interrupts or dma.

    Any clues?

    I'm running a linux kernel based on the freescale bsp for this board. Not using built in SPI drivers.
    physicseng
    New Member
    New Member
    Posts:


    --
    19 May 2008 01:29 PM
    Posted By LauraM on 8 Feb 2008 7:13 PM
    I''m attempting to access the CSPI1 port on the imx31 lite. I am setting the regs as shown below and the program appears to run but I''m not seeing any activity on the spi_clk pin on the expansion board.

    spi_ctl = 0x51fa3 (master mode, 32 bit)
    spi_status before write = 3
    spi_status after write = 0x103
    gpr = 0
    sw_mux_ctl_cspi1_ss2_cspi1_sclk_cspi1_spi_rdy_cspi2_mosi = 0x12121212
    sw_mux_ctl_cspi1_mosi_cspi1_miso_cspi1_ss0_cspi1_ss1 = 0x12121212

    not using interrupts or dma.

    Any clues?

    I''m running a linux kernel based on the freescale bsp for this board. Not using built in SPI drivers.




    I am having a similar prob, but with CSPI-3.

    There are three CSPI controllers on the MX31. According to the SOM-LV schematic, CSPI-2 is used to talk to the Power Mngmnt IC (MC13783); not sure yet if CSPI-1 and CSPI-3 are used for anything else, or by WinCE.

    CSPI-1 signals are multiplexed with several other peripheral modules (e.g., ATA, USBH), thus, if your system configures the MX for those other peripherals, you may not be able to use CSPI-1. I currently boot off of CF, so ATA may or may not be configured to use the CSPI-1 pins. Suppose one could boot off CF, then stop the CF controller, unmount the filesys and reconfigure those signal pins for SPI...

    If you ever got this resolved, could you please email me at physicseng@charter.net.
    Thanks!
    -Mark


    ---