From patchwork Wed Aug 8 09:11:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1293561 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 2D662DF223 for ; Wed, 8 Aug 2012 09:12:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964821Ab2HHJMv (ORCPT ); Wed, 8 Aug 2012 05:12:51 -0400 Received: from na3sys009aog119.obsmtp.com ([74.125.149.246]:45084 "EHLO na3sys009aog119.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964911Ab2HHJMt (ORCPT ); Wed, 8 Aug 2012 05:12:49 -0400 Received: from mail-ob0-f171.google.com ([209.85.214.171]) (using TLSv1) by na3sys009aob119.postini.com ([74.125.148.12]) with SMTP ID DSNKUCItjMshv/xhklPD//Tn0xBMGXYQo5tG@postini.com; Wed, 08 Aug 2012 02:12:45 PDT Received: by obqv19 with SMTP id v19so927410obq.2 for ; Wed, 08 Aug 2012 02:12:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=7Mujcg5hbeoBWo+wWUoauOYSO5BnvYnTVlj5M1eaqE0=; b=Ru4Ezip31rbaRxSdAJRmUkkIh2+Fl0UywmPxpklDxPPmk+Ef3Z6cD3ZLr5kNotEif2 Kp0wzhUJS+rvobABdrrlBucACtHdnV6okJTVbsUgiGtX3Il37IEDdvo1Wo5thD4xSAB4 kvroNdttnd5hqJnbP7avL+xxooGtv9jD29WwykqfSBbXHY8KyHa/B1wJEi7bHRHY44mZ R0nZ2FlGQy7zR0h8/dxIV9L1NWgPA81vU5UR5P+IttEM02lAuAxbqRNz4VT+g5zo4PIX c+FMw3ZDOp0Cbhmpc4dZqbiN3FkAabZGicwCFqldR3LOEGhDDyWiy5qIAnoRrNRdIpNP eXOg== Received: by 10.60.2.42 with SMTP id 10mr29745124oer.9.1344417131162; Wed, 08 Aug 2012 02:12:11 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id cp8sm22099007obc.23.2012.08.08.02.12.08 (version=SSLv3 cipher=OTHER); Wed, 08 Aug 2012 02:12:10 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren Cc: Jarkko Nikula , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org, Benoit Cousson Subject: [PATCH 04/11] ARM: OMAP: board-am3517evm: Configure McBSP1 CLKR/FSR signal source Date: Wed, 8 Aug 2012 12:11:34 +0300 Message-Id: <1344417101-5015-5-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1344417101-5015-1-git-send-email-peter.ujfalusi@ti.com> References: <1344417101-5015-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQmnyYIBODOJwvWehXGokQAe1xDgFQlB8UZx7OvaaBihURVKYhFIB3i6DP8SBvrcuNi5wh7o Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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 --- arch/arm/mach-omap2/board-am3517evm.c | 13 +++++++++++++ 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 18f6010..592812a 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) usb_musb_init(&musb_board_data); } +static __init void am3517_evm_mcbsp1_init(void) +{ + u32 devconf0; + + /* McBSP1 CLKR/FSR signal to be connected to CLKX/FSX pin */ + devconf0 = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0); + devconf0 |= OMAP2_MCBSP1_CLKR_MASK | OMAP2_MCBSP1_FSR_MASK; + omap_ctrl_writel(devconf0, OMAP2_CONTROL_DEVCONF0); +} + static const struct usbhs_omap_board_data usbhs_bdata __initconst = { .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, #if defined(CONFIG_PANEL_SHARP_LQ043T1DG01) || \ @@ -373,6 +383,9 @@ static void __init am3517_evm_init(void) /* MUSB */ am3517_evm_musb_init(); + /* McBSP1 */ + am3517_evm_mcbsp1_init(); + /* MMC init function */ omap_hsmmc_init(mmc); }