Project

General

Profile

Using of SPI1 interface on DSP-Side?

Added by Christian Rückl over 11 years ago

Hi,

My plan is to connect a DAC on the SPI1 which is outrouted to the edgeconnector and control it by the DSP core but now i have seen, that the onboard NOR-Flash must be also conntcted to the sampe SPI1-Interface. Is it?

When the Arm core is booting and Linux is running from the NOR-Flash, can I use this SPI1-Interface in my DSP-application?

thanks.
Christian


Replies (1)

RE: Using of SPI1 interface on DSP-Side? - Added by Michael Williamson over 11 years ago

The SPI1 (chip select 0) is used to communicate with the on-module SPI-NOR FLASH on MityDSP-L138/MityARM-1808 modules. It is used during boot, but in general not used after loading up a kernel and/or your application (in the case of starterware).

You should be able to use the SPI1 port for your DAC during operation, however you may need to disable the SPI1 control in the kernel on the ARM side as really only one processor core should interface to a peripheral at any one time. To do that, you'll need to modify the arch/arm/board-mityomapl138.c file and comment out the line that looks like:

da8xx_register_spi(1, mityomapl138_spi_flash_info, len);

If you use ethernet, you may need to also deal with forcing the mityomapl138_notify_add() call to happen as it reads the SPI NOR for the ethernet configuration (RMII vs MII) at the moment, which won't be available if you don't register the SPI device.

Hope this helps.

-Mike

    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)