Other Parts Discussed in Thread: DM3730
Hello,
The environment is: Embest devkit8500 which has a DM3730 processor.
linux kernel: 2.6.32
To test the McBSP interface, I wanted to perform a simple loopback test.
The McBSP 1 pins are coming to the connector.
My requirements are:
- Short DX and DR pin to perform a loopback(externally).
- provide clock to the CLKR from CLKX(internally),
- provide framesync FSR from FSX(internally).
- config->xccr |= (XDMAEN | DXENDLY(1));
- config->xcr1 |= (XWDLEN1(2) | XFRLEN1(0));
- config->rcr1 |= (RWDLEN1(2) | RFRLEN1(0));
- config->pcr0 |= (CLKRM | FSRM | FSXM | CLKXM );
- config->srgr2 |= (FSGM | FPER(15));
- config->srgr1 |= (CLKGDV(25) | FWID(2));
static void __iomem *DEVCONF0;
DEVCONF0 = (u32 *)ioremap(OMAP343X_SCM_BASE+CONTROL_DEVCONF0, 1);
if(DEVCONF0 == NULL)
{
printk(KERN_ALERT "SN: Failed to ioremap %d\n\r",DEVCONF0);
kfree(config);
}
reg_value = readl(DEVCONF0);
reg_value |= 0x00000018;
writel(reg_value,DEVCONF0);
iounmap((void *)DEVCONF0);
udelay(4);
I am using the mcbsp.c file present in arch/arm/plat-omap/mcbsp.c, and in polling mode.
The RRDY bit always stays low. Any suggestions about where I might get wrong.
Any help would be aprreciated.
Thanks
Sujan