From patchwork Tue Aug 14 05:45:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 10720 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 781C823E02 for ; Tue, 14 Aug 2012 05:41:37 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 2D6B0A18960 for ; Tue, 14 Aug 2012 05:41:37 +0000 (UTC) Received: by yenl8 with SMTP id l8so11442yen.11 for ; Mon, 13 Aug 2012 22:41:36 -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=/DN5eEat5QoQktQC7wGlQfyxRXXTeQqA9hoED7YG5go=; b=CKLE8cICGqFphkvVrvCrEZ5TLhgcL+li2VgbCB09QMCDzXwYNJRj3FnX219VnLrjUc BA9LQOMzrTwdqnT8SU4yM93jO7TtrDqu/4caz4nv9dfYSDJ+/BY53NlWFg7wIGDlJx9a n1DEefOns3J8yWw/M21HHkUnPcf/MgloxWCYEVYB7uyYnivBH6iXH63PCSQuwi+MzcSC qQFv+XeNrpHoThxlEnNK1GL42g0sQ30D0CRBFUNaMilWUdzYW+A2nHYeJgE9kWocymcn avYwUN5RRuabv23NSHB+C7t/sXSvTO1JVewmgQ3OZ5EQWCfKpkepvoMYwW1jraCMoYVg OtiQ== Received: by 10.50.186.131 with SMTP id fk3mr9700507igc.31.1344922896528; Mon, 13 Aug 2012 22:41:36 -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.200 with SMTP id ew8csp214483igc; Mon, 13 Aug 2012 22:41:36 -0700 (PDT) Received: by 10.68.227.201 with SMTP id sc9mr21042838pbc.163.1344922895910; Mon, 13 Aug 2012 22:41:35 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id gt5si1318924pbc.313.2012.08.13.22.41.35; Mon, 13 Aug 2012 22:41:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (mailout3.samsung.com [203.254.224.33]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M8Q00HGQD5A2290@mailout3.samsung.com>; Tue, 14 Aug 2012 14:41:34 +0900 (KST) X-AuditID: cbfee61a-b7fc66d0000043b7-ff-5029e50e46f8 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E0.D6.17335.E05E9205; Tue, 14 Aug 2012 14:41:34 +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 <0M8Q00064D2QKU20@mmp1.samsung.com>; Tue, 14 Aug 2012 14:41:34 +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 Subject: [PATCH 6/9] EXYNOS: Add pinmux for I2S Date: Tue, 14 Aug 2012 11:15:29 +0530 Message-id: <1344923132-31803-7-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1344923132-31803-1-git-send-email-rajeshwari.s@samsung.com> References: <1344923132-31803-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGJMWRmVeSWpSXmKPExsVy+t9jAV2+p5oBBlu+y1s8XH+TxWLK4S8s Dkwed67tYQtgjOKySUnNySxLLdK3S+DKeHCrk7ngJk9Fc8NxtgbGq1xdjJwcEgImEp/Xv2GE sMUkLtxbz9bFyMUhJLCIUWL3ji2MEM5EJon2z8uYQKrYBIwktp6cBtYhIiAh8av/KpDNwcEs UCoxZWIeSFhYQF9i5sSJ7CBhFgFViUPd7iBhXgEPidObD7NA7FKQODb1KyuIzSngKXHr+jKw iUJANevfnWGcwMi7gJFhFaNoakFyQXFSeq6hXnFibnFpXrpecn7uJkaw759J7WBc2WBxiFGA g1GJh1chTTNAiDWxrLgy9xCjBAezkgjv/R6gEG9KYmVValF+fFFpTmrxIUZpDhYlcV5j76/+ QgLpiSWp2ampBalFMFkmDk6pBsbZT/4b1WXUVZ06zyyx5EmmCOPqK83/p21d2vLm2wajDpbf YovTzzumc347uP298qqJMpcebtxicE5P0EZ7VkkAU0vVj5Vnl3DlFs/XrGecyFEu6aY74+AJ kVQWWdktT1fOYI15WPEjfs87OZ0P9w9veJeuullc785xwW4+7dNv/tgm8wtquP5VYinOSDTU Yi4qTgQAUXMipfkBAAA= X-TM-AS-MML: No X-Gm-Message-State: ALoCoQmu6S49V7w+m/VsQmW8brW08O6b1/u41+fGCZtq+H3pO+MEkJmD9+YJuKwQbL4eq8FbK1qL This patch adds pinmux support for I2S1 Signed-off-by: Rajeshwari Shinde --- 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..ba25f6c 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) } } +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,