From patchwork Tue Oct 23 06:57:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 12424 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 52B3C23EF8 for ; Tue, 23 Oct 2012 06:47:51 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1BF54A18938 for ; Tue, 23 Oct 2012 06:47:51 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so2635706iag.11 for ; Mon, 22 Oct 2012 23:47:50 -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=zwruGFdxMhrC5Eg06kebgnKCYhXGeZ+M+hsgHEGgcbg=; b=R2c4J8qqa95InZHcBY9hYy0FBvJ81ooOhUvQrlffLFC6KMt5DUQlZZr1afeTWRwJnj kuuwG5nbYF5m99xWcyzQOpSGQN1OORZkuhuymuYAzjREShkbExeCHGN31gaCzlCXTlBQ ufhvXN2fjW9hBGXK11cx6NJroWQlObyGJcz/q5omXkFe4xj/Rc9p87v4ICjeOB6vTGLP QdgqzChwuRPUyiPbM2hB/7BmPYlpT/ZTM2UEmudHYX6ZQ7OS2g3xUl/JNgJ+y+GwEGpp trtMg8o1+A9WgoaOmcnH2wMh1cVvgE3oB/VwEUwcogn/uXnnU/e3DWgL02xi0Rok0zm9 nnYA== Received: by 10.50.194.169 with SMTP id hx9mr11671091igc.70.1350974870886; Mon, 22 Oct 2012 23:47:50 -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 n20csp372259igt; Mon, 22 Oct 2012 23:47:50 -0700 (PDT) Received: by 10.68.220.42 with SMTP id pt10mr37560674pbc.84.1350974870226; Mon, 22 Oct 2012 23:47:50 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id q6si15998934pay.284.2012.10.22.23.47.49; Mon, 22 Oct 2012 23:47:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MCC00L8G2UKAMT0@mailout4.samsung.com>; Tue, 23 Oct 2012 15:47:49 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 17.B6.01231.59D36805; Tue, 23 Oct 2012 15:47:49 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-8d-50863d95a2af Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C6.B6.01231.49D36805; Tue, 23 Oct 2012 15:47:49 +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 <0MCC00CQ52Q0V720@mmp1.samsung.com>; Tue, 23 Oct 2012 15:47:48 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org Subject: [PATCH 6/9 V3] EXYNOS: Add pinmux for I2S Date: Tue, 23 Oct 2012 12:27:26 +0530 Message-id: <1350975449-27816-7-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1350975449-27816-1-git-send-email-rajeshwari.s@samsung.com> References: <1350975449-27816-1-git-send-email-rajeshwari.s@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsWyRsSkRneqbVuAweHr3BYP199ksZhy+AuL A5PHnWt72AIYo7hsUlJzMstSi/TtErgyjv3rZixYzFcxbdUa1gbGv9xdjJwcEgImEj/WNrJD 2GISF+6tZ+ti5OIQEljKKHHtzjpmmKLPB3YyQSQWMUp8eTyTGcKZyCRxZcppsHY2ASOJrSen MYLYIgISEr/6r4LZzAIxEq/3/2ADsYWBajacOghWzyKgKnH/4xuwDbwCHhJfT39gg9imIHFs 6ldWEJtTwFNi7aHzLF2MHEDLPCT2nSyFaBWQ+Db5EFhYQkBWYtMBsHMkBO6zSax4858FYoyk xMEVN1gmMAovYGRYxSiaWpBcUJyUnmuoV5yYW1yal66XnJ+7iREYjqf/PZPawbiyweIQowAH oxIPr8WR1gAh1sSy4srcQ4wSHMxKIrwNVm0BQrwpiZVVqUX58UWlOanFhxh9gC6ZyCwlmpwP jJW8knhDYxNzU2NTSyMjM1NTHMJK4rzNHikBQgLpiSWp2ampBalFMOOYODilGhiNt0lZcVeL yKxrv9Lc9DmpO/lUaNmzVavCBbbcW2TGqi6kvy1rdv3/yY3Scz/rbnv2J2Vjf1mVqMnxVtZX KYwHDdeaJ7/YbdI8s/7hyY39fPI+ptcFGd58bnawXa9ccLT8Qeah4CURicwrXUXFbz7KWGRX t01K8efi+9yyDd2vhVZG1og2RCmxFGckGmoxFxUnAgCTMceydAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRmVeSWpSXmKPExsVy+t9jAd2ptm0BBke7mSwerr/JYjHl8BcW ByaPO9f2sAUwRjUw2mSkJqakFimk5iXnp2TmpdsqeQfHO8ebmhkY6hpaWpgrKeQl5qbaKrn4 BOi6ZeYAzVZSKEvMKQUKBSQWFyvp22GaEBripmsB0xih6xsSBNdjZIAGEtYwZhz7181YsJiv YtqqNawNjH+5uxg5OSQETCQ+H9jJBGGLSVy4t56ti5GLQ0hgEaPEl8czmSGciUwSV6acZgep YhMwkth6chojiC0iICHxq/8qmM0sECPxev8PNhBbGKhmw6mDYPUsAqoS9z++YQaxeQU8JL6e /sAGsU1B4tjUr6wgNqeAp8TaQ+dZuhg5gJZ5SOw7WTqBkXcBI8MqRtHUguSC4qT0XEO94sTc 4tK8dL3k/NxNjOBgfya1g3Flg8UhRgEORiUeXosjrQFCrIllxZW5hxglOJiVRHgbrNoChHhT EiurUovy44tKc1KLDzH6AB01kVlKNDkfGIl5JfGGxibmpsamliYWJmaWOISVxHmbPVIChATS E0tSs1NTC1KLYMYxcXBKNTCu+/Rj9fMHrDuneeeqqO5JVla1LrOYeO3dstxYNunAAvby0iP/ POqOMJ5sMXbj5J21XfPuN+4XDDOOC7TIxEn614TPMLiSnlGq8WDne62Chwu92E2WqTFGmc++ a9G9qFV00wnlsjsvfy6a417QwHCp7ddN7TuqRxZuOqmfeyPVnenmwhU/PyQrsRRnJBpqMRcV JwIAAbtdu6MCAAA= X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQlA/UKxz7MfVqahjKXHMfVLA4xyA5y+RG1iEJsLX9W0S5ic1OrfUau9C/NSMwyugLZXopvn 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 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,