Hi,
I have a custom OMAP3530 board in which I need to configure the McBSP4 clk, fclk and RX,DX for a Mic interface. For Hifi McBSP2 is used and its seems a default configuration as there is no modification is done for McBSP2 configuration.
m using Linux-2.6.29.
The configuration that I did for enabling McBSP4 are as follows :
1. Adding the Mux Pin configuration and mode for McBSP4 in arch/arm/mach-omap2/mux.c and the corresponding in arch/arm/plat-omap/include/mach/mux.h
MUX_CFG_34XX("3530_MCBSP4_CLKX", 0x0b6,OMAP34XX_MUX_MODE2 |OMAP34XX_PIN_INPUT_PULLUP )
MUX_CFG_34XX("3530_MCBSP4_DR", 0x0b8,OMAP34XX_MUX_MODE2 |OMAP34XX_PIN_INPUT_PULLUP )
MUX_CFG_34XX("3530_MCBSP4_DX", 0x0ba,OMAP34XX_MUX_MODE2 |OMAP34XX_PIN_OUTPUT )
MUX_CFG_34XX("MCBSP4_FSX",0x0bc,OMAP34XX_MUX_MODE2 |OMAP34XX_PIN_INPUT_PULLUP )
2. Configured the mux setup for McBSP4 in "arch/arm/mach-omap2/mcbsp.c
omap_cfg_reg(N3_3530_MCBSP4_CLKX);
omap_cfg_reg(AD23_3530_MCBSP4_DR);
omap_cfg_reg(AB25_3530_MCBSP4_DX);
omap_cfg_reg(AC25_3530_MCBSP4_FSX);
3. I have seen the Clock configuration for McBSP4 in arch/arm/mach-omap2/clock34xx.h
With these configuration I expect to get the McBSP4 clock from OMAP3530 to the codec on making a call from an app or utility like arecord.
But after doing all these configurations, I m not able to get the McBSP4 clx , Any pointers what is missed or what needs to be done further.
Thanks and Regards
Mohamed Fasil