Hello,
I am using DM-388 processor and ipnc rdk 3.80.00.
I have to configure my DM-388 as a spi slave mode, as I have to test my spi(i.e spi1 in my case).It is going on board to board connection.
My spi is using (driver/spi/omap2_mcspi.c) this driver and a/c to me it is configuring spi in master mode. So to configure spi in slave mode is it possible to make modifications in this driver to make it slave or I have to write a individual slave driver for that ?
I have referred TRM (TMS320DM385 DaVinciTM Digital Media Processor). It is given that to configure spi as a slave mode we have to do the following setting in the registers.
--> SPI is in slave mode when the bit MS of the register MCSPI_MODULCTRL is set.
But I am thinking that its better to write a slave driver for configuring DM-388 in slave mode that will receive and transmit bytes from master.So please guide me in this and if possible provide some example of spi slave driver from which I can take reference.
Thanks & Regards,
Abhi