From patchwork Fri Oct 26 05:49:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 12534 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 4BD2C23E01 for ; Fri, 26 Oct 2012 05:49:22 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id C51E6A1917A for ; Fri, 26 Oct 2012 05:49:21 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so3197744iej.11 for ; Thu, 25 Oct 2012 22:49:21 -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 :dlp-filter:x-mtr:x-brightmail-tracker:x-brightmail-tracker :x-cfilter-loop:x-gm-message-state; bh=nnnU2o5nJ0AejjDDsaRFM9ApxGjT1mg3Te13xk49ibc=; b=o9Wej41GPIXGsVXWc+k+1CTFRQHHtpVSEL92+mI+jaXKfHTd3v6ZdCAlMpW+R2SCYM 0dDLdsBXDqLBCb57me1BTBq+4HzC0dlOWruGuUnjzRIi49n/JH61/dldWbxOcPavcZn/ vNFAgVZhetwB7/o1kjgzJLvLPE9NymyVXjSHsuhncZjiQTQo/xSvAUHxJXWg98BxEy6A OmgPQos96osYNxVbPNnrjFtJrvsKI6RFfpSrQ1uSCIlIKpqNXrTMfmZAQt8ZmqHWc4vu vnzWoMbY1QSiWKNY8QLyq36xNFlfJU7OXRa9NdbD2L+uX7SMRXgG+bh9fbNbVbM/6hqW apnw== Received: by 10.50.194.169 with SMTP id hx9mr953179igc.70.1351230561133; Thu, 25 Oct 2012 22:49:21 -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.67.148 with SMTP id n20csp191642igt; Thu, 25 Oct 2012 22:49:20 -0700 (PDT) Received: by 10.66.78.6 with SMTP id x6mr59109569paw.41.1351230560274; Thu, 25 Oct 2012 22:49:20 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id bt8si752443pab.332.2012.10.25.22.49.19; Thu, 25 Oct 2012 22:49:20 -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 (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MCH006FPK61WAD0@mailout2.samsung.com>; Fri, 26 Oct 2012 14:49:19 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 31.39.01231.E542A805; Fri, 26 Oct 2012 14:49:18 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-ce-508a245e544e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 90.39.01231.E542A805; Fri, 26 Oct 2012 14:49:18 +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 <0MCH0021JJY1HB30@mmp1.samsung.com>; Fri, 26 Oct 2012 14:49:18 +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 V4] EXYNOS: Add pinmux for I2S Date: Fri, 26 Oct 2012 11:19:27 +0530 Message-id: <1351230570-21597-7-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1351230570-21597-1-git-send-email-rajeshwari.s@samsung.com> References: <1351230570-21597-1-git-send-email-rajeshwari.s@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRmVeSWpSXmKPExsWyRsSkTjdOpSvA4ORuG4uH62+yWEw5/IXF gcnjzrU9bAGMUVw2Kak5mWWpRfp2CVwZJxbdYizYzVdxva+4gbGPp4uRk0NCwESiob2XBcIW k7hwbz1bFyMXh5DAUkaJ1vYlLDBFC35OZ4RILGKUmDzrJBOEM5FJ4sPHHlaQKjYBI4mtJ6cx gtgiAhISv/qvAtkcHMwCpRJTJuaBhIWBSnpm7GUGsVkEVCXmrrjFBFLCK+AhMaMhCWKXgsSx qV/BJnIKeEpc+vOTCcQWAipZfG4vE0SrgMS3yYdYQFolBGQlNh1gBrlGQuA6m0T3sdesEHMk JQ6uuMEygVF4ASPDKkbR1ILkguKk9FxDveLE3OLSvHS95PzcTYzAUDz975nUDsaVDRaHGAU4 GJV4eCNSOgOEWBPLiitzDzFKcDArifDungoU4k1JrKxKLcqPLyrNSS0+xOgDdMlEZinR5Hxg nOSVxBsam5ibGptaGhmZmZriEFYS5232SAkQEkhPLEnNTk0tSC2CGcfEwSnVwDjp8NmdW/V1 jedfSsnk6vWXlTG0eP+Lw/yokjZP64aTPnXtLzk9ms+yds7REL2++f6Mlc7ZrYYOQm1zeoT/ Cf08uqLtyOEHfsk1kvdWWs6vrdy4/56FxX7GmzMFea4XBejo3Xeqay7a8fbXjM+SddpfbvYx Sh769jGkYd8ahQq/KqcYAW0XPSWW4oxEQy3mouJEADcjrGZyAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeLIzCtJLcpLzFFi42I5/e+xgG6cSleAQftkA4uH62+yWEw5/IXF gcnjzrU9bAGMUQ2MNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJuam2Si4+ AbpumTlAs5UUyhJzSoFCAYnFxUr6dpgmhIa46VrANEbo+oYEwfUYGaCBhDWMGScW3WIs2M1X cb2vuIGxj6eLkZNDQsBEYsHP6YwQtpjEhXvr2boYuTiEBBYxSkyedZIJwpnIJPHhYw8rSBWb gJHE1pPTwDpEBCQkfvVfBbI5OJgFSiWmTMwDCQsDlfTM2MsMYrMIqErMXXGLCaSEV8BDYkZD EsQuBYljU7+CTeQU8JS49OcnE4gtBFSy+NxepgmMvAsYGVYxiqYWJBcUJ6XnGuoVJ+YWl+al 6yXn525iBAf6M6kdjCsbLA4xCnAwKvHwRqR0BgixJpYVV+YeYpTgYFYS4d09FSjEm5JYWZVa lB9fVJqTWnyI0QfoqInMUqLJ+cAozCuJNzQ2MTc1NrU0sTAxs8QhrCTO2+yREiAkkJ5Ykpqd mlqQWgQzjomDU6qB8bhXEl/nd5fdV1jvN55T1t+oIjdh2ZyOK2xVvA/7F508dNzCZ0JpVIee 47w12/hf5bHNftv2cIVXxyuGW8urc7/PMJjI1y7RUHHXx85i+1tznWvc/VUZNt0MQR+XVV1h EjbLyhROtjnqMHsJ8zfVz5JPn247+8HzUiNfwcLWKQdXeT9Y+Fk7QomlOCPRUIu5qDgRAG+R nG6hAgAA X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQmf79o2ilZUyqHg07Hht6XC4IiS0JoWLGOlYTIDl7DvKxa12PtOUzY0cIliqM1IyU/wx1Tl 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. Changes in V3: - Incorporated comments from Simon Glass Changes in V4: - None arch/arm/cpu/armv7/exynos/pinmux.c | 13 +++++++++++++ arch/arm/include/asm/arch-exynos/periph.h | 1 + 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/exynos/pinmux.c b/arch/arm/cpu/armv7/exynos/pinmux.c index 5796d56..d99daa0 100644 --- a/arch/arm/cpu/armv7/exynos/pinmux.c +++ b/arch/arm/cpu/armv7/exynos/pinmux.c @@ -230,6 +230,16 @@ static void exynos5_i2c_config(int peripheral, int flags) } } +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) { @@ -257,6 +267,9 @@ static int exynos5_pinmux_config(int peripheral, int flags) case PERIPH_ID_I2C7: exynos5_i2c_config(peripheral, flags); 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 082611c..673f4c7 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,