From patchwork Wed Aug 22 06:44:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 10855 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7240823F46 for ; Wed, 22 Aug 2012 06:39:40 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 7F5D0A18D68 for ; Wed, 22 Aug 2012 06:39:29 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id i2so471749ggm.11 for ; Tue, 21 Aug 2012 23:39:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:x-tm-as-mml:x-gm-message-state; bh=yrIvRD5N0QQ9xNkEjbgol5hsIq3XCgjecS4rhk650nw=; b=Dk/WSy2yfm56SAIDJhvJ9PeMALkQlwXayc1uUMKyvZcWmuFa2IIfy94lhi71qvYPu8 zzzU169chlUrXnWP0u0JLWJjlDtQLNKyH97e+fEGUDXIjDi9ct+S4g4R21SXOoQMBhDe u65LbaLKpigOw9bMUAXecQ7I4HM9N7dQpF2YbgJksss63DmMdVB6UFkPv16r6OxgZFT3 Vu18JgVK9wP7cje9BHi1uPS8QVFZiWH9/Lt+nFTcDXcjzz0o2aIoKHHjF17N6kXQ4ONK qUnTJ9eaFNj0tuJge1XR7TmI3hMzZvLCcX2+dBQLHA2loMwaiq62jUA0lfsjsdxPigiK 0ukQ== Received: by 10.50.180.129 with SMTP id do1mr1028587igc.28.1345617579466; Tue, 21 Aug 2012 23:39:39 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp185556igc; Tue, 21 Aug 2012 23:39:39 -0700 (PDT) Received: by 10.68.130.201 with SMTP id og9mr1389786pbb.12.1345617578888; Tue, 21 Aug 2012 23:39:38 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id qp4si6608216pbc.68.2012.08.21.23.39.38; Tue, 21 Aug 2012 23:39:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M95006AV95RLD40@mailout2.samsung.com>; Wed, 22 Aug 2012 15:39:27 +0900 (KST) X-AuditID: cbfee61a-b7fc66d0000043b7-ef-50347e9f4cfd Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id ED.77.17335.F9E74305; Wed, 22 Aug 2012 15:39:27 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M95002KV954XC70@mmp1.samsung.com>; Wed, 22 Aug 2012 15:39:27 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, alim.akhtar@samsung.com, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org, vapier@gentoo.org, amdyer@gmail.com Subject: [PATCH 6/9 V2] EXYNOS: Add pinmux for I2S Date: Wed, 22 Aug 2012 12:14:22 +0530 Message-id: <1345617865-14199-7-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1345617865-14199-1-git-send-email-rajeshwari.s@samsung.com> References: <1345617865-14199-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOJMWRmVeSWpSXmKPExsVy+t9jAd35dSYBBkdei1g8XH+TxWLK4S8s Dkwed67tYQtgjOKySUnNySxLLdK3S+DK+DlpDlPBIt6Kk3MzGhgncXcxcnJICJhIXP/2gx3C FpO4cG89WxcjF4eQwCJGiT0317NDOBOZJD4u62YDqWITMJLYenIaI4gtIiAh8av/KpjNLDCH UeLESxEQWxio5vrcZ2BTWQRUJb4fOwlWwyvgIXF+wREmiG0KEsemfmUFsTkFPCU+P58DFhcC qnn84wzzBEbeBYwMqxhFUwuSC4qT0nMN9YoTc4tL89L1kvNzNzGCvf9MagfjygaLQ4wCHIxK PLweCSYBQqyJZcWVuYcYJTiYlUR4r9cChXhTEiurUovy44tKc1KLDzFKc7AoifPy9xkGCAmk J5akZqemFqQWwWSZODilGhgL9fME5m9fEdoXcV6p88tx46UnLviknDS/fH/TN8XpCzZI5r28 8pYxsHzJtNCrLfnc/ppz9IN3vni7NGeHoUSh5IOQt8t4yvX314es51/EJi7VIcIXvk4//EJM EcP0fMXm4F3ZMs+/X7i1v/fyvGYX1yjrKSwCLu1LJgnM32vqut1rypUHvL5KLMUZiYZazEXF iQAVYBkF+gEAAA== X-TM-AS-MML: No X-Gm-Message-State: ALoCoQlLfUfnqaMgdtrrBzQc48hlubhObFA24PN3F8RJa3KPSD0fiMo+0TQ72XbwcoWCVj8DkP/d This patch adds pinmux support for I2S1 Signed-off-by: Rajeshwari Shinde Acked-by: Simon Glass --- Changes in V2: - made exynos_i2s_config pinmux function static. arch/arm/cpu/armv7/exynos/pinmux.c | 12 ++++++++++++ arch/arm/include/asm/arch-exynos/periph.h | 1 + 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/exynos/pinmux.c b/arch/arm/cpu/armv7/exynos/pinmux.c index 13f75e0..ed82bc3 100644 --- a/arch/arm/cpu/armv7/exynos/pinmux.c +++ b/arch/arm/cpu/armv7/exynos/pinmux.c @@ -273,6 +273,15 @@ void exynos5_spi_config(int peripheral) } } +static void exynos5_i2s_config(int peripheral) +{ + int i; + struct exynos5_gpio_part1 *gpio1 = + (struct exynos5_gpio_part1 *) samsung_get_base_gpio_part1(); + for (i = 0; i < 5; i++) + s5p_gpio_cfg_pin(&gpio1->b0, i, GPIO_FUNC(0x02)); +} + static int exynos5_pinmux_config(int peripheral, int flags) { switch (peripheral) { @@ -307,6 +316,9 @@ static int exynos5_pinmux_config(int peripheral, int flags) case PERIPH_ID_SPI4: exynos5_spi_config(peripheral); break; + case PERIPH_ID_I2S1: + exynos5_i2s_config(peripheral); + break; default: debug("%s: invalid peripheral %d", __func__, peripheral); return -1; diff --git a/arch/arm/include/asm/arch-exynos/periph.h b/arch/arm/include/asm/arch-exynos/periph.h index dafc3f3..404e5db 100644 --- a/arch/arm/include/asm/arch-exynos/periph.h +++ b/arch/arm/include/asm/arch-exynos/periph.h @@ -38,6 +38,7 @@ enum periph_id { PERIPH_ID_I2C5, PERIPH_ID_I2C6, PERIPH_ID_I2C7, + PERIPH_ID_I2S1, PERIPH_ID_SDMMC0, PERIPH_ID_SDMMC1, PERIPH_ID_SDMMC2,