I need to activate the McBsp 2 to communicate with dedicated hardware (sending data only). I am working with linux 2.6.37.6.
I found out that in arch/arm/plat-omap the file mcbsp.c that contains some function (exported) to configure and send data using the mcbsp.
I tried to build a device driver that call function from the mcbsp.c. i manage to configure the clk and fs, but when i tried to send data no data is getting out (I check it using a scope, I can see the FS and CLK are correct but no data is coming out)
there are several function to write data:
void omap_mcbsp_xmit_word(unsigned int id, u32 word);
int omap_mcbsp_xmit_buffer(unsigned int id, dma_addr_t buffer, unsigned int length);
int omap_mcbsp_pollwrite(unsigned int id, u16 buf);
I tried to use them without success. I tried working with OMAP_MCBSP_IRQ_IO and with OMAP_MCBSP_POLL_IO
the mcbsp is mux to mode0 -mcbsp.
In the code for transmitting in file mcbsp the access to DXR register is done to DXR1,2, is it correct for the AM3517?. (DXR need to be in offset of 0x8, 32bit and not 16)
Is there is a documentation for the mcbsp.c code?
Is the function I use arch/arm/plat-omap/mcbsp.c are valid for the AM3517?
Thanks
Ilan