On Mon, 2009-04-27 at 18:22 +0530, Azam Ansari wrote: > Hi Steve, > > When I check /proc/pinmux it shows that Pinmux is configured for McBSP > 29:34 but when I see the schematics it shows that McBSP pins are on > 25:30. Can you please tell me how do i enable event mux for McBSP0 pin > 25:30? >
There is a pinmux layer that is used to manage pinmux settings. The definitions are in In file, arch/arm/mach-davinci/mux_cfg.c. Please take a look at davinci_dm355_pins. With MV kernel pinmux is setup automatically when clk_enable is called. You can see the actual call to setup pinmux in arch/arm/mach-davinci/board-dm355-evm.c function dm355_setup_pinmux. It seems the code is setting pinmux register 3 bits 0-5 as 1's (following code segment comes from davinci_dm355_pins in arch/arm/mach-davinci/mux_cfg.c. ... MUX_CFG("MCBSP0_BDX", 3, 0, 1, 1, 0) MUX_CFG("MCBSP0_X", 3, 1, 1, 1, 0) MUX_CFG("MCBSP0_BFSX", 3, 2, 1, 1, 0) MUX_CFG("MCBSP0_BDR", 3, 3, 1, 1, 0) MUX_CFG("MCBSP0_R", 3, 4, 1, 1, 0) MUX_CFG("MCBSP0_BFSR", 3, 5, 1, 1, 0) ... It is not immediately obvious looking at the datasheet that "1" is the correct setting. perhaps try setting to 0's and see if it works for you. ... MUX_CFG("MCBSP0_BDX", 3, 0, 1, 0, 0) MUX_CFG("MCBSP0_X", 3, 1, 1, 0, 0) MUX_CFG("MCBSP0_BFSX", 3, 2, 1, 0, 0) MUX_CFG("MCBSP0_BDR", 3, 3, 1, 0, 0) MUX_CFG("MCBSP0_R", 3, 4, 1, 0, 0) MUX_CFG("MCBSP0_BFSR", 3, 5, 1, 0, 0) ... If you have a scope to look at the clocks and data, it would be helpful in debugging as well. Regards, Steve > > > On Mon, Apr 27, 2009 at 5:18 PM, Steve Chen <sc...@mvista.com> wrote: > On Mon, 2009-04-27 at 14:20 +0530, Azam Ansari wrote: > > Hi, > > > > I have enabled McBSP0 in the board-dm355-evm.c file. > > I have configure McBSP0 for audio but it is not > working( Currently I > > am using McBSP0 for only recording purpose...). > > > May want to check the pinmux settings.. just a thought. > > Regards, > > Steve > > _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source