aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-am3517evm.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-08-16 09:41:02 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-22 15:17:00 -0400
commit6253bac804507c3e15fd6600e0dbd962bba34aae (patch)
tree1726bd925de3ba8c4a5d2f95dffa69d2a354e2b0 /arch/arm/mach-omap2/board-am3517evm.c
parentcafebc4a66b7ebd4c7990757f7f578488d865ee9 (diff)
ARM: OMAP: board-am3517evm: Configure McBSP1 CLKR/FSR signal source
am3517evm board uses McBSP1 for audio with 4pin configuration. The CLKR/FSR signals need to be connected to CLKX/FSX pin of the SoC in this case. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-am3517evm.c')
-rw-r--r--arch/arm/mach-omap2/board-am3517evm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c
index 18f601096ce1..592812af84da 100644
--- a/arch/arm/mach-omap2/board-am3517evm.c
+++ b/arch/arm/mach-omap2/board-am3517evm.c
@@ -264,6 +264,16 @@ static __init void am3517_evm_musb_init(void)
264 usb_musb_init(&musb_board_data); 264 usb_musb_init(&musb_board_data);
265} 265}
266 266
267static __init void am3517_evm_mcbsp1_init(void)
268{
269 u32 devconf0;
270
271 /* McBSP1 CLKR/FSR signal to be connected to CLKX/FSX pin */
272 devconf0 = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0);
273 devconf0 |= OMAP2_MCBSP1_CLKR_MASK | OMAP2_MCBSP1_FSR_MASK;
274 omap_ctrl_writel(devconf0, OMAP2_CONTROL_DEVCONF0);
275}
276
267static const struct usbhs_omap_board_data usbhs_bdata __initconst = { 277static const struct usbhs_omap_board_data usbhs_bdata __initconst = {
268 .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, 278 .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY,
269#if defined(CONFIG_PANEL_SHARP_LQ043T1DG01) || \ 279#if defined(CONFIG_PANEL_SHARP_LQ043T1DG01) || \
@@ -373,6 +383,9 @@ static void __init am3517_evm_init(void)
373 /* MUSB */ 383 /* MUSB */
374 am3517_evm_musb_init(); 384 am3517_evm_musb_init();
375 385
386 /* McBSP1 */
387 am3517_evm_mcbsp1_init();
388
376 /* MMC init function */ 389 /* MMC init function */
377 omap_hsmmc_init(mmc); 390 omap_hsmmc_init(mmc);
378} 391}